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

User privileges


Linux and other UNIX-like operating systems commonly have two levels of user privilege: the root user, who can edit system files and perform operations tasks, such as rebooting the machine, and normal users, who can only edit and read files owned by themselves, and have no special privileges. This ensures that users don't get access to files or commands that they shouldn't have. However, sometimes you need to grant special privileges to a user, without giving her full access to the root account. You can do this using a UNIX command called sudo.

sudo

The sudo command allows normal users to run commands with root privileges, if this is specifically authorized by the system administrator. For example, a developer user might be given privileges to run service nginx restart as root.

The set of users allowed to assume root privileges, and the specific commands they can run, is specified in the file /etc/sudoers. We can use Puppet to manage this file, and thus control user privileges...