File tree Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Expand file tree Collapse file tree 1 file changed +14
-11
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 {
256
257
content => template (' postgresql/systemd-override.erb' ),
257
258
require => File [' systemd-conf-dir' ],
258
259
;
259
-
260
- # Remove old unit file to avoid conflicts
261
- ' old-systemd-override' :
262
- ensure => absent ,
263
- path => " /etc/systemd/system/${service_name} .service" ,
264
- ;
265
260
}
261
+
262
+ # Remove old unit file to avoid conflicts
263
+ file {'old-systemd-override' :
264
+ ensure => absent ,
265
+ owner => root,
266
+ group => root,
267
+ path => " /etc/systemd/system/${service_name} .service" ,
268
+ } -> Exec[' restart-systemd' ] -> Class[' postgresql::server::service' ]
266
269
}
267
270
}
You can’t perform that action at this time.
0 commit comments