Initial Configuration of Puppetd on OS X

Oct 5, 2010

Configuring puppetd on OS X

Create the User and Group accounts;

1
2
3
4
5
6
7
sudo dscl . -create /Groups/puppet
sudo dscl . -create /Groups/puppet PrimaryGroupID 300

sudo dscl . -create /Users/puppet
sudo dscl . -create /Users/puppet PrimaryGroupID 300
sudo dscl . -create /Users/puppet UniqueID 300
sudo dscl . -create /Users/puppet UserShell /usr/bin/false

Create the folders

1
2
3
4
sudo mkdir /etc/puppet
sudo mkdir -p /var/puppet/log
sudo chown -R puppet:puppet /var/puppet
sudo chown -R puppet:puppet /etc/puppet

Create the config file.

1
sudo puppetd --genconfig > /etc/puppet/puppet.conf

Modify your /etc/hosts file with an entry for puppet (setting the server in the puppet.conf offers more flexibility should you move servers or change IP’s).

If you run into issues with your certificates;

Client

1
rm -rf /etc/puppet/ssl

Server

1
puppetca --clean CERT_ID

tags: [ puppet ]