[Puppet Users] dpkg in puppet returns 2 but at command line returns 0

2010-07-12 Thread Jon Choate
I have an exec defined as exec {"dpkg --configure -a": path => "/usr/bin:/bin", user => root } puppet complains: Exec[dpkg --configure -a]/returns: change from notrun to 0 failed: dpkg --configure -a returned 2 instead of one of [0] but when I run dpkg --configure -a outside puppet it ret

Re: [Puppet Users] dpkg in puppet returns 2 but at command line returns 0

2010-07-12 Thread Luke Kanies
On Jul 12, 2010, at 12:00 PM, Jon Choate wrote: I have an exec defined as exec {"dpkg --configure -a": path => "/usr/bin:/bin", user => root } puppet complains: Exec[dpkg --configure -a]/returns: change from notrun to 0 failed: dpkg --configure -a returned 2 instead of one of [0] bu

Re: [Puppet Users] dpkg in puppet returns 2 but at command line returns 0

2010-07-12 Thread Rohan McGovern
ext Jon Choate said: > I have an exec defined as > > exec {"dpkg --configure -a": >path => "/usr/bin:/bin", >user => root > } > > puppet complains: > > Exec[dpkg --configure -a]/returns: change from notrun to 0 failed: dpkg > --configure -a returned 2 instead of one of [0] > > but when

Re: [Puppet Users] dpkg in puppet returns 2 but at command line returns 0

2010-07-13 Thread Jon Choate
Thanks! adding /usr/sbin and /sbin seems to have fixed it. On Mon, Jul 12, 2010 at 7:17 PM, Rohan McGovern wrote: > ext Jon Choate said: > > I have an exec defined as > > > > exec {"dpkg --configure -a": > >path => "/usr/bin:/bin", > >user => root > > } > > > > puppet complains: > > > >