forked from maria/foregit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·27 lines (21 loc) · 867 Bytes
/
install.sh
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
#!/bin/bash
echo "Installing cURL and RVM"
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get install -y curl
curl -L https://get.rvm.io | bash -s stable
source /home/vagrant/.rvm/scripts/rvm
echo "Installing Ruby and Rails"
rvm use --install 2.0.0-p594
gem install rails -v 4.0.0 --no-ri --no-rdoc
echo "Installing Puppet and Foreman"
wget https://apt.puppetlabs.com/puppetlabs-release-precise.deb
dpkg -i puppetlabs-release-precise.deb
sudo echo "deb http://deb.theforeman.org/ precise 1.6" > /etc/apt/sources.list.d/foreman.list
sudo echo "deb http://deb.theforeman.org/ plugins 1.6" >> /etc/apt/sources.list.d/foreman.list
wget -q http://deb.theforeman.org/pubkey.gpg -O- | apt-key add -
sudo apt-get update && sudo apt-get install -y foreman-installer
sudo foreman-installer
echo "Installing accessories"
sudo apt-get install -y vim git
echo "Done."