]> git.immae.eu Git - github/fretlink/ansible-rabbitmq.git/blobdiff - bootstrap.sh
Added support for CentOS and Vagrant
[github/fretlink/ansible-rabbitmq.git] / bootstrap.sh
diff --git a/bootstrap.sh b/bootstrap.sh
new file mode 100755 (executable)
index 0000000..7bcf8b0
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/bash
+if [ -f /etc/debian_version ]; then
+  codename="$(lsb_release -c | awk {'print $2}')"
+  if [ $codename == "vivid" ]; then
+    sudo apt-get update && sudo apt-get -y install python-simplejson
+  fi
+fi
+if [ -f /etc/redhat-release ]; then
+  codename="$(gawk -F= '/^NAME/{print $2}' /etc/os-release)"
+  if [ $codename == "Fedora" ]; then
+    sudo dnf -y install python-devel python-dnf python-pip && \
+    sudo dnf -y group install "C Development Tools and Libraries"
+  fi
+fi