We've settled on a git repo per module, then using r10k (thinking about
moving to librarian-puppet) to pull modules from git onto our nodes.
This happens in the wrapper script that we run out of cron that also
executes the puppet apply.

The advantage here is that if you happen to "break" puppet, you can
still get your fixes pulled onto the node without manual intervention.

-  Jeff

On 03/11/2015 07:32 PM, Hubert Lubaczewski wrote:
Hi,

I'm trying to learn puppet by using it on a test machine I have. Figured
that for single server, it makes sense to use master-less mode.

So, my question is like this. To set it up, I figured that:
1. /etc/puppet would be clone of some repo
2. in /etc/puppet/manifests/site.pp, I would add vcsrepo{} that would
make sure that puppet will update itself on each run
3. I'll add a cronjob to periodically run "puppet apply
/etc/puppet/manifests/site.pp"

Optionally, I would run "git pull" before actual puppet apply, so that
puppet will run on already updated repo.

Does it make sense? Am I missing something? I know it's pretty basic,
but in one place I had to write quite a lot of manifests/modules for
puppet, and finally decided to setup whole machine, on my own, using puppet.

Thanks for any help/guidance,

depesz

--
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
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/b6da6bf0-9152-472b-b54f-85c0cf87b7d1%40googlegroups.com
<https://groups.google.com/d/msgid/puppet-users/b6da6bf0-9152-472b-b54f-85c0cf87b7d1%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

________________________________

This message and any attached files contain confidential information and is 
intended only for the individual named. If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail. Please notify the 
sender immediately by e-mail if you have received this e-mail by mistake and 
delete this e-mail from your system. E-mail transmission cannot be guaranteed 
to be secure or without error as information could be intercepted, corrupted, 
lost, destroyed, arrive late or incomplete, or contain viruses. The sender 
therefore does not accept liability for any errors or omissions in the contents 
of this message, which arise as a result of e-mail transmission. If 
verification is required please request a hard-copy version.

--
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/5501921E.2090409%40bancvue.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to