Hi, On 04 Mar 2015, at 15:57, Steve Harp <[email protected]> wrote:
> Hi Guys, > > I'm using Puppet for many configuration items and package deployments. I > need to be able to only deploy certain packages/classes when the Agent sends > a definable command line option. > > Example: puppet agent --onetime --no-daemonize --verbose > --do_something_special > > I want to be able to execute a class only when the '--do_something_special' > flag is passed. You can use the —tag option to only do what is mentioned in a specific class. e.g. puppet agent —test —tags apache Classes will become tags automatically. Besides this you can use the tag metaparameter on the package resource. hth, Martin -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/9CF1F858-EF65-4DFF-9586-2D1346465D30%40gmail.com. For more options, visit https://groups.google.com/d/optout.
