aboutsummaryrefslogtreecommitdiffhomepage
path: root/bootstrap.sh
diff options
context:
space:
mode:
authorLarry Smith Jr <mrlesmithjr@gmail.coml>2016-03-03 15:28:30 -0500
committerLarry Smith Jr <mrlesmithjr@gmail.coml>2016-03-03 15:28:30 -0500
commit203ffcbfc31abb06c306d3adbde7e44dce9afca2 (patch)
tree752378316844898114f23c499bad0a2ae6f28cfc /bootstrap.sh
parent93a297c59940c7cfe88afe0f9110af5b4be521e3 (diff)
downloadansible-rabbitmq-203ffcbfc31abb06c306d3adbde7e44dce9afca2.tar.gz
ansible-rabbitmq-203ffcbfc31abb06c306d3adbde7e44dce9afca2.tar.zst
ansible-rabbitmq-203ffcbfc31abb06c306d3adbde7e44dce9afca2.zip
Added support for CentOS and Vagrant
Signed-off-by: Larry Smith Jr <mrlesmithjr@gmail.coml>
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-xbootstrap.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
new file mode 100755
index 0000000..7bcf8b0
--- /dev/null
+++ b/bootstrap.sh
@@ -0,0 +1,14 @@
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 && sudo apt-get -y install python-simplejson
6 fi
7fi
8if [ -f /etc/redhat-release ]; then
9 codename="$(gawk -F= '/^NAME/{print $2}' /etc/os-release)"
10 if [ $codename == "Fedora" ]; then
11 sudo dnf -y install python-devel python-dnf python-pip && \
12 sudo dnf -y group install "C Development Tools and Libraries"
13 fi
14fi