|
179 | 179 | upload_path => $upload_tarball_path,
|
180 | 180 | )
|
181 | 181 |
|
182 |
| - # Create csr_attributes.yaml files for the nodes that need them |
183 |
| - # There is a problem with OID names in csr_attributes.yaml for some |
184 |
| - # installs, e.g. PE 2019.0.1, PUP-9746. Use the raw OIDs for now. |
185 |
| - |
186 |
| - run_task('peadm::mkdir_p_file', $master_target, |
187 |
| - path => '/etc/puppetlabs/puppet/csr_attributes.yaml', |
188 |
| - content => @("HEREDOC"), |
189 |
| - --- |
190 |
| - extension_requests: |
191 |
| - ${peadm::oid('peadm_role')}: "puppet/master" |
192 |
| - ${peadm::oid('peadm_availability_group')}: "A" |
193 |
| - | HEREDOC |
| 182 | + # Create csr_attributes.yaml files for the nodes that need them. Ensure that |
| 183 | + # if a csr_attributes.yaml file is already present, the values we need are |
| 184 | + # merged with the existing values. |
| 185 | + |
| 186 | + run_plan('peadm::util::insert_csr_extensions', $master_target, |
| 187 | + extensions => { |
| 188 | + peadm::oid('peadm_role') => 'puppet/master', |
| 189 | + peadm::oid('peadm_availability_group') => 'A', |
| 190 | + }, |
194 | 191 | )
|
195 | 192 |
|
196 |
| - run_task('peadm::mkdir_p_file', $puppetdb_database_target, |
197 |
| - path => '/etc/puppetlabs/puppet/csr_attributes.yaml', |
198 |
| - content => @("HEREDOC"), |
199 |
| - --- |
200 |
| - extension_requests: |
201 |
| - ${peadm::oid('peadm_role')}: "puppet/puppetdb-database" |
202 |
| - ${peadm::oid('peadm_availability_group')}: "A" |
203 |
| - | HEREDOC |
| 193 | + run_plan('peadm::util::insert_csr_extensions', $puppetdb_database_target, |
| 194 | + extensions => { |
| 195 | + peadm::oid('peadm_role') => 'puppet/puppetdb-database', |
| 196 | + peadm::oid('peadm_availability_group') => 'A', |
| 197 | + }, |
204 | 198 | )
|
205 | 199 |
|
206 |
| - run_task('peadm::mkdir_p_file', $puppetdb_database_replica_target, |
207 |
| - path => '/etc/puppetlabs/puppet/csr_attributes.yaml', |
208 |
| - content => @("HEREDOC"), |
209 |
| - --- |
210 |
| - extension_requests: |
211 |
| - ${peadm::oid('peadm_role')}: "puppet/puppetdb-database" |
212 |
| - ${peadm::oid('peadm_availability_group')}: "B" |
213 |
| - | HEREDOC |
| 200 | + run_plan('peadm::util::insert_csr_extensions', $puppetdb_database_replica_target, |
| 201 | + extensions => { |
| 202 | + peadm::oid('peadm_role') => 'puppet/puppetdb-database', |
| 203 | + peadm::oid('peadm_availability_group') => 'B', |
| 204 | + }, |
214 | 205 | )
|
215 | 206 |
|
216 | 207 | # Get the master installation up and running. The installer will
|
|
0 commit comments