File tree 5 files changed +15
-0
lines changed
5 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -302,6 +302,10 @@ Tells Puppet whether to manage the NTP service. Valid options: 'true' or 'false'
302
302
303
303
Tells Puppet what NTP service to manage. Valid options: string. Default value: varies by operating system
304
304
305
+ ####` service_provider `
306
+
307
+ Tells Puppet which service provider to use for NTP. Valid options: string. Default value: 'undef'
308
+
305
309
####` stepout `
306
310
307
311
Tells puppet to change stepout. Applies only if ` tinker ` value is 'true'. Valid options: unsigned shortint digit. Default value: undef.
Original file line number Diff line number Diff line change 1
1
# Private Class
2
2
class ntp::config inherits ntp {
3
3
4
+ # The servers-netconfig file overrides NTP config on SLES 12, interfering with our configuration.
5
+ if $::operatingsystem == ' SLES' and $::operatingsystemmajrelease == ' 12' {
6
+ file { '/var/run/ntp/servers-netconfig' :
7
+ ensure => ' absent'
8
+ }
9
+ }
10
+
4
11
if $ntp::keys_enable {
5
12
case $ntp::config_dir {
6
13
' /' , ' /etc' , undef: {}
Original file line number Diff line number Diff line change 34
34
$service_ensure = $ntp::params::service_ensure,
35
35
$service_manage = $ntp::params::service_manage,
36
36
$service_name = $ntp::params::service_name,
37
+ $service_provider = $ntp::params::service_provider,
37
38
$stepout = $ntp::params::stepout,
38
39
$tinker = $ntp::params::tinker,
39
40
$tos = $ntp::params::tos,
Original file line number Diff line number Diff line change 156
156
$service_name = ' ntpd'
157
157
$keys_file = ' /etc/ntp.keys'
158
158
$package_name = $default_package_name
159
+ # Puppet 3 does not recognise systemd as service provider on SLES 12.
160
+ $service_provider = ' systemd'
159
161
}
160
162
default: {
161
163
fail(" The ${module_name} module is not supported on an ${::operatingsystem} ${::operatingsystemmajrelease} distribution." )
Original file line number Diff line number Diff line change 10
10
ensure => $ntp::service_ensure ,
11
11
enable => $ntp::service_enable ,
12
12
name => $ntp::service_name ,
13
+ provider => $ntp::service_provider ,
13
14
hasstatus => true ,
14
15
hasrestart => true ,
15
16
}
You can’t perform that action at this time.
0 commit comments