|
21 | 21 | :autosign => 'true',
|
22 | 22 | :certname => 'test.example.com',
|
23 | 23 | :storeconfigs => 'true',
|
24 |
| - :storeconfigs_dbserver => 'test.example.com' |
| 24 | + :storeconfigs_dbserver => 'test.example.com', |
| 25 | + :dns_alt_names => ['puppet'] |
25 | 26 |
|
26 | 27 | }
|
27 | 28 | end
|
|
128 | 129 | :path => '/etc/puppet/puppet.conf',
|
129 | 130 | :value => 'true'
|
130 | 131 | )
|
| 132 | + should contain_ini_setting('puppetmasterdnsaltnames').with( |
| 133 | + :ensure => 'present', |
| 134 | + :section => 'master', |
| 135 | + :setting => 'dns_alt_names', |
| 136 | + :path => '/etc/puppet/puppet.conf', |
| 137 | + :value => params[:dns_alt_names].join(',') |
| 138 | + ) |
131 | 139 | should contain_anchor('puppet::master::begin').with_before(
|
132 | 140 | ['Class[Puppet::Passenger]', 'Class[Puppet::Storeconfigs]']
|
133 | 141 | )
|
|
154 | 162 | :autosign => 'true',
|
155 | 163 | :certname => 'test.example.com',
|
156 | 164 | :storeconfigs => 'true',
|
157 |
| - :storeconfigs_dbserver => 'test.example.com' |
| 165 | + :storeconfigs_dbserver => 'test.example.com', |
| 166 | + :dns_alt_names => ['puppet'] |
158 | 167 |
|
159 | 168 | }
|
160 | 169 | end
|
|
260 | 269 | :path => '/etc/puppet/puppet.conf',
|
261 | 270 | :value => 'true'
|
262 | 271 | )
|
| 272 | + should contain_ini_setting('puppetmasterdnsaltnames').with( |
| 273 | + :ensure => 'present', |
| 274 | + :section => 'master', |
| 275 | + :setting => 'dns_alt_names', |
| 276 | + :path => '/etc/puppet/puppet.conf', |
| 277 | + :value => params[:dns_alt_names].join(',') |
| 278 | + ) |
263 | 279 | should contain_anchor('puppet::master::begin').with_before(
|
264 | 280 | ['Class[Puppet::Passenger]', 'Class[Puppet::Storeconfigs]']
|
265 | 281 | )
|
|
0 commit comments