Hi All,
Sorry if this is a really remedial question, but I cannot find the answer
to my problem anywhere else. I am trying to learn puppet, and am creating
a basic ntp module, that should install the ntp package (Which it does),
then copy the ntp.conf file (Which it does not) and then start the service
(Which it does). Could someone please look at the init.pp file below and
tell me what I am doing wrong? Is there a line or a parameter that I
missed in there somewhere?
It is worth noting that both the client and server are Ubuntu 12.10.
Thanks :)
class ntp {
package { 'ntp':
ensure => latest,
}
file { '/etc/ntp.conf':
ensure => file,
source => 'puppet:///modules/ntp/ntp.conf',
owner => root,
group => root,
mode => 0444,
require => Package['ntp'],
notify => Service['ntp'],
}
service { 'ntp':
ensure => 'running',
enable => 'true',
}
}
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/puppet-users/-/9hPmf0chP2wJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.