|
2 | 2 |
|
3 | 3 | $autoupdate = false |
4 | 4 | $config_template = 'ntp/ntp.conf.erb' |
5 | | - $disable_monitor = false |
6 | 5 | $keys_enable = false |
7 | 6 | $keys_controlkey = '' |
8 | 7 | $keys_requestkey = '' |
|
48 | 47 |
|
49 | 48 | case $::osfamily { |
50 | 49 | 'AIX': { |
51 | | - $config = $default_config |
52 | | - $keys_file = '/etc/ntp.keys' |
53 | | - $driftfile = '/etc/ntp.drift' |
54 | | - $package_name = [ 'bos.net.tcp.client' ] |
55 | | - $restrict = [ |
| 50 | + $config = $default_config |
| 51 | + $keys_file = '/etc/ntp.keys' |
| 52 | + $driftfile = '/etc/ntp.drift' |
| 53 | + $package_name = [ 'bos.net.tcp.client' ] |
| 54 | + $restrict = [ |
56 | 55 | 'default nomodify notrap nopeer noquery', |
57 | 56 | '127.0.0.1', |
58 | 57 | ] |
59 | | - $service_name = 'xntpd' |
60 | | - $iburst_enable = true |
61 | | - $servers = [ |
| 58 | + $service_name = 'xntpd' |
| 59 | + $iburst_enable = true |
| 60 | + $servers = [ |
62 | 61 | '0.debian.pool.ntp.org', |
63 | 62 | '1.debian.pool.ntp.org', |
64 | 63 | '2.debian.pool.ntp.org', |
65 | 64 | '3.debian.pool.ntp.org', |
66 | 65 | ] |
67 | | - $maxpoll = undef |
| 66 | + $maxpoll = undef |
| 67 | + $disable_monitor = false |
68 | 68 | } |
69 | 69 | 'Debian': { |
70 | 70 | $config = $default_config |
|
86 | 86 | '3.debian.pool.ntp.org', |
87 | 87 | ] |
88 | 88 | $maxpoll = undef |
| 89 | + $disable_monitor = false |
89 | 90 | } |
90 | 91 | 'RedHat': { |
91 | 92 | $config = $default_config |
92 | 93 | $keys_file = $default_keys_file |
93 | 94 | $driftfile = $default_driftfile |
94 | 95 | $package_name = $default_package_name |
95 | 96 | $service_name = $default_service_name |
96 | | - $restrict = [ |
97 | | - 'default kod nomodify notrap nopeer noquery', |
98 | | - '-6 default kod nomodify notrap nopeer noquery', |
99 | | - '127.0.0.1', |
100 | | - '-6 ::1', |
101 | | - ] |
102 | | - $iburst_enable = false |
103 | | - $servers = [ |
104 | | - '0.centos.pool.ntp.org', |
105 | | - '1.centos.pool.ntp.org', |
106 | | - '2.centos.pool.ntp.org', |
107 | | - ] |
108 | 97 | $maxpoll = undef |
| 98 | + |
| 99 | + case $::operatingsystem { |
| 100 | + 'Fedora': { |
| 101 | + $restrict = [ |
| 102 | + 'default nomodify notrap nopeer noquery', |
| 103 | + '127.0.0.1', |
| 104 | + '::1', |
| 105 | + ] |
| 106 | + $iburst_enable = true |
| 107 | + $servers = [ |
| 108 | + '0.fedora.pool.ntp.org', |
| 109 | + '1.fedora.pool.ntp.org', |
| 110 | + '2.fedora.pool.ntp.org', |
| 111 | + '3.fedora.pool.ntp.org', |
| 112 | + ] |
| 113 | + $disable_monitor = true |
| 114 | + } |
| 115 | + default: { |
| 116 | + $restrict = [ |
| 117 | + 'default kod nomodify notrap nopeer noquery', |
| 118 | + '-6 default kod nomodify notrap nopeer noquery', |
| 119 | + '127.0.0.1', |
| 120 | + '-6 ::1', |
| 121 | + ] |
| 122 | + $iburst_enable = false |
| 123 | + $servers = [ |
| 124 | + '0.centos.pool.ntp.org', |
| 125 | + '1.centos.pool.ntp.org', |
| 126 | + '2.centos.pool.ntp.org', |
| 127 | + ] |
| 128 | + $disable_monitor = false |
| 129 | + } |
| 130 | + } |
109 | 131 | } |
110 | 132 | 'Suse': { |
111 | 133 | if $::operatingsystem == 'SLES' and $::operatingsystemmajrelease == '12' |
|
133 | 155 | '3.opensuse.pool.ntp.org', |
134 | 156 | ] |
135 | 157 | $maxpoll = undef |
| 158 | + $disable_monitor = false |
136 | 159 | } |
137 | 160 | 'FreeBSD': { |
138 | 161 | $config = $default_config |
|
154 | 177 | '3.freebsd.pool.ntp.org', |
155 | 178 | ] |
156 | 179 | $maxpoll = 9 |
| 180 | + $disable_monitor = false |
157 | 181 | } |
158 | 182 | 'Archlinux': { |
159 | 183 | $config = $default_config |
|
175 | 199 | '3.arch.pool.ntp.org', |
176 | 200 | ] |
177 | 201 | $maxpoll = undef |
| 202 | + $disable_monitor = false |
178 | 203 | } |
179 | 204 | 'Solaris': { |
180 | 205 | $config = '/etc/inet/ntp.conf' |
|
207 | 232 | '3.pool.ntp.org', |
208 | 233 | ] |
209 | 234 | $maxpoll = undef |
| 235 | + $disable_monitor = false |
210 | 236 | } |
211 | 237 | # Gentoo was added as its own $::osfamily in Facter 1.7.0 |
212 | 238 | 'Gentoo': { |
|
229 | 255 | '3.gentoo.pool.ntp.org', |
230 | 256 | ] |
231 | 257 | $maxpoll = undef |
| 258 | + $disable_monitor = false |
232 | 259 | } |
233 | 260 | 'Linux': { |
234 | 261 | # Account for distributions that don't have $::osfamily specific settings. |
|
254 | 281 | '3.gentoo.pool.ntp.org', |
255 | 282 | ] |
256 | 283 | $maxpoll = undef |
| 284 | + $disable_monitor = false |
257 | 285 | } |
258 | 286 | default: { |
259 | 287 | fail("The ${module_name} module is not supported on an ${::operatingsystem} distribution.") |
|
0 commit comments