add service
This commit is contained in:
21
manifests/server/service.pp
Normal file
21
manifests/server/service.pp
Normal file
@@ -0,0 +1,21 @@
|
||||
## puppet_cd::server::service.pp
|
||||
# Module name: puppet_cd
|
||||
# Author: Arne Teuke (arne_teuke@confdroid)
|
||||
# @summary Class manages the puppet server service for the puppet_cd module.
|
||||
###############################################################################
|
||||
class puppet_cd::server::service (
|
||||
|
||||
) inherits puppet_cd::params {
|
||||
|
||||
if $fqdn == $pt_puppetmaster {
|
||||
|
||||
# manage puppet server service
|
||||
|
||||
service { $pt_service:
|
||||
ensure => running,
|
||||
hasstatus => true,
|
||||
hasrestart => true,
|
||||
enable => true,
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user