On 07/08/14 09:07, Dan White wrote: > And this is the second time you have asked almost the same question in > rapid succession. > > You might want to read some of the Puppet documentation. > > On Aug 6, 2014, at 3:21 PM, Cathal O Mul <cathal.omull...@mycit.ie > <mailto:cathal.omull...@mycit.ie>> wrote: > >> I have a file call pr.sh it is a scrip I would like puppet to run it >> how would I go about doing this >>
RTFM is an important reminder, since the answer to the original (two) questions is clearly documented already. Cathal, look at https://docs.puppetlabs.com/references/latest/type.html#exec - but please don't think that's an answer. The reality is, exec is not an ideal thing to do, and nearly all of what people should do with Puppet is best done with either existing or custom types and providers. The link above also has a listing of the current types. Dan's first response was exactly the way you should ensure a file is removed using Puppet, not with a script performing rm. I wonder if you might want to look at the problem in a different way, rather than attempt to get something to run a shell script. You need to look well beyond running a program, and get the concept of describing the end result you're looking for. There's an excellent lot of stuff to get started at https://puppetlabs.com/learn - I really recommend making use of the learning VM, and the Puppetlabs training is excellent, well worth the money. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/53E29CDF.9020301%40gmail.com. For more options, visit https://groups.google.com/d/optout.