aboutsummaryrefslogtreecommitdiffhomepage
path: root/Vagrant/bootstrap.sh
diff options
context:
space:
mode:
authorLarry Smith Jr <mrlesmithjr@gmail.com>2016-12-03 17:51:25 -0500
committerLarry Smith Jr <mrlesmithjr@gmail.com>2016-12-03 17:51:25 -0500
commit109c6b750751d1c5cd216ad2f09258cf512c4c9e (patch)
tree0b276b62a25937dd5edb6d905952cf107b7c88ca /Vagrant/bootstrap.sh
parent8f8673fb8dfa2bd4fa2694cbfdcb6eed54e502de (diff)
downloadansible-rabbitmq-109c6b750751d1c5cd216ad2f09258cf512c4c9e.tar.gz
ansible-rabbitmq-109c6b750751d1c5cd216ad2f09258cf512c4c9e.tar.zst
ansible-rabbitmq-109c6b750751d1c5cd216ad2f09258cf512c4c9e.zip
Addressed issue #6
Signed-off-by: Larry Smith Jr <mrlesmithjr@gmail.com>
Diffstat (limited to 'Vagrant/bootstrap.sh')
-rwxr-xr-xVagrant/bootstrap.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/Vagrant/bootstrap.sh b/Vagrant/bootstrap.sh
new file mode 100755
index 0000000..5f1620e
--- /dev/null
+++ b/Vagrant/bootstrap.sh
@@ -0,0 +1,23 @@
1#!/bin/bash
2if [ -f /etc/debian_version ]; then
3 codename="$(lsb_release -c | awk {'print $2}')"
4 if [[ $codename == "vivid" ]]; then
5 sudo apt-get update && \
6 sudo apt-get -y install python-simplejson
7 fi
8 if [[ $codename == "wily" ]]; then
9 sudo apt-get update && \
10 sudo apt-get -y install python-simplejson
11 fi
12 if [[ $codename == "xenial" ]]; then
13 sudo apt-get update && \
14 sudo apt-get -y install python-simplejson
15 fi
16fi
17if [ -f /etc/redhat-release ]; then
18 codename="$(gawk -F= '/^NAME/{print $2}' /etc/os-release)"
19 if [[ $codename == "Fedora" ]]; then
20 sudo dnf -y install python-devel python-dnf && \
21 sudo dnf -y group install "C Development Tools and Libraries"
22 fi
23fi