diff options
author | 2017-05-22 10:40:14 +1200 | |
---|---|---|
committer | 2017-06-14 14:31:52 +1200 | |
commit | 94f13e66089cc0b18d5b4b2f6e204160d836ac3e (patch) | |
tree | 2974f79a71d44705c1791b258afe9b3250667bb5 /manifests/profile/pacemaker/ceph/rbdmirror.pp | |
parent | 2561fa9560e80e6f6cf9c6c1f1424491cfb012d9 (diff) |
Ensure hiera step value is an integer
The step is typically set with the hieradata setting an integer value:
{"step": 1}
However it would be useful for the value to be a string so that
substitutions are possible, for example:
{"step": "%{::step}"}
This change ensures the step parameter defaults to an integer by
calling Integer(hiera('step'))
This change was made by manually removing the undef defaults from
fluentd.pp, uchiwa.pp, and sensu.pp then bulk updating with:
find ./ -type f -print0 |xargs -0 sed -i "s/= hiera('step')/= Integer(hiera('step'))/"
Change-Id: I8a47ca53a7dea8391103abcb8960a97036a6f5b3
Diffstat (limited to 'manifests/profile/pacemaker/ceph/rbdmirror.pp')
-rw-r--r-- | manifests/profile/pacemaker/ceph/rbdmirror.pp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/manifests/profile/pacemaker/ceph/rbdmirror.pp b/manifests/profile/pacemaker/ceph/rbdmirror.pp index 4066225..6b566a7 100644 --- a/manifests/profile/pacemaker/ceph/rbdmirror.pp +++ b/manifests/profile/pacemaker/ceph/rbdmirror.pp @@ -45,7 +45,7 @@ class tripleo::profile::pacemaker::ceph::rbdmirror ( $client_name = 'openstack', $pcs_tries = hiera('pcs_tries', 20), $stack_action = hiera('stack_action'), - $step = hiera('step'), + $step = Integer(hiera('step')), ) { Service <| tag == 'ceph-rbd-mirror' |> { hasrestart => true, |