06 Oct 2011

More Adventures in Puppet

   Thursday, 2010-08-12. More adventures in Puppet: Fix this: err: /Stage[main]/Sudo/File[/etc/sudoers]: Could not evaluate: Could not retrieve information from source(s) puppet:///modules/sudo/files/etc/sudoers at /etc/puppet/modules/sudo/manifests/init.pp:11

By changing your file request (genuinely located at /etc/puppet/modules/sudo/files/etc/sudoers) from:

class sudo {
        package { sudo:
        ensure => present,
        }
        file { "/etc/sudoers":
                owner => "root",
                group => "root",
                mode => 0440,
                source => "puppet:///modules/sudo/files/etc/sudoers",
                require => Package["sudo"],
                }
}
To this:

bash class sudo { package { sudo: ensure => present, } file { “/etc/sudoers”: owner => “root”, group => “root”, mode => 0440, source => “puppet:///modules/sudo/etc/sudoers”, require => Package[“sudo”], } } ```

This is using Puppet 2.6.2