File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 2
2
#
3
3
# This bootstraps Puppet on Ubuntu 12.04 LTS.
4
4
#
5
+ # To try puppet 4 --> PUPPET_COLLECTION=pc1 ./ubuntu.sh
6
+ #
5
7
set -e
6
8
7
9
# Load up the release information
8
10
. /etc/lsb-release
9
11
10
- REPO_DEB_URL=" http://apt.puppetlabs.com/puppetlabs-release-${DISTRIB_CODENAME} .deb"
12
+ # if PUPPET_COLLECTION is not prepended with a dash "-", add it
13
+ [[ " ${PUPPET_COLLECTION} " == " " ]] || [[ " ${PUPPET_COLLECTION: 0: 1} " == " -" ]] || \
14
+ PUPPET_COLLECTION=" -${PUPPET_COLLECTION} "
15
+ [[ " ${PUPPET_COLLECTION} " == " " ]] && PINST=" puppet" || PINST=" puppet-agent"
16
+
17
+ REPO_DEB_URL=" http://apt.puppetlabs.com/puppetlabs-release${PUPPET_COLLECTION} -${DISTRIB_CODENAME} .deb"
11
18
12
19
# --------------------------------------------------------------------
13
20
# NO TUNABLES BELOW THIS POINT
@@ -39,7 +46,7 @@ apt-get update >/dev/null
39
46
40
47
# Install Puppet
41
48
echo " Installing Puppet..."
42
- DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::=" --force-confdef" -o Dpkg::Options::=" --force-confold" install puppet > /dev/null
49
+ DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::=" --force-confdef" -o Dpkg::Options::=" --force-confold" install ${PINST} > /dev/null
43
50
44
51
echo " Puppet installed!"
45
52
You can’t perform that action at this time.
0 commit comments