The issue with that is that I have to change the policies on the puppetmaster each time I want to upgrade, and then make sure to remove the include after it runs on each host so that it doesn't attempt the upgrade twice (which wouldn't cause issues, but it leaves the window open for user error - ie: forgetting to remove the include).
It was nice in cfengine to be able to alter the state of policy for just a single run by adding classes on the command line. If there's no good way to do that with puppet, I guess I'll have to write a shell script for it. I just wanted to keep the entirety of our config in puppet, and have more control over software releases. On Feb 16, 12:00 pm, Mohamed Lrhazi <lrh...@gmail.com> wrote: > How about this: > > Create a module called "upgrade_my_software", then only "include" it > when you want to, then "remove the include" when you're done... > > > > > > > > On Wed, Feb 16, 2011 at 11:18 AM, loki77 <lok...@gmail.com> wrote: > > Hi, I'm looking for a way to have puppet kick off an upgrade of my > > companies software, but only when it's somehow 'told' to. In cfengine > > you can provide classes from the command line (such as upgrade_code) > > and then have parts of the policy only work if those classes are > > defined. Is there anyway to do something similar in puppet? At first > > I thought this was what tags were for, since they can be defined from > > the command line when running puppetd - but it looks like tagged > > resources are always ran, and that when tags are set they are the ONLY > > thing that is run, so that doesn't quite work for what I'm trying to > > do. > > > Thanks! > > > -- > > You received this message because you are subscribed to the Google Groups > > "Puppet Users" group. > > To post to this group, send email to puppet-users@googlegroups.com. > > To unsubscribe from this group, send email to > > puppet-users+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://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-users@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.