File tree 1 file changed +13
-10
lines changed
1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change 198
198
| CMD
199
199
}
200
200
201
- # Use PuppetDB's /pdb/admin/v1/archive API to MERGE previously saved data
202
- # into the restored database.
203
- # TODO: consider adding a heuristic to skip when innappropriate due to size
204
- # or other factors.
205
- if getvar(' recovery_opts.puppetdb' ) {
206
- run_command(@(" CMD" /L), $primary_target )
207
- /opt/puppetlabs/bin/puppet-db import ${shellquote($recovery_directory)}/puppetdb-archive.bin
208
- | CMD
209
- }
210
-
211
201
# Use `puppet infra` to ensure correct file permissions, restart services,
212
202
# etc. Make sure not to try and get config data from the classifier, which
213
203
# isn't yet up and running.
220
210
/opt/puppetlabs/bin/puppet-infra reinitialize replica -y
221
211
| CMD
222
212
213
+ # Use PuppetDB's /pdb/admin/v1/archive API to MERGE previously saved data
214
+ # into the restored database.
215
+ # TODO: consider adding a heuristic to skip when innappropriate due to size
216
+ # or other factors.
217
+ if getvar(' recovery_opts.puppetdb' ) {
218
+ run_command(@(" CMD" /L), $primary_target )
219
+ /opt/puppetlabs/bin/puppet-db import ${shellquote($recovery_directory)}/puppetdb-archive.bin
220
+ | CMD
221
+ }
222
+
223
+ # Run Puppet to pick up last remaining config tweaks
224
+ run_task(' peadm::puppet_runonce' , $primary_target )
225
+
223
226
apply($primary_target ){
224
227
file { $recovery_directory :
225
228
ensure => ' absent' ,
You can’t perform that action at this time.
0 commit comments