Hi,

I'm just starting to use puppet and I've encountered the error below.
I've looked in the puppet FAQ and googled around a bit but can't work
out what's going wrong here:

notice: Starting Puppet client version 0.22.4
info: Facts have changed; recompiling
info: Caching configuration at /var/lib/puppet/localconfig.yaml
notice: Starting configuration run
err: /Class[main]/Node[basenode]/Class[yum-conf]/Yum-repo-file[sl-
repo]/File[/etc/yum.repos.d/sl-repo.repo]/ensure: change from absent
to file failed: Could not set file on ensure: undefined method `[]'
for nil:NilClass at /etc/puppet/manifests/definitions/yum-repo-file.pp:
8
notice: Finished configuration run in 0.85 seconds

/etc/puppet/manifests/definitions/yum-repo-file.pp is:
define yum-repo-file ($name) {
        file { "/etc/yum.repos.d/$name.repo":
        source => "puppet://puppetserver/linux/yum/repos.d/
$name.repo",
        mode => 644,
        ensure => file,
        group => root,
        owner => root
        }
}

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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.

Reply via email to