de7df308e0
We need to override the cluster definition during upgrade, so that we can build a one node cluster followed by a two and three nodes cluster. Change-Id: Id55a4ea7f0e8a8d95a49ba93853cf7844d938f43 Implements: blueprint upgrades-with-os
40 lines
1.2 KiB
YAML
40 lines
1.2 KiB
YAML
- hosts: controller-0
|
|
gather_facts: false
|
|
become: true
|
|
tasks:
|
|
- name: test tripleo-upgrade-hiera - add a first value
|
|
include_role:
|
|
name: tripleo-upgrade-hiera
|
|
tasks_from: set.yml
|
|
vars:
|
|
tripleo_upgrade_key: pacemaker_short_node_names_override
|
|
tripleo_upgrade_value: [ "controller-0" ]
|
|
|
|
- name: test tripleo-upgrade-hiera - add another value
|
|
include_role:
|
|
name: tripleo-upgrade-hiera
|
|
tasks_from: set.yml
|
|
vars:
|
|
tripleo_upgrade_key: mysql_short_node_names_override
|
|
tripleo_upgrade_value: [ "controller-0", "controller-1" ]
|
|
|
|
- name: test tripleo-upgrade-hiera - update a value
|
|
include_role:
|
|
name: tripleo-upgrade-hiera
|
|
tasks_from: set.yml
|
|
vars:
|
|
tripleo_upgrade_key: mysql_short_node_names_override
|
|
tripleo_upgrade_value: [ "controller-1" ]
|
|
|
|
- name: test tripleo-upgrade-hiera - remove a value
|
|
include_role:
|
|
name: tripleo-upgrade-hiera
|
|
tasks_from: remove.yml
|
|
vars:
|
|
tripleo_upgrade_key: pacemaker_short_node_names_override
|
|
|
|
- name: test tripleo-upgrade-hiera - remove all values
|
|
include_role:
|
|
name: tripleo-upgrade-hiera
|
|
tasks_from: remove-all.yml
|