fuel-library/deployment/puppet/ntp/manifests/service.pp
Stanislaw Bogatkin de4ddd341c Sync puppet module ntp to v3.1.1 from upstream
v3.1.1 sha1: d5c648d42ad287150206f11692816eba7c73a2b0
Implements: blueprint merge-openstack-puppet-modules

Change-Id: I0ceb392d8750469ece3c93d67d2c73a8a6d7b71d
2014-06-25 14:02:21 +04:00

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,
}
}
}