94f13e6608
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
21 lines
496 B
Puppet
21 lines
496 B
Puppet
# == Class: tripleo::profile::base::neutron::linuxbridge
|
|
#
|
|
# Neutron linuxbridge agent profile for tripleo
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*step*]
|
|
# (Optional) The current step in deployment. See tripleo-heat-templatee
|
|
# for more details.
|
|
# Defaults to hiera('step')
|
|
#
|
|
class tripleo::profile::base::neutron::linuxbridge(
|
|
$step = Integer(hiera('step')),
|
|
) {
|
|
include ::tripleo::profile::base::neutron
|
|
|
|
if $step >= 5 {
|
|
include ::neutron::agents::ml2::linuxbridge
|
|
}
|
|
}
|