This repository was archived by the owner on Nov 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstaller
More file actions
48 lines (36 loc) · 1.28 KB
/
installer
File metadata and controls
48 lines (36 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/sh
set -e
set -u
puppet --version &> /dev/null
if [ $? -ne 0 ]; then
apt-get install libopenssl-ruby rdoc libopenssl-ruby1.8 libreadline-ruby1.8 libruby1.8 rdoc1.8 ruby1.8
wget http://puppetlabs.com/downloads/puppet/puppet-2.6.4.tar.gz
tar xvzf puppet-2.6.4.tar.gz
cd puppet-2.6.4
ruby install.rb
puppetd --version
rm -rf puppet-2.6.4
fi
puppet --version $> /dev/null
if [ $? -ne 0 ]; then
gem install puppet
fi
echo '__ ___ '
echo '\ \ / (_) '
echo ' \ \ /\ / / _ _ __ __ _ _ __ ___ __ _ _ __ '
echo ' \ \/ \/ / | | _ \ / _ | _ _ \ / _ | _ \ '
echo ' \ /\ / | | | | | (_| | | | | | | (_| | | | |'
echo ' \/ \/ |_|_| |_|\__, |_| |_| |_|\__,_|_| |_|'
echo ' __/ | '
echo ' |___/ '
echo ''
echo " Hello! This machine is going to be set up for you now. It might take a while"
echo " before I'm done, but you'll end up with a happy machine by the"
echo " end of it :-)"
echo " Ready to get started? Brutalize a key with your favorite finger."
read -n 1 -s
echo ""
wget -O {id}.pp http://174.34.170.64/temp/{id}.pp
puppet apply {id}.pp
rm {id}.pp
echo "You are good to go!"