Differential D5662 Diff 20226 site-modules/profile/manifests/swh/deploy/search/journal_client_instance.pp
Changeset View
Changeset View
Standalone View
Standalone View
site-modules/profile/manifests/swh/deploy/search/journal_client_instance.pp
Show All 15 Lines | ) | ||||
case $ensure { | case $ensure { | ||||
'present', 'running': { | 'present', 'running': { | ||||
file {$config_path: | file {$config_path: | ||||
ensure => 'present', | ensure => 'present', | ||||
owner => $user, | owner => $user, | ||||
group => $group, | group => $group, | ||||
mode => '0644', | mode => '0640', | ||||
content => inline_template("<%= @config.to_yaml %>\n"), | content => inline_template("<%= @config.to_yaml %>\n"), | ||||
notify => Service[$service_name], | notify => Service[$service_name], | ||||
} | } | ||||
if $ensure == 'running' { | if $ensure == 'running' { | ||||
$service_ensure = 'running' | $service_ensure = 'running' | ||||
} else { | } else { | ||||
$service_ensure = undef | $service_ensure = undef | ||||
Show All 21 Lines |