projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
split service and port in xinetd::service
[mirror/dsa-puppet.git]
/
modules
/
ntp
/
manifests
/
init.pp
diff --git
a/modules/ntp/manifests/init.pp
b/modules/ntp/manifests/init.pp
index
26aa2d4
..
751e9d9
100644
(file)
--- a/
modules/ntp/manifests/init.pp
+++ b/
modules/ntp/manifests/init.pp
@@
-15,6
+15,11
@@
class ntp {
rule => '&SERVICE(udp, 123)'
}
rule => '&SERVICE(udp, 123)'
}
+ file { '/etc/init.d/ntp':
+ source => 'puppet:///modules/ntp/ntp.init',
+ mode => '0555',
+ notify => Exec['systemctl daemon-reload'],
+ }
file { '/var/lib/ntp':
ensure => directory,
owner => ntp,
file { '/var/lib/ntp':
ensure => directory,
owner => ntp,
@@
-25,14
+30,14
@@
class ntp {
file { '/etc/ntp.conf':
content => template('ntp/ntp.conf'),
notify => Service['ntp'],
file { '/etc/ntp.conf':
content => template('ntp/ntp.conf'),
notify => Service['ntp'],
- require => Package['ntp']
+ require => Package['ntp']
,
}
file { '/etc/ntp.keys.d':
ensure => directory,
}
file { '/etc/ntp.keys.d':
ensure => directory,
- group =>
ntp
,
+ group =>
'ntp'
,
mode => '0750',
notify => Service['ntp'],
mode => '0750',
notify => Service['ntp'],
- require => Package['ntp']
+ require => Package['ntp']
,
}
if getfromhash($site::nodeinfo, 'timeserver') {
}
if getfromhash($site::nodeinfo, 'timeserver') {