Add native Vagrant support

This allows you to simply run `vagrant up` to get a 3 node HA cluster.

* Creates a dynamic inventory and uses the inventory/group_vars/all.yml
* commented lines in inventory.example so that ansible doesn't try to use it.
* added requirements.txt to give easy way to install ansible/ipaddr
* added gitignore files to stop attempts to save unwated files
* changed `Check if kube-system exists` to `failed_when: false` instead of
`ignore_errors`
This commit is contained in:
Paul Czarkowski
2016-05-08 10:11:09 -05:00
parent 3914d51a7e
commit 8f4e879ca7
7 changed files with 165 additions and 30 deletions

View File

@@ -1,29 +1,29 @@
[kube-master]
node1 ansible_ssh_host=10.99.0.26
node2 ansible_ssh_host=10.99.0.27
[etcd]
node1 ansible_ssh_host=10.99.0.26
node2 ansible_ssh_host=10.99.0.27
node3 ansible_ssh_host=10.99.0.4
[kube-node]
node2 ansible_ssh_host=10.99.0.27
node3 ansible_ssh_host=10.99.0.4
node4 ansible_ssh_host=10.99.0.5
node5 ansible_ssh_host=10.99.0.36
node6 ansible_ssh_host=10.99.0.37
[paris]
node1 ansible_ssh_host=10.99.0.26
node3 ansible_ssh_host=10.99.0.4 local_as=xxxxxxxx
node4 ansible_ssh_host=10.99.0.5 local_as=xxxxxxxx
[new-york]
node2 ansible_ssh_host=10.99.0.27
node5 ansible_ssh_host=10.99.0.36 local_as=xxxxxxxx
node6 ansible_ssh_host=10.99.0.37 local_as=xxxxxxxx
[k8s-cluster:children]
kube-node
kube-master
#[kube-master]
#node1 ansible_ssh_host=10.99.0.26
#node2 ansible_ssh_host=10.99.0.27
#
#[etcd]
#node1 ansible_ssh_host=10.99.0.26
#node2 ansible_ssh_host=10.99.0.27
#node3 ansible_ssh_host=10.99.0.4
#
#[kube-node]
#node2 ansible_ssh_host=10.99.0.27
#node3 ansible_ssh_host=10.99.0.4
#node4 ansible_ssh_host=10.99.0.5
#node5 ansible_ssh_host=10.99.0.36
#node6 ansible_ssh_host=10.99.0.37
#
#[paris]
#node1 ansible_ssh_host=10.99.0.26
#node3 ansible_ssh_host=10.99.0.4 local_as=xxxxxxxx
#node4 ansible_ssh_host=10.99.0.5 local_as=xxxxxxxx
#
#[new-york]
#node2 ansible_ssh_host=10.99.0.27
#node5 ansible_ssh_host=10.99.0.36 local_as=xxxxxxxx
#node6 ansible_ssh_host=10.99.0.37 local_as=xxxxxxxx
#
#[k8s-cluster:children]
#kube-node
#kube-master