Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #8795 from mtnbikenc/fix-1583157
Bug 1583157 - Add openshift-node entry-point playbooks
  • Loading branch information
openshift-merge-robot committed Jun 18, 2018
2 parents 29ba5fc + 39a09e3 commit a7aebd7
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 8 deletions.
4 changes: 4 additions & 0 deletions playbooks/openshift-node/bootstrap.yml
@@ -0,0 +1,4 @@
---
- import_playbook: ../init/main.yml

- import_playbook: private/bootstrap.yml
4 changes: 4 additions & 0 deletions playbooks/openshift-node/join.yml
@@ -0,0 +1,4 @@
---
- import_playbook: ../init/main.yml

- import_playbook: private/join.yml
16 changes: 8 additions & 8 deletions playbooks/openshift-node/private/bootstrap.yml
@@ -1,15 +1,15 @@
---
- name: Node Preparation Checkpoint Start
- name: Node Bootstrap Preparation Checkpoint Start
hosts: all
gather_facts: false
tasks:
- name: Set Node preparation 'In Progress'
- name: Set Node Bootstrap Preparation 'In Progress'
run_once: true
set_stats:
data:
installer_phase_node:
title: "Node Preparation"
playbook: "(no entry point playbook)"
installer_phase_node_bootstrap:
title: "Node Bootstrap Preparation"
playbook: "playbooks/openshift-node/bootstrap.yml"
status: "In Progress"
start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"

Expand Down Expand Up @@ -39,14 +39,14 @@
vars:
l_node_group: oo_nodes_to_bootstrap:!oo_exclude_bootstrapped_nodes

- name: Node Preparation Checkpoint End
- name: Node Bootstrap Preparation Checkpoint End
hosts: all
gather_facts: false
tasks:
- name: Set Node preparation 'Complete'
- name: Set Node Bootstrap Preparation 'Complete'
run_once: true
set_stats:
data:
installer_phase_node:
installer_phase_node_bootstrap:
status: "Complete"
end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
26 changes: 26 additions & 0 deletions playbooks/openshift-node/private/join.yml
@@ -1,4 +1,18 @@
---
- name: Node Join Checkpoint Start
hosts: all
gather_facts: false
tasks:
- name: Set Node Join 'In Progress'
run_once: true
set_stats:
data:
installer_phase_node_join:
title: "Node Join"
playbook: "playbooks/openshift-node/join.yml"
status: "In Progress"
start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"

- name: Distribute bootstrap and start nodes
hosts: oo_nodes_to_bootstrap
gather_facts: no
Expand Down Expand Up @@ -50,3 +64,15 @@
- role: openshift_manage_node
openshift_master_host: "{{ groups.oo_first_master.0 }}"
openshift_manage_node_is_master: "{{ ('oo_masters_to_config' in group_names) | bool }}"

- name: Node Join Checkpoint End
hosts: all
gather_facts: false
tasks:
- name: Set Node Join 'Complete'
run_once: true
set_stats:
data:
installer_phase_node_join:
status: "Complete"
end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"

0 comments on commit a7aebd7

Please sign in to comment.