tripleo-operator-ansible/roles/tripleo_overcloud_raid_create/molecule/default/converge.yml
Alex Schultz 7df7c520d8 Add overcloud raid create
Adds tripleo_overcloud_raid_create to handle raid creation on nodes.

Change-Id: Ibd71e23e9ee1f7bfe0589a21979de63d94ce056f
2020-03-17 17:04:04 -06:00

48 lines
1.3 KiB
YAML

---
- name: Converge
hosts: all
collections:
- tripleo.operator
vars:
openstack_bin: echo
tripleo_os_cloud: undercloud
tripleo_overcloud_raid_create_log_output: false
tripleo_overcloud_raid_create_poll: 1
tripleo_overcloud_raid_create_debug: true
tasks:
- name: "Include tripleo_overcloud_raid_create"
include_role:
name: "tripleo_overcloud_raid_create"
- name: Check role
assert:
that:
- tripleo_overcloud_raid_create_output == "overcloud raid create"
- name: Assert "tripleo_overcloud_raid_create_nodes"
include_role:
name: "tripleo_overcloud_raid_create"
vars:
tripleo_overcloud_raid_create_nodes:
- node1
- node2
- name: Validate tripleo_overcloud_raid_create_nodes
assert:
that:
- tripleo_overcloud_raid_create_output ==
"overcloud raid create --node node1 --node node2"
- name: Assert "tripleo_overcloud_raid_create_configuration"
include_role:
name: "tripleo_overcloud_raid_create"
vars:
tripleo_overcloud_raid_create_configuration: foo.yaml
- name: Validate tripleo_overcloud_raid_create_configuration
assert:
that:
- tripleo_overcloud_raid_create_output ==
"overcloud raid create foo.yaml"