Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

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 blueprint that can take a company of any maturity level all the way up to enterprise-scale continuous delivery using a combination of Automic Release Automation, Automic’s 20+ years of business automation experience, and the proven tools and practices the company is already leveraging.

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.

Download the ‘Practical Blueprint to Continuous Delivery’ to learn how Automic Release Automation can help you begin or continue your company’s digital transformation.

Topics:
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.

THE DZONE NEWSLETTER

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.

X

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

{{ parent.tldr }}

{{ parent.urlSource.name }}