diff options
author | Larry Smith Jr <mrlesmithjr@gmail.coml> | 2016-03-03 15:28:30 -0500 |
---|---|---|
committer | Larry Smith Jr <mrlesmithjr@gmail.coml> | 2016-03-03 15:28:30 -0500 |
commit | 203ffcbfc31abb06c306d3adbde7e44dce9afca2 (patch) | |
tree | 752378316844898114f23c499bad0a2ae6f28cfc /bootstrap.sh | |
parent | 93a297c59940c7cfe88afe0f9110af5b4be521e3 (diff) | |
download | ansible-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-x | bootstrap.sh | 14 |
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 | ||
2 | if [ -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 | ||
7 | fi | ||
8 | if [ -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 | ||
14 | fi | ||