Shouldn't you use?

class test {
exec { "sudocmd" :
   cwd => "/home/server/",
   path => ["/usr/bin/","/usr/sbin/","/
bin"],
   command => "sudo apt-get update -y",
   timeout => "-1"
   }
}

-- 
Marley Bacelar
Project Fedora Ambassador
VCP, VSP. VTSP., ITILF, IBM 000-076, IBM 000-330, IBM 000-331
marleybace...@gmail.com


2010/5/27 DWIM <ralph.gro...@itdz-berlin.de>

>
>
> On May 27, 1:49 pm, DWIM <ralph.gro...@itdz-berlin.de> wrote:
> > Hi Prudhvi,
> >
> > puppet <hostname> = NOPASSWD: /usr/sbin/apt-get update
> >
>
> Oops, think to have forgotten a glob wildcard here and it should
> rather read
>
> uppet <hostname> = NOPASSWD: /usr/sbin/apt-get update *
>
>
> But the first more unspecific rule I mentioned should accept any
> number of arguments anyway
>
> --
> 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<puppet-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>
>

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