]> git.immae.eu Git - github/fretlink/ansible-rabbitmq.git/blame - Vagrant/roles/ansible-rabbitmq/Vagrant/bootstrap.sh
Updated Vagrant testing
[github/fretlink/ansible-rabbitmq.git] / Vagrant / roles / ansible-rabbitmq / Vagrant / bootstrap.sh
CommitLineData
3a55d2ab
LSJ
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