You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.9 KiB

9 years ago
8 years ago
9 years ago
  1. ---
  2. - hosts: localhost
  3. gather_facts: False
  4. roles:
  5. - bastion-ssh-config
  6. tags: [localhost, bastion]
  7. - hosts: k8s-cluster:etcd:calico-rr
  8. any_errors_fatal: true
  9. gather_facts: false
  10. vars:
  11. # Need to disable pipelining for bootstrap-os as some systems have requiretty in sudoers set, which makes pipelining
  12. # fail. bootstrap-os fixes this on these systems, so in later plays it can be enabled.
  13. ansible_ssh_pipelining: false
  14. roles:
  15. - bootstrap-os
  16. tags:
  17. - bootstrap-os
  18. - hosts: k8s-cluster:etcd:calico-rr
  19. any_errors_fatal: true
  20. vars:
  21. ansible_ssh_pipelining: true
  22. gather_facts: true
  23. - hosts: k8s-cluster:etcd:calico-rr
  24. any_errors_fatal: true
  25. roles:
  26. - { role: kubernetes/preinstall, tags: preinstall }
  27. - { role: docker, tags: docker }
  28. - { role: rkt, tags: rkt, when: "'rkt' in [ etcd_deployment_type, kubelet_deployment_type ]" }
  29. - hosts: etcd:!k8s-cluster
  30. any_errors_fatal: true
  31. roles:
  32. - { role: etcd, tags: etcd }
  33. - hosts: k8s-cluster
  34. any_errors_fatal: true
  35. roles:
  36. - { role: etcd, tags: etcd }
  37. - { role: kubernetes/node, tags: node }
  38. - { role: network_plugin, tags: network }
  39. - hosts: kube-master
  40. any_errors_fatal: true
  41. roles:
  42. - { role: kubernetes/master, tags: master }
  43. - { role: kubernetes-apps/lib, tags: apps }
  44. - { role: kubernetes-apps/network_plugin, tags: network }
  45. - hosts: calico-rr
  46. any_errors_fatal: true
  47. roles:
  48. - { role: network_plugin/calico/rr, tags: network }
  49. - hosts: k8s-cluster
  50. any_errors_fatal: true
  51. roles:
  52. - { role: dnsmasq, when: "dns_mode == 'dnsmasq_kubedns'", tags: dnsmasq }
  53. - { role: kubernetes/preinstall, when: "dns_mode != 'none' and resolvconf_mode == 'host_resolvconf'", tags: resolvconf }
  54. - hosts: kube-master[0]
  55. any_errors_fatal: true
  56. roles:
  57. - { role: kubernetes-apps/lib, tags: apps }
  58. - { role: kubernetes-apps, tags: apps }