summaryrefslogtreecommitdiffstats
path: root/playbooks
diff options
context:
space:
mode:
Diffstat (limited to 'playbooks')
-rw-r--r--playbooks/ands-prepare.yml4
-rw-r--r--playbooks/openshift-add-masters.yml7
-rw-r--r--playbooks/openshift-add-nodes.yml2
-rw-r--r--playbooks/openshift-upgrade.yml7
4 files changed, 17 insertions, 3 deletions
diff --git a/playbooks/ands-prepare.yml b/playbooks/ands-prepare.yml
index b3a025b..e8c785b 100644
--- a/playbooks/ands-prepare.yml
+++ b/playbooks/ands-prepare.yml
@@ -6,7 +6,7 @@
- role: firewall
- name: Keepalived service
- hosts: masters
+ hosts: masters, new_masters
roles:
- role: keepalived
vars:
@@ -30,7 +30,7 @@
- role: ands_storage
- name: Docker setup
- hosts: nodes
+ hosts: nodes, new_nodes
roles:
- role: docker
vars:
diff --git a/playbooks/openshift-add-masters.yml b/playbooks/openshift-add-masters.yml
new file mode 100644
index 0000000..bcc1a41
--- /dev/null
+++ b/playbooks/openshift-add-masters.yml
@@ -0,0 +1,7 @@
+- name: Configure cluster hosts names
+ hosts: nodes
+ roles:
+ - { role: ands_facts }
+ - { role: ands_openshift, subrole: hostnames }
+
+- import_playbook: ../anslib/openshift-ansible/playbooks/openshift-master/scaleup.yml
diff --git a/playbooks/openshift-add-nodes.yml b/playbooks/openshift-add-nodes.yml
index 5044e91..04a56a8 100644
--- a/playbooks/openshift-add-nodes.yml
+++ b/playbooks/openshift-add-nodes.yml
@@ -4,4 +4,4 @@
- { role: ands_facts }
- { role: ands_openshift, subrole: hostnames }
-- include: ../anslib/openshift-ansible/playbooks/byo/openshift-node/scaleup.yml
+- import_playbook: ../anslib/openshift-ansible/playbooks/openshift-node/scaleup.yml
diff --git a/playbooks/openshift-upgrade.yml b/playbooks/openshift-upgrade.yml
new file mode 100644
index 0000000..f2680ab
--- /dev/null
+++ b/playbooks/openshift-upgrade.yml
@@ -0,0 +1,7 @@
+- name: Configure cluster hosts names
+ hosts: nodes
+ roles:
+ - { role: ands_facts }
+# - { role: ands_openshift, subrole: hostnames }
+
+- import_playbook: ../anslib/openshift-ansible/playbooks/byo/openshift-cluster/upgrades/v3_7/upgrade.yml