Book Image

Puppet 3: Beginner's Guide

By : John Arundel
Book Image

Puppet 3: Beginner's Guide

By: John Arundel

Overview of this book

<p>Everyone's talking about Puppet, the open-source DevOps technology that lets you automate your server setups and manage websites, databases, and desktops. Puppet can build new servers in seconds, keep your systems constantly up to date, and automate daily maintenance tasks. <br /><br />"Puppet 3 Beginner's Guide" gets you up and running with Puppet straight away, with complete real world examples. Each chapter builds your skills, adding new Puppet features, always with a practical focus. You'll learn everything you need to manage your whole infrastructure with Puppet.<br /><br />"Puppet 3 Beginner’s Guide" takes you from complete beginner to confident Puppet user, through a series of clear, simple examples, with full explanations at every stage.</p> <p>Through a series of worked examples introducing Puppet to a fictional web company, you'll learn how to manage every aspect of your server setup. Switching to Puppet needn't be a big, long-term project; this book will show you how to start by bringing one small part of your systems under Puppet control and, little by little, building to the point where Puppet is managing your whole infrastructure.</p> <p>Presented in an easy-to-read guide to learning Puppet from scratch, this book explains simply and clearly all you need to know to use this essential IT power tool, all the time applying these solutions to real-world scenarios.</p>
Table of Contents (17 chapters)
Puppet 3 Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Time for action – pushing changes to the master repo


We have made a change to our working copy of the Puppet repo on demo2, but so far we haven't committed and pushed the change to the master repo. We need to do this so that the changes will be available to all other machines using the repo.

  1. Commit the changes:

    ubuntu@demo2:~$ sudo su - git
    $ bash   
    git@demo2:~$ cd puppet
    git@demo2:~/puppet$ git status
    # On branch master
    # Changes not staged for commit:
    #   (use "git add <file>..." to update what will be committed)
    #   (use "git checkout -- <file>..." to discard changes in working directory)
    #
    #  modified:   manifests/nodes.pp
    #
    no changes added to commit (use "git add" and/or "git commit -a")
    git@demo2:~/puppet$ git add manifests/nodes.pp
    git@demo2:~/puppet$ git commit -m "Adding node demo2" --author="[email protected]"
    [master 967cb8b] Adding node demo2
     ...
     1 file changed, 5 insertions(+)
    
  2. Now push all changes back to the master repo:

    git@demo2:~/puppet$ git push...