63 lines
1.9 KiB
YAML
63 lines
1.9 KiB
YAML
---
|
|
# Copyright 2019 Red Hat, Inc.
|
|
# All Rights Reserved.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
|
|
- name: Converge
|
|
hosts: all
|
|
roles:
|
|
- role: tripleo_upgrade_hiera
|
|
|
|
post_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
|