Over a million developers have joined DZone.

Automating With Puppet: Initial setup

DZone's Guide to

Automating With Puppet: Initial setup

So you're ready to jump on the devops bandwagon! Check out Puppets quick-start guide to getting your code deployed with automation

· DevOps Zone
Free Resource

Download “The DevOps Journey - From Waterfall to Continuous Delivery” to learn learn about the importance of integrating automated testing into the DevOps workflow, brought to you in partnership with Sauce Labs.

Editor's Note: This post is a taste of what you'll get in our ebook about about automating routine IT tasks with Puppet, The Top 5 Things to Automate with Puppet Right Now. Download it for free to read the rest.

As you manage more and more with Puppet, and add more contributors to the Puppet code base, you’ll want to manage scale and complexity for yourself and your team. You can do this by taking advantage of a Puppet control repository.

The control repository holds all the information needed to construct a Puppet environment. We’ve combined all the hard-won best practices for managing Puppet infrastructures into the example control repository below.

The following instructions will show you how to implement these best practices on Day One, so your Puppet Enterprise deployment can scale as rapidly as you need it to.

If you’ve already set up a control repository for your installation, you can safely skip this step.

Deploy Your Code

In order to make changes to your Puppet code you will need need to do the following things:

  • Make the changes locally.
  • Push those changes to GitHub.
  • Pull those changes down to the Puppet master.

Although you can circumvent this by editing code directly on the Puppet master, it's much easier to collaborate if you are using this process.

Once you have made changes to your Puppet code and pushed those changes to GitHub, you should do the following to get it onto the master:

  1. Add and commit your changes to Git using git add and git commit .
  2. Push those changes to GitHub using git push.
  3. Pull the new code down onto the master using puppet code deploy production --wait (on the Puppet master).

If you think this is tedious, then just automate it.

Now you’re ready to start automating with Puppet! Watch this space for the rest of our series to learn about other common processes you can automate with Puppet.

Dylan Ratcliffe is a professional services engineer at Puppet.

Discover how to optimize your DevOps workflows with our cloud-based automated testing infrastructure, brought to you in partnership with Sauce Labs

environment ,best practices ,repository ,puppet ,practices ,deployment

Published at DZone with permission of Dylan Ratcliffe, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.


Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.


{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}