File tree 1 file changed +13
-7
lines changed
1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change 59
59
)
60
60
61
61
# 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 = [
63
64
' /opt/puppetlabs/server/data/console-services/certs/ad_ca_chain.pem' ,
64
65
' /etc/puppetlabs/orchestration-services/conf.d/secrets/keys.json' ,
65
66
' /etc/puppetlabs/orchestration-services/conf.d/secrets/orchestrator-encryption-keys.json' ,
66
67
' /etc/puppetlabs/console-services/conf.d/secrets/keys.json' ,
67
- ' /etc/puppetlabs/puppet/hiera.yaml'
68
68
]
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 ,
74
80
source_host => $primary_target ,
75
81
path => $path
76
82
)
You can’t perform that action at this time.
0 commit comments