Minor improvements in commands and readme

This commit is contained in:
Aleksandr Didenko 2016-06-30 16:56:52 +02:00
parent aad4edaf47
commit fec601a238
2 changed files with 19 additions and 6 deletions

View file

@ -71,6 +71,13 @@ cd ~/mcp
./bootstrap-master.sh ./bootstrap-master.sh
``` ```
* Check nodes list and make sure you have SSH access to them
```bash
cd ~/mcp
cat nodes
```
* Deploy k8s using kargo playbooks * Deploy k8s using kargo playbooks
```bash ```bash

View file

@ -6,16 +6,22 @@ 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 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 # Get ansible-2.1+, vanilla ubuntu-16.04 ansible (2.0.0.2) is broken due to https://github.com/ansible/ansible/issues/13876
apt-add-repository -y ppa:ansible/ansible;apt-get update;apt-get install -y ansible ansible --version || (
apt-add-repository -y ppa:ansible/ansible
apt-get update
apt-get install -y ansible
)
# Kargo-cli # Kargo-cli
git clone https://github.com/kubespray/kargo-cli.git /root/kargo-cli kargo --version || (
pushd /root/kargo-cli git clone https://github.com/kubespray/kargo-cli.git /root/kargo-cli
python setup.py install pushd /root/kargo-cli
popd python setup.py install
popd
)
# Copy/create nodes list # Copy/create nodes list
cp /var/tmp/nodes ./nodes test -f ./nodes || cp /var/tmp/nodes ./nodes
# Either pull or copy microservices repos # Either pull or copy microservices repos
cp -a /var/tmp/microservices* ./ccp/ cp -a /var/tmp/microservices* ./ccp/