Hi, > On Mon, Dec 13, 2010 at 12:56 PM, Yushu Yao <[email protected] > <mailto:[email protected]>> wrote: > > Another though: > > Can I do something like > if $(return value of an Exec resource)==0 { > } else {} > > I.e. I want to run an shell command first, and do something depend on > the output of the command. > > > You probably want to make the shell command a fact, and then case on the > fact inside your manifests on the server.
What about 'onlyif' and 'unless'? But I also have custom facts that -for example- check if a local directory or its contents have changed before I run an Exec or a Concat... Best regards, Martijn. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
