corl 0.5.3 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +1 -2
- data/Gemfile.lock +5 -10
- data/VERSION +1 -1
- data/bootstrap/bootstrap.sh +1 -4
- data/bootstrap/os/ubuntu/05_ruby.sh +9 -3
- data/bootstrap/os/ubuntu/10_corl.sh +26 -2
- data/corl.gemspec +7 -10
- data/lib/CORL/machine/AWS.rb +38 -38
- data/lib/CORL/machine/rackspace.rb +2 -3
- data/lib/CORL/node/AWS.rb +36 -36
- data/lib/CORL/node/rackspace.rb +30 -30
- data/lib/core/mod/fog_rackspace_server.rb +29 -0
- data/lib/core/plugin/fog_machine.rb +66 -65
- data/lib/core/plugin/fog_node.rb +56 -56
- data/lib/core/plugin/node.rb +1 -1
- data/lib/corl.rb +14 -14
- data/lib/nucleon/action/node/bootstrap.rb +1 -1
- metadata +20 -30
- data/bootstrap/os/ubuntu/06_puppet.sh +0 -51
@@ -1,51 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
#-------------------------------------------------------------------------------
|
3
|
-
|
4
|
-
PUPPET_PACKAGE="3.6.2-1puppetlabs1"
|
5
|
-
|
6
|
-
#---
|
7
|
-
|
8
|
-
# Set up Puppet Apt repositories
|
9
|
-
echo "1. Fetching Puppet keys"
|
10
|
-
apt-key adv --recv-key --keyserver pgp.mit.edu 4BD6EC30 >/tmp/puppet.key.log 2>&1 || exit 60
|
11
|
-
|
12
|
-
echo "2. Updating Puppet packages from source"
|
13
|
-
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
|
14
|
-
chmod 0644 /etc/apt/sources.list.d/corl_puppet.list || exit 62
|
15
|
-
|
16
|
-
apt-get -y update >/tmp/puppet.update.log 2>&1 || exit 63
|
17
|
-
|
18
|
-
# Install Puppet
|
19
|
-
echo "3. Ensuring Puppet"
|
20
|
-
apt-get -y install hiera puppet-common="$PUPPET_PACKAGE" puppet="$PUPPET_PACKAGE" >/tmp/puppet.install.log 2>&1 || exit 64
|
21
|
-
|
22
|
-
chown -R root:puppet /var/lib/puppet || exit 65
|
23
|
-
|
24
|
-
# Set up Hiera configuration
|
25
|
-
mkdir -p /var/corl/config || exit 66
|
26
|
-
|
27
|
-
if [ ! -e /etc/hiera.yaml ]
|
28
|
-
then
|
29
|
-
echo "4. Configuring Hiera"
|
30
|
-
|
31
|
-
( cat <<'EOP'
|
32
|
-
---
|
33
|
-
:merge_behavior: deeper
|
34
|
-
:backends:
|
35
|
-
- yaml
|
36
|
-
- json
|
37
|
-
:yaml:
|
38
|
-
:datadir: /var/corl/config
|
39
|
-
:json:
|
40
|
-
:datadir: /var/corl/config
|
41
|
-
:hierarchy:
|
42
|
-
- common
|
43
|
-
EOP
|
44
|
-
) > /etc/hiera.yaml || exit 67
|
45
|
-
chmod 0440 /etc/hiera.yaml || exit 68
|
46
|
-
fi
|
47
|
-
|
48
|
-
if [ ! -e /etc/puppet/hiera.yaml ]
|
49
|
-
then
|
50
|
-
ln -fs /etc/hiera.yaml /etc/puppet/hiera.yaml || exit 69
|
51
|
-
fi
|