Add more conditions to restart-haproxy yaql to avoid ambiguity

Some time we have a problem with evaluating yaql expressions on
nailgun side. Before nailgun fix will be landed, introduce easy
workaround to get evaluation work properly.

Change-Id: I0df5c1fa18d012a7ef7aa9c1f627965791dee5d8
Closes-Bug: #1649886
This commit is contained in:
Stanislaw Bogatkin 2017-01-17 14:40:35 +03:00
parent d0d976e80d
commit 0549ba9a12
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@
required_for: [deploy_end]
requires: [deploy_start, virtual_ips, cluster]
condition:
yaql_exp: 'changed($.public_ssl.hostname) and old($)'
yaql_exp: '((len(old($)) > 0) or $.deployed_before.value) and changed($.public_ssl.hostname)'
parameters:
puppet_manifest: /etc/puppet/modules/osnailyfacter/modular/cluster-haproxy/restart-haproxy.pp
puppet_modules: /etc/puppet/modules