May 2017
Beginner
268 pages
6h 1m
English
In order to prepare a new node for Puppet management using the demo repo, we need to do a number of things:
In Chapter 3, Managing your Puppet code with Git, we performed these steps manually, but the demo repo automates this process (usually known as bootstrap). Here is the bootstrap script (scripts/bootstrap.sh):
#!/bin/bash PUPPET_REPO=$1 HOSTNAME=$2 BRANCH=$3 if [ "$#" -ne 3 ]; then echo "Usage: $0 PUPPET_REPO HOSTNAME BRANCH" exit 1 fi hostname ${HOSTNAME} echo ${HOSTNAME} >/etc/hostnametch-keys http://apt.puppetlabs.com/DEB-GPG-KEY-puppet wget http://apt.puppetlabs.com/puppetlabs-release-pc1-${DISTRIB_CODENAME}.deb dpkg -i puppetlabs-release-pc1-${DISTRIB_CODENAME}.deb ...Read now
Unlock full access