Skip to content

Instantly share code, notes, and snippets.

@dhgwilliam
Created July 24, 2012 17:05
Show Gist options
  • Save dhgwilliam/3171227 to your computer and use it in GitHub Desktop.
Save dhgwilliam/3171227 to your computer and use it in GitHub Desktop.
Install Guide for Puppet Open Source

Converting Puppet Open Source Edition to Puppet Enterprise

Installing OSE - Ubuntu 10.04.4 LTS - Master

master# echo "10.16.1.2 master master.puppetlabs.lan" >> /etc/hosts
master# echo "master" > /etc/hostname
master# hostname -F /etc/hostname # log out & in
master# wget http://apt.puppetlabs.com/puppetlabs-release_1.0-3_all.deb
master# dpkg -i puppetlabs-release*.deb
master# apt-get update
master# vi /usr/sbin/policy-rc.d # paste the following
#!/bin/sh
exit 101

master# chmod +x /usr/sbin/policy-rc.d
master# apt-get install puppetmaster-passenger
master# vi /etc/puppet/puppet.conf # content:
[main]
logdir=/var/log/puppet
vardir=/var/lib/puppet
ssldir=/var/lib/puppet/ssl
rundir=/var/run/puppet
factpath=$vardir/lib/facter
templatedir=$confdir/templates

[master]
# These are needed when the puppetmaster is run by passenger
# and can safely be removed if webrick is used.
ssl_client_header = SSL_CLIENT_S_DN 
ssl_client_verify_header = SSL_CLIENT_VERIFY
dns_alt_names = master,master.puppetlabs.lan,puppet,puppet.puppetlabs.lan

[agent]
server = master.puppetlabs.lan
report = true
pluginsync = true
certname = master.puppetlabs.lan

master# rm /usr/sbin/policy-rc.d
master# /etc/init.d/apache2 restart
master# puppet agent -t
info: Retrieving plugin
err: /File[/var/lib/puppet/lib]: Could not evaluate: Could not retrieve     information from environment production source(s) puppet://master.puppetlabs.lan/plugins
info: Caching catalog for master.puppetlabs.lan
info: Applying configuration version '1340319338'
info: Creating state file /var/lib/puppet/state/state.yaml
notice: Finished catalog run in 0.03 seconds

NB: Until you have a module with a lib folder, the "Could not evaluate" error will continue to appear; it is simply info-level logging, do not worry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment