Ask Your Question

how do i keep my environment synchronize with git repo?

asked 2015-04-03 15:56:42 -0600

dhirenp gravatar image

ok, so i thought after install r10k and deploying environment=branches from my git repository using r10k, i was done with configuration on master to that respect. All i would need to do is keep committing code to my git branches. But i am finding out that r10k does not synchronize the code by doing pull from git on it's own. I would need to run "r10k deploy environment" to update my environments.

Did i miss some configuration on r10k? or i am missing additional configuration? if so what is that?

Can somebody help me out?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-04-04 12:28:08 -0600


R10K doesn't run as daemon, and must be manually executed to run.

  • You could run it in a cron to deploy at scheduled times.
  • Or use a git commit hook to trigger r10k.
  • Or have a look into Jenkins to monitor your git repos(This is what I personally would do).

Cheers, Michael

edit flag offensive delete link more


The zack/r10k module can configure a couple methods of running r10k: a webserver that listens for git commit hooks or an MCollective agent that can run r10k syncs.

csharpsteen gravatar imagecsharpsteen ( 2015-04-04 18:04:42 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2015-04-03 15:56:42 -0600

Seen: 807 times

Last updated: Apr 03 '15