Initial bootstrap

make sure lsb-release is installed

aptitude install lsb-release

add the backports key

/usr/bin/wget -O - | /usr/bin/apt-key add

and repository source

cat > /etc/apt/sources.list <<EOF
deb lenny main contrib non-free
deb-src lenny main contrib non-free
deb lenny/updates main contrib non-free
deb-src lenny/updates main contrib non-free
deb lenny-backports main contrib non-free

do an update to get the backports packages in your package list

aptitude update

install puppet

echo ' puppet' >> /etc/hosts
apt-get install -t lenny-backports puppet

do your first run

puppet agent --test -w 5

Sign the certificate

Then on the puppetmaster

puppet ca list
puppet ca sign <the outstanding servers hostname>

Do your initial puppet sync

Then back on the new host

puppet agent --test

Then you should be done assuming your default node has your basic setup, otherwise create a node in your puppet config with your required setup and run the puppetd -td command again.


The backports version of puppet defaults to not starting puppet at boot. This is good. Puppet running as a daemon seems to lock up and seem like its running when in fact it is doing nothing. It is much better to run puppet from cron to ensure its reliability.