Implement NTP profile
This puppet manifest will install and configure by default the NTP service. It will also make sure chrony is purged, because it's present on the EL7 images. Change-Id: If3cf7d9690001b051465ea25cf8a8c3bc6f7c33a
This commit is contained in:
parent
bf68fa9683
commit
bed1c230f2
@ -33,6 +33,10 @@ Puppet::Type.type(:package).provide :norpm, :source => :rpm, :parent => :rpm do
|
|||||||
true
|
true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def purge
|
||||||
|
true
|
||||||
|
end
|
||||||
|
|
||||||
def self.instances
|
def self.instances
|
||||||
return []
|
return []
|
||||||
end
|
end
|
||||||
|
28
manifests/profile/base/time/ntp.pp
Normal file
28
manifests/profile/base/time/ntp.pp
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
# Copyright 2017 Red Hat, Inc.
|
||||||
|
# All Rights Reserved.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License. You may obtain
|
||||||
|
# a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||||
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
|
# License for the specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
#
|
||||||
|
# == Class: tripleo::profile::base::ntp
|
||||||
|
#
|
||||||
|
# Enable NTP via composable services.
|
||||||
|
#
|
||||||
|
|
||||||
|
class tripleo::profile::base::time::ntp {
|
||||||
|
# if installed, we don't want chrony to conflict with ntp.
|
||||||
|
package { 'chrony':
|
||||||
|
ensure => 'purged',
|
||||||
|
before => Service['ntp'],
|
||||||
|
}
|
||||||
|
include ::ntp
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user