Philippe Conway
2013-Dec-01 17:20 UTC
[Puppet Users] best way to distribute puppet manifests
Hi Everyone, I am currently trying to learn puppet through this book called Puppet 3 Beginners Guide by John Arundel and it talks about distributing puppet manifests using git. As I''m going through it, it looks a little pieced together and complex. I was wondering what was the best way? Using the puppet-master or through git? Just wondering what everyone else does to distribute their manifests? Any advice would be appreciated. Thanks! -- 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+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/3cf047fa-9e8e-46dd-9105-6ee9e2150e9e%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Rich Burroughs
2013-Dec-03 00:08 UTC
Re: [Puppet Users] best way to distribute puppet manifests
I think it depends a bit on your situation. If you''re the only one editing the code, you might find using a version control system too much overhead. I would probably still want to do it even in that case, but not everyone would. If you''re making changes infrequently, a backup of the files might be enough for your comfort level. If there are multiple people editing the code, I think it''s a no brainer to use some kind of version control, whether it''s git or another option. It''s great to be able to look at commits and know who changed what, when, and why. One nice thing about git specifically is that branching is really inexpensive. We use topic branches a lot where I work and then test against them using "--environment =" when we run the agent. Rich On Sun, Dec 1, 2013 at 9:20 AM, Philippe Conway <philippe.conway@gmail.com>wrote:> Hi Everyone, > > I am currently trying to learn puppet through this book called Puppet 3 > Beginners Guide by John Arundel and it talks about distributing puppet > manifests using git. As I''m going through it, it looks a little pieced > together and complex. > > I was wondering what was the best way? Using the puppet-master or through > git? Just wondering what everyone else does to distribute their manifests? > > Any advice would be appreciated. Thanks! > > -- > 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+unsubscribe@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/3cf047fa-9e8e-46dd-9105-6ee9e2150e9e%40googlegroups.com > . > For more options, visit https://groups.google.com/groups/opt_out. >-- 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+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAPGcbtCbWcGPk6U8%3DURhECx6g55JYQ4hMWy2uJFbp8gJ-nmL2Q%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
jcbollinger
2013-Dec-03 16:26 UTC
[Puppet Users] Re: best way to distribute puppet manifests
On Sunday, December 1, 2013 11:20:50 AM UTC-6, Philippe Conway wrote:> > Hi Everyone, > > I am currently trying to learn puppet through this book called Puppet 3 > Beginners Guide by John Arundel and it talks about distributing puppet > manifests using git. As I''m going through it, it looks a little pieced > together and complex. > > I was wondering what was the best way? Using the puppet-master or through > git? Just wondering what everyone else does to distribute their manifests? > >What is your purpose for "distributing" manifests? If you are planning an agent/master setup, then the only place the manifests *need* to reside is on the master. In particular, they do not need to be present on the target nodes under management (except inasmuch as the master may reside on a managed node). Delivering manifests to target nodes is necessary only if you want to operate in masterless mode, using "puppet apply" on the target nodes instead of running the agent. If you want to perform distributed manifest development -- i.e. you have a team who will cooperate on writing and maintaining your manifest set -- then a version-control system such as git or svn is nearly a necessity. In that case, it makes sense to use your VCS at need to update the master with the right version of its working copy of the manifests. Even if you are the sole manifest developer, it might make sense to do manifest development somewhere other than on your primary master, and there certainly are still advantages to a VCS, so even then it might be a good fit to deliver the desired version of your manifest set to your master via your VCS. And if you are doing your manifest development directly on your master then I would strongly advise you to use a VCS, though there is no "distributing" involved in that case. Also, if you are planning a masterless setup then it makes a lot of sense for nodes to pull their manifest set from your VCS. John -- 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+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/c2f89cc3-ad41-49d2-a9b6-c48f01d68c38%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.