Version information
released Dec 9th 2024
This version is compatible with:
- Puppet Enterprise 2023.8.x, 2023.7.x, 2023.6.x, 2023.5.x, 2023.4.x, 2023.3.x, 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x
- Puppet >=7.0.0 <9.0.0
- RedHat, CentOS, OracleLinux, Scientific, SLC, OVS, OEL, Fedora, Suse, Gentoo, Archlinux, Debian, Ubuntu
Start using this module
Add this module to your Puppetfile:
mod 'saz-ntp', '3.0.0'
Learn more about managing modules with a PuppetfileDocumentation
saz/ntp — version 3.0.0 Dec 9th 2024
puppet-ntp
Manage NTP client and server via Puppet
Supported Puppet versions
- Puppet >= 4
- Last version supporting Puppet 3: v2.5.0
Usage
Client
Using ntp pool mirrors
class { 'ntp': }
Using custom ntp mirrors
class { 'ntp':
server_list => [ 'yourLocalServer1', 'yourLocalServer2', ]
}
Server
Using ntp pool mirrors
class { 'ntp':
server_enabled => true,
}
Using custom ntp mirrors
class { 'ntp':
server_list = [ 'yourLocalServer1', 'yourLocalServer2', ],
server_enabled => true,
}
If you want some clients with unlimited access, you can set $query_networks in the follwing way:
class { 'ntp':
server_list = [ 'yourLocalServer1', 'yourLocalServer2', ],
server_enabled = true,
query_networks = [ '192.168.0.0/255.255.255.0', '172.16.0.0/255.255.0.0', ],
}
Adding options to all servers in server_list
class { 'ntp':
server_list = ['a.example.com', 'b.example.com'],
server_options = 'iburst',
}
Adding options to one specific server
class { 'ntp':
server_list = [
'a.example.com iburst',
'b.example.com',
],
}
Other class parameters
- ensure: present or absent, default: present
- server_options: string, default: ''
- pool_list: string, default: []
- pool_options: string, default: ''
- interface_ignore: array, default: []
- interface_listen: array, default: []
- enable_statistics: true or false, default: false
- statsdir: string, default: undef
- tinker_panic: boolean, default: false
- autoupgrade: true or false, default: false
- package: string, default: OS specific. Set package name, if platform is not supported.
- config_file: string, default: OS specific. Set config_file, if platform is not supported.
- config_file_replace: true or false, default: true
- driftfile: string, default: OS specific. Set driftfile, if platform is not supported.
- service_ensure: running or stopped, default: running
- service_name: string, default: OS specific. Set service_name, if platform is not supported.
- service_enable: true or false, default: true
- service_hasstatus: true or false, default: true
- service_hasrestart: true or false, default: true
Copyright 2011 Steffen Zieger 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.