Sha256: 6ea7b58038c32e8dbbd4b437061079bbe8c79fa6da87a73837cf520a5d2e2226
Contents?: true
Size: 1.12 KB
Versions: 2
Compression:
Stored size: 1.12 KB
Contents
#!/bin/bash #------------------------------------------------------------------------------- PUPPET_PACKAGE="3.6.2-1puppetlabs1" #--- # Set up Puppet Apt repositories apt-key adv --recv-key --keyserver pgp.mit.edu 4BD6EC30 2>&1 || exit 60 echo -e "# corl_puppet\ndeb http://apt.puppetlabs.com $OS_NAME main dependencies\ndeb-src http://apt.puppetlabs.com $OS_NAME main dependencies" | cat > /etc/apt/sources.list.d/corl_puppet.list || exit 61 chmod 0644 /etc/apt/sources.list.d/corl_puppet.list || exit 62 # Install Puppet apt-get -y update || exit 63 apt-get -y install hiera puppet-common="$PUPPET_PACKAGE" puppet="$PUPPET_PACKAGE" || exit 64 chown -R root:puppet /var/lib/puppet || exit 65 # Set up Hiera configuration mkdir -p /var/corl/config || exit 66 if [ ! -e /etc/hiera.yaml ] then ( cat <<'EOP' --- :merge_behavior: deeper :backends: - yaml - json :yaml: :datadir: /var/corl/config :json: :datadir: /var/corl/config :hierarchy: - common EOP ) > /etc/hiera.yaml || exit 67 chmod 0440 /etc/hiera.yaml || exit 68 fi if [ ! -e /etc/puppet/hiera.yaml ] then ln -fs /etc/hiera.yaml /etc/puppet/hiera.yaml || exit 69 fi
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
corl-0.5.2 | bootstrap/os/ubuntu/06_puppet.sh |
corl-0.5.1 | bootstrap/os/ubuntu/06_puppet.sh |