aboutsummaryrefslogtreecommitdiffhomepage
path: root/Vagrant/roles/ansible-rabbitmq/Vagrant/bootstrap.sh
blob: 5f1620ebb646587465a930ed0b2b4525ae5f5aba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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
  if [[ $codename == "wily" ]]; then
    sudo apt-get update && \
    sudo apt-get -y install python-simplejson
  fi
  if [[ $codename == "xenial" ]]; 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 && \
    sudo dnf -y group install "C Development Tools and Libraries"
  fi
fi