Revision f4ca4c49
Added by Ewoud Kohl van Wijngaarden about 7 years ago
manifests/child/service.pp | ||
---|---|---|
# Pulp Node Service
|
||
class pulp::child::service {
|
||
service { 'goferd':
|
||
ensure => running,
|
||
enable => true,
|
||
hasstatus => true,
|
||
hasrestart => true,
|
||
class pulp::child::service(
|
||
$service = 'goferd',
|
||
$ensure = 'running',
|
||
$enable = true,
|
||
) {
|
||
service { $service:
|
||
ensure => $ensure,
|
||
enable => $enable,
|
||
}
|
||
}
|
Also available in: Unified diff
Refactor pulp::child
This commit factors out the Apache vhost to a separate class. It also
makes all used variables explicit in the local scope. This simplifies
testing and additional coverage has been added.