|
24 | 24 | :certname => 'test.example.com',
|
25 | 25 | :storeconfigs => 'true',
|
26 | 26 | :storeconfigs_dbserver => 'test.example.com',
|
27 |
| - :dns_alt_names => ['puppet'] |
| 27 | + :dns_alt_names => ['puppet'], |
| 28 | + :strict_variables => 'true' |
28 | 29 |
|
29 | 30 | }
|
30 | 31 | end
|
|
156 | 157 | :path => '/etc/puppet/puppet.conf',
|
157 | 158 | :value => params[:dns_alt_names].join(',')
|
158 | 159 | )
|
| 160 | + should contain_ini_setting('puppetmasterstrictvariables').with( |
| 161 | + :ensure => 'present', |
| 162 | + :section => 'master', |
| 163 | + :setting => 'strict_variables', |
| 164 | + :path => '/etc/puppet/puppet.conf', |
| 165 | + :value => params[:strict_variables] |
| 166 | + ) |
159 | 167 | should contain_anchor('puppet::master::begin').with_before(
|
160 | 168 | ['Class[Puppet::Passenger]', 'Class[Puppet::Storeconfigs]']
|
161 | 169 | )
|
|
185 | 193 | :certname => 'test.example.com',
|
186 | 194 | :storeconfigs => 'true',
|
187 | 195 | :storeconfigs_dbserver => 'test.example.com',
|
188 |
| - :dns_alt_names => ['puppet'] |
| 196 | + :dns_alt_names => ['puppet'], |
| 197 | + :strict_variables => 'true' |
189 | 198 |
|
190 | 199 | }
|
191 | 200 | end
|
|
315 | 324 | :path => '/etc/puppet/puppet.conf',
|
316 | 325 | :value => params[:dns_alt_names].join(',')
|
317 | 326 | )
|
| 327 | + should contain_ini_setting('puppetmasterstrictvariables').with( |
| 328 | + :ensure => 'present', |
| 329 | + :section => 'master', |
| 330 | + :setting => 'strict_variables', |
| 331 | + :path => '/etc/puppet/puppet.conf', |
| 332 | + :value => params[:strict_variables] |
| 333 | + ) |
318 | 334 | should contain_anchor('puppet::master::begin').with_before(
|
319 | 335 | ['Class[Puppet::Passenger]', 'Class[Puppet::Storeconfigs]']
|
320 | 336 | )
|
|
0 commit comments