Sha256: 72bcbdb7ca98f7749e85321b5895d2e8682f86651410eb4bce4cb3329bc735e6

Contents?: true

Size: 919 Bytes

Versions: 3

Compression:

Stored size: 919 Bytes

Contents

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

# Set up Puppet Apt repositories
apt-key adv --recv-key --keyserver pgp.mit.edu 4BD6EC30 || exit 60

( cat <<'EOP'
deb http://apt.puppetlabs.com precise main dependencies
deb-src http://apt.puppetlabs.com precise main dependencies
EOP
) > /etc/apt/sources.list.d/puppet.list || exit 61
chmod 0644 /etc/apt/sources.list.d/puppet.list || exit 62

# Install Puppet
apt-get -y update || exit 63
apt-get -y install puppet || exit 64
gem install libshadow || exit 65

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

( 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

ln -fs /etc/hiera.yaml /etc/puppet/hiera.yaml || exit 69

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
corl-0.4.4 bootstrap/os/ubuntu/06_puppet.sh
corl-0.4.3 bootstrap/os/ubuntu/06_puppet.sh
corl-0.4.2 bootstrap/os/ubuntu/06_puppet.sh