mirror of https://github.com/ceph/ceph-ansible.git
Merge pull request #117 from leseb/bootstrap-ansible
Add a script to bootstrap Ansiblepull/118/head
commit
36dd022530
|
@ -0,0 +1,25 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [[ $EUID -ne 0 ]]; then
|
||||||
|
echo "You are NOT running this script as root."
|
||||||
|
echo "You should."
|
||||||
|
echo "Really."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -x $(which lsb_release 2>/dev/null) ]]; then
|
||||||
|
os_VENDOR=$(lsb_release -i -s)
|
||||||
|
if [[ "Debian" =~ $os_VENDOR ]]; then
|
||||||
|
apt-get update
|
||||||
|
apt-get install python-pip python-dev git build-essential -y
|
||||||
|
pip install PyYAML jinja2 paramiko
|
||||||
|
git clone https://github.com/ansible/ansible.git
|
||||||
|
cd ansible
|
||||||
|
make install
|
||||||
|
mkdir /etc/ansible
|
||||||
|
elif [[ "Ubuntu" =~ $os_VENDOR ]]; then
|
||||||
|
apt-get install -y ansible
|
||||||
|
elif [[ -r /etc/redhat-release ]]; then
|
||||||
|
yum install -y ansible
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue