diff options
author | Larry Smith Jr <mrlesmithjr@gmail.com> | 2016-12-03 17:51:25 -0500 |
---|---|---|
committer | Larry Smith Jr <mrlesmithjr@gmail.com> | 2016-12-03 17:51:25 -0500 |
commit | 109c6b750751d1c5cd216ad2f09258cf512c4c9e (patch) | |
tree | 0b276b62a25937dd5edb6d905952cf107b7c88ca /Vagrant/roles/ansible-rabbitmq/bootstrap.sh | |
parent | 8f8673fb8dfa2bd4fa2694cbfdcb6eed54e502de (diff) | |
download | ansible-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/roles/ansible-rabbitmq/bootstrap.sh')
-rwxr-xr-x | Vagrant/roles/ansible-rabbitmq/bootstrap.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Vagrant/roles/ansible-rabbitmq/bootstrap.sh b/Vagrant/roles/ansible-rabbitmq/bootstrap.sh new file mode 100755 index 0000000..7bcf8b0 --- /dev/null +++ b/Vagrant/roles/ansible-rabbitmq/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 | ||