On 6/7/14, 10:33 PM, Iakov Gan wrote:
> Hi, 
> 
> I wonder how i can pull updates from my GIT to puppet server? 
> 
> There is already a gitlab-webhook, that works fine and the only problem
> is that it takes >1 minute to get all environments updated. At the
> moment in my test lab i have about 20 environments managed by
> r10k. Update of one env is about 3 seconds, so when i make a change
> while debugging some puppet module, it is really annoying to wait 1
> minute every single time.   
> 
> I use foreman, and i can just modify node.rb (external_nodes
> <http://docs.puppetlabs.com/guides/external_nodes.html>) to pull r10k
> update every time it is called (taking into account it is called twice
> per update
> <https://groups.google.com/forum/#!msg/puppet-users/6-MqbV1P2ec/8I1g4Lc0NKsJ> 
> of
> course). Is it the only way?
> 
> Regards,
> 
> Iakov 
> 
> 
> 
> 
> 
> -- 
> 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]
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/33cfd118-5607-4249-aef7-19bbb40e7775%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/33cfd118-5607-4249-aef7-19bbb40e7775%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

Iakov,

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

Best regards,
-g

-- 
Garrett Honeycutt
@learnpuppet
Puppet Training with LearnPuppet.com
Mobile: +1.206.414.8658

-- 
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/5394940D.9060101%40garretthoneycutt.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to