de4ddd341c
v3.1.1 sha1: d5c648d42ad287150206f11692816eba7c73a2b0 Implements: blueprint merge-openstack-puppet-modules Change-Id: I0ceb392d8750469ece3c93d67d2c73a8a6d7b71d
19 lines
387 B
Puppet
19 lines
387 B
Puppet
#
|
|
class ntp::service inherits ntp {
|
|
|
|
if ! ($service_ensure in [ 'running', 'stopped' ]) {
|
|
fail('service_ensure parameter must be running or stopped')
|
|
}
|
|
|
|
if $service_manage == true {
|
|
service { 'ntp':
|
|
ensure => $service_ensure,
|
|
enable => $service_enable,
|
|
name => $service_name,
|
|
hasstatus => true,
|
|
hasrestart => true,
|
|
}
|
|
}
|
|
|
|
}
|