[Puppet Users] Selectively Install Packages

2015-03-04 Thread Steve Harp
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

Re: [Puppet Users] Selectively Install Packages

2015-03-04 Thread Martin Alfke
Hi, On 04 Mar 2015, at 15:57, Steve Harp 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

Re: [Puppet Users] Selectively Install Packages

2015-03-04 Thread Steve Harp
Thanks Martin. I've tried adding a tag 'testing' to a class and the class deploys regardless of the '--tags testing' being on the puppet agent command line or not. What am I missing? I need the class to deploy if and only if specified. Thanks... On Wednesday, March 4, 2015 at 10:05:34 AM UT

Re: [Puppet Users] Selectively Install Packages

2015-03-04 Thread Martin Alfke
Hi Steve, with tags you only can execute classes which are enabled anyway. It is a way to limit execution on a certain subset of classes. What else: you can provide a fact at CLI and react on that specific fact: FACTER_runnow=true puppet agent —test —tags Inside your class you will do somethi

Re: [Puppet Users] Selectively Install Packages

2015-03-04 Thread Garrett Honeycutt
On 3/4/15 9:57 AM, Steve Harp 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 --ve

Re: [Puppet Users] Selectively Install Packages

2015-03-04 Thread Steve Harp
A custom fact worked perfectly. Thanks very much. On Wednesday, March 4, 2015 at 11:22:45 AM UTC-5, Martin Alfke wrote: > > Hi Steve, > > with tags you only can execute classes which are enabled anyway. > It is a way to limit execution on a certain subset of classes. > > What else: > you