On Wednesday, September 16, 2015 at 7:39:32 AM UTC-5, Sans wrote: > > Hi there, > > I got to solve a "rare" issue here which I'm running out of ideas for. In > our manifest, we do some conditional git pull (using vcsrepo > forgemodule) based on a Hiera variable that set either true or false. We > keep the value as false i.e. no git-pull by default but want to set it > true, on the fly temporarily for onetime run. Is there anyway to override > hiera value when running puppet agent from the command-line on the > run-time? > > Generally, we run on-demand puppet agent using mcollective, like this: mco > puppet runonce -I <node_name> > Is there anywhay to achieve the same using mCollective at all? Or what > other options do I have? > > Any suggestions/pointer will be greatly appreciated. > >
It's unclear from where you want to control this one-off behavior alteration. If from the target node, then you want to rely on a custom fact. There are several ways to write a fact whose value you can easily influence at run time, and there are many ways you can condition the declarations in your manifests and the data retrieved from Hiera on the value of a given fact. John -- 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/881da80d-18d9-4c83-9ac9-0804f96997df%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.