I  face the same problem when trying the package type

class apache {
    package { ["apache"] :
                ensure => latest,
            }
}

err: //apache/Package[apache]/ensure: change from purged to latest
failed: Could not update: Execution of '/usr/bin/apt-get -q -y -o
DPkg::Options::=--force-confold install apache' returned 100: E: Could
not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are
you root?
 at /etc/puppet/manifests/site.pp:28

It asks me for root privileges..
Isnt there anyother way other than editing sudoers file on every
node???

and I also tried with timeout => "-1" in exec which resulted in the
same error.

thank you everyone,
bhaskar.

-- 
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