my base/default includes this ntp manifest # 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:///ntp/files/${conf_file}", } } # class {'ntp': } So my questions... 1. I tested this by moving /etc/ntp.conf on my test client but it doesn't seem to replace the file though it clearly says 'ensure => file' Is my understanding wrong? 2. Files ntp.conf.el & ntp.conf.debian are located in /etc/puppet/modules/ntp/files - source => 'puppet://puppet:///ntp/files/${conf_file} is this correct? -- Craig White ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ craig.wh...@ttiltd.com 1.800.869.6908 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ www.ttiassessments.com Need help communicating between generations at work to achieve your desired success? Let us help! -- 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.