Skip to content

Commit

Permalink
Improve service management
Browse files Browse the repository at this point in the history
  • Loading branch information
pmuller committed May 22, 2016
1 parent 9c29b2d commit 75d50ba
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions manifests/service.pp
Expand Up @@ -2,9 +2,12 @@

class strongswan::service inherits strongswan {

service { $service_name:
ensure => $service_running,
enable => $service_enable;
service { 'strongswan':
name => $service_name,
ensure => $service_running,
enable => $service_enable,
hasstatus => true,
hasrestart => true,
}

}

0 comments on commit 75d50ba

Please sign in to comment.