File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 224
224
# - $datadir
225
225
# - @extra_systemd_config
226
226
227
+ exec { 'restart-systemd' :
228
+ command => ' systemctl daemon-reload' ,
229
+ refreshonly => true ,
230
+ path => ' /bin:/usr/bin:/usr/local/bin' ,
231
+ }
232
+
227
233
if (versioncmp($facts [' puppetversion' ], ' 6.1.0' ) < 0) {
228
- exec { 'restart-systemd' :
229
- command => ' systemctl daemon-reload' ,
230
- refreshonly => true ,
231
- path => ' /bin:/usr/bin:/usr/local/bin' ,
232
- }
233
234
$systemd_notify = [Exec[' restart-systemd' ], Class[' postgresql::server::service' ]]
234
235
}
235
236
else {
261
262
' old-systemd-override' :
262
263
ensure => absent ,
263
264
path => " /etc/systemd/system/${service_name} .service" ,
265
+ notify => [Exec[' restart-systemd' ], Class[' postgresql::server::service' ]],
264
266
;
265
267
}
266
268
}
You can’t perform that action at this time.
0 commit comments