Manage sudo privileges
Managing sudo on your agents allows you to control which system users have access to elevated privileges. This guide helps you get started managing sudo privileges across your nodes, using a module from the Puppet Forge in conjunction with a simple module you write.
Before starting this walk-through, complete the previous exercises.
Ensure you’ve already installed Puppet, and at least one *nix agent. Also, log in as root or Administrator on your nodes.
Using this guide, you learn how to:
-
Install the
saz-sudo
module as the foundation for managing sudo privileges. -
Write a module that contains a class called
privileges
to manage a resource that sets privileges for certain users. -
Add classes from the
privileges
andsudo
modules to your agents.
sudo
and privileges
classes to as many agents as needed. For simplicity, this guide describes only one.For more information about working with Puppet and sudo users, see our Module of The Week: saz/sudo - Manage sudo configuration blog post.
Puppet offers many opportunities for learning and training, from formal certification courses to guided online lessons. See the Learning Puppet page for more information.