Tim
2010-Apr-14 13:24 UTC
[Puppet Users] Could not set file on ensure: undefined method `[]'' for nil:NilClass
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-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Peter Meier
2010-Apr-14 14:28 UTC
Re: [Puppet Users] Could not set file on ensure: undefined method `[]'' for nil:NilClass
Hi> notice: Starting Puppet client version 0.22.4can you try with a more recent version? the current supported versions are imho 0.24.x and 0.25.y (where x or y is the latest version of that branch). cheers pete -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.