How to Install and Configure a Puppet Agent

Example #2: Creating a Directory Structure With Permissions With the code above, we instruct Puppet to ensure the directory at the specified path will exist, that it will belong to the specified user and group, and that it will have read and write permissions for the owner and read permissions for anyone else. The following […]

Example #2: Creating a Directory Structure With Permissions With the code above, we instruct Puppet to ensure the directory at the specified path will exist, that it will belong to the specified user and group, and that it will have read and write permissions for the owner and read permissions for anyone else. The following command uses vim: sudo vim /etc/hosts Place the following two lines at the end of the file: [puppet master ip] puppetmaster puppet [puppet client ip] puppetclient For instance, let’s say the IP addresses are 192.168.2.1 and 192.168.2.2, respectively. Example #3: Installing Git With the following bit of Puppet code, we declare that Git must be installed: The following excerpt configures the global user and email for signing commits: Conclusion Puppet is a powerful and flexible tool for configuration management.
Source: CloudBees