From 94f13e66089cc0b18d5b4b2f6e204160d836ac3e Mon Sep 17 00:00:00 2001 From: Steve Baker Date: Mon, 22 May 2017 10:40:14 +1200 Subject: 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 --- manifests/profile/base/manila/api.pp | 2 +- manifests/profile/base/manila/scheduler.pp | 2 +- manifests/profile/base/manila/share.pp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'manifests/profile/base/manila') diff --git a/manifests/profile/base/manila/api.pp b/manifests/profile/base/manila/api.pp index 021fffd..95607ae 100644 --- a/manifests/profile/base/manila/api.pp +++ b/manifests/profile/base/manila/api.pp @@ -44,7 +44,7 @@ class tripleo::profile::base::manila::api ( $backend_netapp_enabled = hiera('manila_backend_netapp_enabled', false), $backend_cephfs_enabled = hiera('manila_backend_cephfs_enabled', false), $bootstrap_node = hiera('bootstrap_nodeid', undef), - $step = hiera('step'), + $step = Integer(hiera('step')), ) { if $::hostname == downcase($bootstrap_node) { $sync_db = true diff --git a/manifests/profile/base/manila/scheduler.pp b/manifests/profile/base/manila/scheduler.pp index 07ea676..5c94bbe 100644 --- a/manifests/profile/base/manila/scheduler.pp +++ b/manifests/profile/base/manila/scheduler.pp @@ -24,7 +24,7 @@ # Defaults to hiera('step') # class tripleo::profile::base::manila::scheduler ( - $step = hiera('step'), + $step = Integer(hiera('step')), ) { include ::tripleo::profile::base::manila diff --git a/manifests/profile/base/manila/share.pp b/manifests/profile/base/manila/share.pp index d39c55c..13cedec 100644 --- a/manifests/profile/base/manila/share.pp +++ b/manifests/profile/base/manila/share.pp @@ -24,7 +24,7 @@ # Defaults to hiera('step') # class tripleo::profile::base::manila::share ( - $step = hiera('step'), + $step = Integer(hiera('step')), ) { include ::tripleo::profile::base::manila -- cgit 1.2.3-korg