|
@@ -44,6 +44,16 @@
|
|
|
roles:
|
|
|
- openshift_master_facts
|
|
|
|
|
|
+- name: configure vsphere svc account
|
|
|
+ hosts: oo_first_master
|
|
|
+ tasks:
|
|
|
+ - include_role:
|
|
|
+ name: openshift_cloud_provider
|
|
|
+ tasks_from: vsphere-svc
|
|
|
+ when:
|
|
|
+ - openshift_cloudprovider_kind in 'vsphere'
|
|
|
+ - openshift_version | version_compare('3.9', '>=')
|
|
|
+
|
|
|
# The main master upgrade play. Should handle all changes to the system in one pass, with
|
|
|
# support for optional hooks to be defined.
|
|
|
- name: Upgrade master
|
|
@@ -63,6 +73,14 @@
|
|
|
name: openshift_master
|
|
|
tasks_from: upgrade.yml
|
|
|
|
|
|
+ - name: update vsphere provider master config
|
|
|
+ include_role:
|
|
|
+ name: openshift_master
|
|
|
+ tasks_from: update-vsphere
|
|
|
+ when:
|
|
|
+ - openshift_cloudprovider_kind in 'vsphere'
|
|
|
+ - openshift_version | version_compare('3.9', '>=')
|
|
|
+
|
|
|
# Run the upgrade hook prior to restarting services/system if defined:
|
|
|
- debug: msg="Running master upgrade hook {{ openshift_master_upgrade_hook }}"
|
|
|
when: openshift_master_upgrade_hook is defined
|