Skip to content

Commit 219a783

Browse files
committed
Only add strict_variables setting if set to something other than undef
1 parent 4e1e593 commit 219a783

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

manifests/master.pp

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
$dns_alt_names = ['puppet'],
8888
$digest_algorithm = $::puppet::params::digest_algorithm,
8989
$generate_ssl_certs = true,
90-
$strict_variables = false,
90+
$strict_variables = undef,
9191
) inherits puppet::params {
9292

9393
anchor { 'puppet::master::begin': }
@@ -124,8 +124,6 @@
124124
}
125125
}
126126

127-
validate_bool($strict_variables)
128-
129127
Anchor['puppet::master::begin'] ->
130128
class {'puppet::passenger':
131129
puppet_passenger_port => $puppet_passenger_port,
@@ -316,10 +314,13 @@
316314
value => $digest_algorithm,
317315
}
318316

319-
ini_setting {'puppetmasterstrictvariables':
320-
ensure => present,
321-
setting => 'strict_variables',
322-
value => $strict_variables,
317+
if $strict_variables != undef {
318+
validate_bool($strict_variables)
319+
ini_setting {'puppetmasterstrictvariables':
320+
ensure => present,
321+
setting => 'strict_variables',
322+
value => $strict_variables,
323+
}
323324
}
324325

325326
anchor { 'puppet::master::end': }

0 commit comments

Comments
 (0)