Skip to content

Commit

Permalink
Remove systemd service unit when setting ensure => absent
Browse files Browse the repository at this point in the history
  • Loading branch information
Danny Kulchinsky committed Sep 25, 2018
1 parent 87dc97d commit ffc5741
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions manifests/run.pp
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,13 @@
timeout => 0
}

if $::osfamily != 'windows' {
file { "/etc/systemd/system/${service_prefix}${sanitised_title}.service":
ensure => absent,
path => "/etc/systemd/system/${service_prefix}${sanitised_title}.service",
}
}

}
else {
file { $initscript:
Expand Down

0 comments on commit ffc5741

Please sign in to comment.