2016-06-30 13:21:58 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Packages
|
|
|
|
apt-get --yes update
|
|
|
|
apt-get --yes upgrade
|
|
|
|
apt-get --yes install git screen vim telnet tcpdump python-setuptools gcc python-dev python-pip libssl-dev libffi-dev software-properties-common curl
|
|
|
|
|
|
|
|
# Get ansible-2.1+, vanilla ubuntu-16.04 ansible (2.0.0.2) is broken due to https://github.com/ansible/ansible/issues/13876
|
2016-06-30 14:56:52 +00:00
|
|
|
ansible --version || (
|
|
|
|
apt-add-repository -y ppa:ansible/ansible
|
|
|
|
apt-get update
|
|
|
|
apt-get install -y ansible
|
|
|
|
)
|
2016-06-30 13:21:58 +00:00
|
|
|
|
|
|
|
# Copy/create nodes list
|
2016-06-30 14:56:52 +00:00
|
|
|
test -f ./nodes || cp /var/tmp/nodes ./nodes
|
2016-06-30 13:21:58 +00:00
|
|
|
|
|
|
|
# Either pull or copy microservices repos
|
2016-07-07 17:30:36 +00:00
|
|
|
cp -a /var/tmp/microservices* ./ccp/ || touch /var/tmp/ccp-download
|
2016-06-30 13:21:58 +00:00
|
|
|
|
2016-07-08 15:08:09 +00:00
|
|
|
# Pull kargo
|
|
|
|
git clone https://github.com/kubespray/kargo ~/kargo
|