You're a start. Many thanks for that.

Much appreciated.

Dan

On Monday, October 15, 2012 9:58:14 PM UTC+1, Dan wrote:
>
> Hi 
>
> I largely copied the example in 
> http://docs.puppetlabs.com/learning/modules1.html. But I'm getting an 
> error when running the following from the client:
>
> puppet agent --server puppetmaster --waitforcert 60 --test
> err: /Stage[main]/Ntp/File[ntp.conf]: Could not evaluate: Could not 
> retrieve information from environment production source(s) 
> file:/etc/puppet/modules/ntp/files/ntp.conf at 
> /etc/puppet/modules/ntp/manifests/init.pp:28
>
> on the puppet server I have the following:
>
> # init.pp
>
>     class ntp {
>       case $operatingsystem {
>         sles: {
>           $service_name = 'ntpd'
>           $conf_file    = 'ntp.conf'
>         }
>       }
>
> #      package { 'ntp':
> #        ensure => installed,
> #      }
>
>       service { 'ntp':
>         name      => $service_name,
>         ensure    => running,
>         enable    => true,
>         subscribe => File['ntp.conf'],
>       }
>
>       file { 'ntp.conf':
>         path    => '/etc/ntp/ntp.conf',
>         ensure  => file,
> #        require => Package['ntp'],
> #       source   => "puppet:///modules/ntp/files/${conf_file}",
>         source   => "/etc/puppet/modules/ntp/files/${conf_file}",
>       }
>     }
>
>
> Furhter info from puppet server:
>
> puppet apply --configprint:
> /etc/puppet/modules:/usr/share/puppet/modules
> pluginsource = puppet://puppet/plugins
> pluginsync = false
>
>
> Can someone please help me please, as I'm lost with this error?
>
> Thanks in advance
> Dan
>
>
>

-- 
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/-/sRRMh25Wk-oJ.
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.

Reply via email to