Sorry, i mixed up the names. Thank you both Garrett, Peter.
On Tuesday, June 10, 2014 9:08:14 AM UTC+2, Iakov Gan wrote: > > Thanks for the hint, Peter. > > Looks like prerun_command is very interesting solution. BTW i've just > found a puppet module for that[1]. > > But still using prerun_command it can only pull ALL my environments > before each puppet run (= 1min). I can't pull only one particular > environment, can i? > > I developed a small extension of node.rb, that does what i need: since > node.rb > knows environment of the node, i can call "r10k deploy environment > #{your_env} -p". But the error management is quite difficult since i only > can report error by exit code and no error message appears on the node > unfortunately. Any ideas? > > [1] https://github.com/openSUSE/puppet-r10k > > On Monday, June 9, 2014 11:44:47 AM UTC+2, Peter Meier wrote: >> >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> > Perhaps the prerun_command[1] configuration setting might help. It >> > allows you to run a command before every agent run. I use it to run >> > r10k. >> > >> > [1] - >> > >> http://docs.puppetlabs.com/references/latest/configuration.html#preruncommand >> >> >> But >> > >> this is on the agent side, and not the master. >> >> What I would do to have instant git updates, is updating things based >> on a server side git post-update hook (the place where you push the >> code). If you do the script in a little intelligent way, you can speed >> up that quite good to make it pretty fast. >> >> ~pete >> >> -----BEGIN PGP SIGNATURE----- >> Version: GnuPG v1 >> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ >> >> iEYEARECAAYFAlOVgfgACgkQbwltcAfKi38ObACeLB501PDamdCY4cR5X+bFFjgB >> J8MAoJu/XATPpk1of4FJLGfAFV6pni9V >> =hLSA >> -----END PGP SIGNATURE----- >> > -- 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/685c61ae-e9c1-49e5-b11d-c9e6b8a476d2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.