File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change 216
216
# RHEL 7 and 8 both support drop-in files for systemd units. The old include directive is deprecated and may be removed in future systemd releases.
217
217
# Gentoo also supports drop-in files.
218
218
if $facts [' os' ][' family' ] in [' RedHat' , ' Gentoo' ] and $facts [' service_provider' ] == ' systemd' {
219
- # Template uses:
220
- # - $facts['os']['name']
221
- # - $facts['os']['release']['major']
222
- # - $service_name
223
- # - $port
224
- # - $datadir
225
- # - @extra_systemd_config
226
-
227
219
# While Puppet 6.1 and newer can do a daemon-reload if needed, systemd
228
220
# doesn't appear to report that correctly. This is probably because its
229
221
# unit file is actually removed.
244
236
group => root,
245
237
notify => [Exec[' restart-systemd' ], Class[' postgresql::server::service' ]],
246
238
before => Class[' postgresql::server::reload' ],
247
-
248
239
;
249
240
250
241
' systemd-conf-dir' :
251
242
ensure => directory ,
252
243
path => " /etc/systemd/system/${service_name} .service.d" ,
253
244
;
254
245
246
+ # Template uses:
247
+ # - $facts['os']['name']
248
+ # - $facts['os']['release']['major']
249
+ # - $service_name
250
+ # - $port
251
+ # - $datadir
252
+ # - $extra_systemd_config
255
253
' systemd-override' :
256
254
path => " /etc/systemd/system/${service_name} .service.d/${service_name} .conf" ,
257
255
content => template (' postgresql/systemd-override.erb' ),
You can’t perform that action at this time.
0 commit comments