2016-06-16 09:48:51 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2016-07-08 15:08:09 +00:00
|
|
|
INVENTORY="nodes_to_inv.py"
|
2016-06-20 09:05:17 +00:00
|
|
|
|
2016-07-08 16:49:41 +00:00
|
|
|
echo "Installing requirements on nodes..."
|
|
|
|
ansible-playbook -i $INVENTORY playbooks/bootstrap-nodes.yaml
|
2016-06-16 09:48:51 +00:00
|
|
|
|
2016-06-16 10:19:27 +00:00
|
|
|
echo "Running deployment..."
|
2016-06-30 13:35:00 +00:00
|
|
|
ansible-playbook -i $INVENTORY /root/kargo/cluster.yml -e @custom.yaml
|
2016-06-16 09:48:51 +00:00
|
|
|
deploy_res=$?
|
|
|
|
|
|
|
|
if [ "$deploy_res" -eq "0" ]; then
|
|
|
|
echo "Setting up kubedns..."
|
2016-06-22 16:43:39 +00:00
|
|
|
ansible-playbook -i $INVENTORY playbooks/kubedns.yaml
|
2016-06-27 15:57:29 +00:00
|
|
|
echo "Setting up kubedashboard..."
|
|
|
|
ansible-playbook -i $INVENTORY playbooks/kubedashboard.yaml
|
2016-07-04 13:13:49 +00:00
|
|
|
echo "Setting up ip route work-around for DNS clusterIP availability..."
|
2016-07-05 10:43:14 +00:00
|
|
|
ansible-playbook -i $INVENTORY playbooks/ipro_for_cluster_ips.yaml
|
2016-06-16 09:48:51 +00:00
|
|
|
fi
|