On Jun 21, 2011, at 9:09 AM, Nigel Kersten wrote: > > > On Tue, Jun 21, 2011 at 9:03 AM, Craig White <craig.wh...@ttiltd.com> wrote: > > On Jun 20, 2011, at 3:54 PM, Ken Barber wrote: > > > It does seem like its not being included :-) ... > > > > What does: > > > > echo "# foo" >> /etc/ntp.conf > > puppet apply -d -e 'include ntp' > > > > Do? > ---- > seems so basic - output at bottom > > I have gone over and over the Pro Puppet book and the > http://docs.puppetlabs.com/guides/file_serving.html page and they both are > the same and this should absolutely work. > > # cat modules/ntp/manifests/ntp.pp > # ntp.pp > > class ntp { > case $operatingsystem { > centos, redhat: { > $service_name = 'ntpd' > $conf_file = 'ntp.conf.el' > } > debian, ubuntu: { > $service_name = 'ntp' > $conf_file = 'ntp.conf.debian' > } > } > > package { 'ntp': > ensure => installed, > } > > service { 'ntp': > name => $service_name, > ensure => running, > enable => true, > subscribe => File['ntp.conf'], > } > > file { 'ntp.conf': > path => '/etc/ntp.conf', > ensure => file, > require => Package['ntp'], > source => "puppet:///modules/ntp/files/${conf_file}", > > Take the "files" out of the source settings. > > the filesystem path: > > $modulepath/ntp/files/foo > > translates to the puppet:// url: > > puppet:///modules/ntp/foo ---- Indeed - thanks - it was making me crazy.
I suspect that there was a very good reason for doing that (omitting the 'files' from the path) but it completely eludes me. Craig -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.