File tree 4 files changed +21
-2
lines changed
4 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 146
146
)
147
147
}
148
148
149
+ # Ensure Puppet agent service is running now that configuration is complete
150
+ run_command(' systemctl start puppet' , peadm::flatten_compact([
151
+ $master_target ,
152
+ $master_replica_target ,
153
+ $puppetdb_database_target ,
154
+ $puppetdb_database_replica_target ,
155
+ $compiler_targets ,
156
+ ]))
157
+
149
158
return(" Configuration of Puppet Enterprise ${arch['architecture']} succeeded." )
150
159
}
Original file line number Diff line number Diff line change 205
205
_catch_errors => $shortcircuit_puppetdb ,
206
206
tarball => $upload_tarball_path ,
207
207
peconf => '/tmp/pe.conf',
208
+ puppet_service_ensure => 'stopped',
208
209
shortcircuit_puppetdb => $shortcircuit_puppetdb ,
209
210
)
210
211
out::message(" Finished: task peadm::pe_install on ${master_target[0].name}" )
232
233
233
234
# Run the PE installer on the puppetdb database hosts
234
235
run_task('peadm::pe_install', $database_targets ,
235
- tarball => $upload_tarball_path ,
236
- peconf => '/tmp/pe.conf',
236
+ tarball => $upload_tarball_path ,
237
+ peconf => '/tmp/pe.conf',
238
+ puppet_service_ensure => 'stopped',
237
239
)
238
240
239
241
# Now that the main PuppetDB database node is ready, finish priming the
Original file line number Diff line number Diff line change 12
12
"shortcircuit_puppetdb" : {
13
13
"type" : " Optional[Boolean]" ,
14
14
"description" : " If true, during install, configure PuppetDB to short-circuit its startup"
15
+ },
16
+ "puppet_service_ensure" : {
17
+ "type" : " Optional[Enum['stopped']]" ,
18
+ "description" : " If 'stopped', ensure the Puppet agent is not running when install completes"
15
19
}
16
20
},
17
21
"input_method" : " environment" ,
Original file line number Diff line number Diff line change @@ -31,3 +31,7 @@ if [ "$PT_shortcircuit_puppetdb" = "true" ]; then
31
31
rm /etc/systemd/system/pe-puppetdb.service.d/10-shortcircuit.conf
32
32
systemctl daemon-reload
33
33
fi
34
+
35
+ if [ " $PT_puppet_service_ensure " = " stopped" ]; then
36
+ systemctl stop puppet.service
37
+ fi
You can’t perform that action at this time.
0 commit comments