Ask Your Question

Style question: Pull hiera changes from Git repo through cron or puppet?

asked 2015-05-01 18:36:49 -0600

JohnsonEarls gravatar image

updated 2015-05-01 18:37:41 -0600

I'm managing the setup and overeall configuration of my puppet master through puppet itself, including the hiera.yaml hiera configuration file. However, I'm leaving the hieradata files out of puppet control, and instead just leaving them in a git directory that tracks a remote repo on our central git server.

My question: Since puppet is controlling the hiera.yaml file, should I have puppet initiate the git pull to update the hiera data also, or should I do that via an external cron job that the puppet_master module manages?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-05-01 22:38:05 -0600

JohnsonEarls gravatar image

I guess this turns out to be more than just a "style" question. I'm going back to an external cron job to pull the Hiera data (and to do the librarian-puppet update runs) for the simple reason that if you have a catalog problem on your puppet master, you can't use puppet to get the fixes onto your puppet master. Ah well. So much for clever.

edit flag offensive delete link more


r10k do the job

c4f4t0r gravatar imagec4f4t0r ( 2018-12-02 04:54:48 -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-05-01 18:36:49 -0600

Seen: 385 times

Last updated: May 01 '15