Docker image for puppet server v.4
Autosigning is turned on in puppet.conf.
docker run -d -v /<<your-host-dir>>:/opt/puppetlabs/code --name puppetmaster -h puppet -p 8140:8140 kindoblue/docker-centos7-puppet4
- Important, to initialize the codedir of puppet master:
docker exec puppetmaster cp -Rf /etc/puppetlabs/code/ /opt/puppetlabs/
- To see list of certs:
docker exec puppetmaster /opt/puppetlabs/bin/puppet cert list -all
- To test on a client:
- Install Puppet, Hiera, Facter, and Puppet LaunchDaemon onto client
- Add the IP of your Docker host to /etc/hosts (or configure DNS so that your Docker host is reachable at "puppet"). For example:
"10.0.0.1 puppet" - Test puppet on client running as root:
/opt/puppetlabs/bin/puppet agent --test
You should see the cert request being generated and autosigned. - To create manifests for the preexisting environment, place them in
/<<your-host-dir>/environments/production/manifests