c12s-kubespray/cluster.yml
Charles Rodetsky e33f1728f0 Changes targets for bootstrap and preinstall to k8s-cluster
Some environments may include hosts in the inventory that are not part
of the k8s cluster and do not need preinstall or bootstrap performed.
This change retains only the fact gathering with target of `all`.
2016-12-09 12:02:31 -05:00

48 lines
1 KiB
YAML

---
- hosts: k8s-cluster:etcd
any_errors_fatal: true
gather_facts: false
roles:
- bootstrap-os
tags:
- bootstrap-os
- hosts: all
any_errors_fatal: true
gather_facts: true
- hosts: k8s-cluster:etcd:!network-storage
any_errors_fatal: true
roles:
- { role: kubernetes/preinstall, tags: preinstall }
- hosts: etcd:!k8s-cluster
any_errors_fatal: true
roles:
- { role: etcd, tags: etcd }
- hosts: k8s-cluster
any_errors_fatal: true
roles:
- { role: etcd, tags: etcd }
- { role: kubernetes/node, tags: node }
- { role: network_plugin, tags: network }
- hosts: kube-master
any_errors_fatal: true
roles:
- { role: kubernetes/master, tags: master }
- { role: kubernetes-apps/lib, tags: apps }
- { role: kubernetes-apps/network_plugin, tags: network }
- hosts: k8s-cluster
any_errors_fatal: true
roles:
- { role: dnsmasq, tags: dnsmasq }
- hosts: kube-master[0]
any_errors_fatal: true
roles:
- { role: kubernetes-apps/lib, tags: apps }
- { role: kubernetes-apps, tags: apps }