Sha256: 57d9464f4f037f8dbd686b6dfa78ffb742b6b0f4a402df0bcdd5444c21aed146

Contents?: true

Size: 1.15 KB

Versions: 7

Compression:

Stored size: 1.15 KB

Contents

#!/bin/bash
#-------------------------------------------------------------------------------

case "$OS_VERSION" in
'14.04')
    PUPPET_PACKAGE="3.4.3-1"
;;
'12.04')
    PUPPET_PACKAGE="3.4.3-1puppetlabs1"
;;
esac

#---

# 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 puppet-common="$PUPPET_PACKAGE" puppet="$PUPPET_PACKAGE" || exit 64

# Set up Hiera configuration
mkdir -p /var/corl/config || exit 65

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 66
chmod 0440 /etc/hiera.yaml || exit 67
fi

if [ ! -e /etc/puppet/hiera.yaml ]
then
    ln -fs /etc/hiera.yaml /etc/puppet/hiera.yaml || exit 68
fi

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
corl-0.4.29 bootstrap/os/ubuntu/06_puppet.sh
corl-0.4.28 bootstrap/os/ubuntu/06_puppet.sh
corl-0.4.27 bootstrap/os/ubuntu/06_puppet.sh
corl-0.4.26 bootstrap/os/ubuntu/06_puppet.sh
corl-0.4.25 bootstrap/os/ubuntu/06_puppet.sh
corl-0.4.24 bootstrap/os/ubuntu/06_puppet.sh
corl-0.4.23 bootstrap/os/ubuntu/06_puppet.sh