Merge pull request #672 from kubernetes-incubator/fail_all_on_error
Fail all nodes on error
This commit is contained in:
commit
7328e0e1ac
3 changed files with 19 additions and 6 deletions
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
- hosts: all
|
||||
any_errors_fatal: true
|
||||
gather_facts: false
|
||||
roles:
|
||||
- bootstrap-os
|
||||
|
@ -8,33 +9,40 @@
|
|||
|
||||
|
||||
- hosts: all
|
||||
any_errors_fatal: true
|
||||
gather_facts: true
|
||||
|
||||
- hosts: all
|
||||
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 }
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
---
|
||||
# Deploy git infos
|
||||
# ----------------
|
||||
- name: 'GIT | Install script for collecting git info'
|
||||
template:
|
||||
src: "{{ role_path }}/gen-gitinfos.sh"
|
||||
dest: "{{ bin_dir }}/gen-gitinfos.sh"
|
||||
mode: a+rwx
|
||||
|
||||
- name: 'GIT | generate git informations'
|
||||
local_action: command {{ role_path }}/gen-gitinfos.sh global
|
||||
|
|
|
@ -4,12 +4,12 @@
|
|||
bin_dir: "/opt/bin"
|
||||
when: ansible_os_family == "CoreOS"
|
||||
|
||||
|
||||
- name: 'GIT | Install script for collecting git info'
|
||||
template:
|
||||
src: "{{ role_path }}/gen-gitinfos.sh"
|
||||
dest: "{{ bin_dir }}/gen-gitinfos.sh"
|
||||
mode: a+rwx
|
||||
- name: check bin dir exists
|
||||
file:
|
||||
path: "{{bin_dir}}"
|
||||
state: directory
|
||||
owner: root
|
||||
become: true
|
||||
|
||||
- include: gitinfos.yml
|
||||
when: run_gitinfos
|
||||
|
|
Loading…
Reference in a new issue