Skip to content

Commit 67da7b2

Browse files
Put install back in, add debug code, gem better
1 parent 6a6b6e8 commit 67da7b2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Vagrantfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Vagrant.configure("2") do |config|
22
config.vm.box = "bento/centos-7.5"
33
config.vm.synced_folder ".", "/app"
4+
config.vm.provision "shell", inline: "/app/bin/install-gauntlt.sh", upload_path: "/home/vagrant/install-gauntlt.sh"
45
config.vm.provision "shell", inline: "/app/bin/install-ansible.sh", upload_path: "/home/vagrant/install-ansible.sh"
56
config.vm.provision "shell", inline: "cd /app/ansible && ansible-playbook -l localhost bakery.yml app-AfterInstall.yml app-StartServer.yml", upload_path: "/home/vagrant/apl.sh"
67
config.vm.network "forwarded_port", guest: 80, host: 6080, auto_correct: true

bin/install-gauntlt.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ function quick_yum_install() {
2121
package=${1?"You must specify a package to install"}
2222
if ! rpm -q "$package" > /dev/null; then
2323
sudo yum -y -q install "$package"
24+
else
25+
echo "$package already installed, skipping"
2426
fi
2527
}
2628

@@ -57,4 +59,6 @@ else
5759
fi
5860
ruby --version
5961

60-
gem list gauntlt || gem install gauntlt --no-ri --no-rdoc
62+
if ! (gem list gauntlt | grep gauntlt > /dev/null); then
63+
gem install gauntlt --no-ri --no-rdoc
64+
fi

0 commit comments

Comments
 (0)