File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change 5959 )
6060
6161 # Source list of files on Primary and synchronize to new Replica
62- $content_sources = [
62+ $common_content_source = ' /etc/puppetlabs/puppet/hiera.yaml'
63+ $replica_content_sources = [
6364 ' /opt/puppetlabs/server/data/console-services/certs/ad_ca_chain.pem' ,
6465 ' /etc/puppetlabs/orchestration-services/conf.d/secrets/keys.json' ,
6566 ' /etc/puppetlabs/orchestration-services/conf.d/secrets/orchestrator-encryption-keys.json' ,
6667 ' /etc/puppetlabs/console-services/conf.d/secrets/keys.json' ,
67- ' /etc/puppetlabs/puppet/hiera.yaml'
6868 ]
69- parallelize($content_sources ) |$path | {
70- run_plan(' peadm::util::copy_file' , peadm::flatten_compact([
71- $replica_target ,
72- $compiler_targets ,
73- ]),
69+
70+ run_plan(' peadm::util::copy_file' , peadm::flatten_compact([
71+ $replica_target ,
72+ $compiler_targets ,
73+ ]),
74+ source_host => $primary_target ,
75+ path => $common_content_source
76+ )
77+
78+ parallelize($replica_content_sources ) |$path | {
79+ run_plan(' peadm::util::copy_file' , $replica_target ,
7480 source_host => $primary_target ,
7581 path => $path
7682 )
You can’t perform that action at this time.
0 commit comments