Skip to content

Commit 5c5d3ef

Browse files
authored
Merge pull request #38 from puppetlabs/use-oids
Re-add use of raw OIDs to csr_attribute.yaml files
2 parents f1241c1 + b0e5203 commit 5c5d3ef

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

plans/action/install.pp

+14-9
Original file line numberDiff line numberDiff line change
@@ -154,33 +154,38 @@
154154
)
155155

156156
# Create csr_attributes.yaml files for the nodes that need them
157+
# There is a problem with OID names in csr_attributes.yaml for some
158+
# installs, e.g. PE 2019.0.1, PUP-9746. Use the raw OIDs for now.
159+
$pp_application = '1.3.6.1.4.1.34380.1.1.8'
160+
$pp_cluster = '1.3.6.1.4.1.34380.1.1.16'
161+
157162
run_task('peadm::mkdir_p_file', $master_target,
158163
path => '/etc/puppetlabs/puppet/csr_attributes.yaml',
159-
content => @(HEREDOC),
164+
content => @("HEREDOC"),
160165
---
161166
extension_requests:
162-
pp_application: "puppet/master"
163-
pp_cluster: "A"
167+
${pp_application}: "puppet/master"
168+
${pp_cluster}: "A"
164169
| HEREDOC
165170
)
166171

167172
run_task('peadm::mkdir_p_file', $puppetdb_database_target,
168173
path => '/etc/puppetlabs/puppet/csr_attributes.yaml',
169-
content => @(HEREDOC),
174+
content => @("HEREDOC"),
170175
---
171176
extension_requests:
172-
pp_application: "puppet/puppetdb-database"
173-
pp_cluster: "A"
177+
${pp_application}: "puppet/puppetdb-database"
178+
${pp_cluster}: "A"
174179
| HEREDOC
175180
)
176181

177182
run_task('peadm::mkdir_p_file', $puppetdb_database_replica_target,
178183
path => '/etc/puppetlabs/puppet/csr_attributes.yaml',
179-
content => @(HEREDOC),
184+
content => @("HEREDOC"),
180185
---
181186
extension_requests:
182-
pp_application: "puppet/puppetdb-database"
183-
pp_cluster: "B"
187+
${pp_application}: "puppet/puppetdb-database"
188+
${pp_cluster}: "B"
184189
| HEREDOC
185190
)
186191

0 commit comments

Comments
 (0)