Merge "Add collect-flavors-and-verify-profiles role"
This commit is contained in:
commit
af0ffe42a4
13
playbooks/collect-flavors-and-verify-profiles.yaml
Normal file
13
playbooks/collect-flavors-and-verify-profiles.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
---
|
||||
- hosts: undercloud
|
||||
vars:
|
||||
metadata:
|
||||
name: Collect and verify role flavors
|
||||
description: >
|
||||
This validation checks the flavors assigned to roles exist and have the
|
||||
correct capabilities set.
|
||||
groups:
|
||||
- pre-deployment
|
||||
- pre-upgrade
|
||||
roles:
|
||||
- collect-flavors-and-verify-profiles
|
27
roles/collect-flavors-and-verify-profiles/meta/main.yml
Normal file
27
roles/collect-flavors-and-verify-profiles/meta/main.yml
Normal file
@ -0,0 +1,27 @@
|
||||
galaxy_info:
|
||||
author: TripleO Validations Team
|
||||
company: Red Hat
|
||||
license: Apache
|
||||
min_ansible_version: 2.4
|
||||
|
||||
platforms:
|
||||
- name: CentOS
|
||||
versions:
|
||||
- 7
|
||||
- name: RHEL
|
||||
versions:
|
||||
- 7
|
||||
|
||||
categories:
|
||||
- cloud
|
||||
- baremetal
|
||||
- system
|
||||
galaxy_tags: []
|
||||
# List tags for your role here, one per line. A tag is a keyword that describes
|
||||
# and categorizes the role. Users find roles by searching for tags. Be sure to
|
||||
# remove the '[]' above, if you add tags to this list.
|
||||
#
|
||||
# NOTE: A tag is limited to a single word comprised of alphanumeric characters.
|
||||
# Maximum 20 tags per role.
|
||||
|
||||
dependencies: []
|
11
roles/collect-flavors-and-verify-profiles/tasks/main.yml
Normal file
11
roles/collect-flavors-and-verify-profiles/tasks/main.yml
Normal file
@ -0,0 +1,11 @@
|
||||
---
|
||||
- name: Collect and check the flavors
|
||||
check_flavors:
|
||||
roles_info: "{{ lookup('roles_info', wantlist=True) }}"
|
||||
flavors: "{{ lookup('nova_flavors', wantlist=True) }}"
|
||||
register: flavor_result
|
||||
|
||||
- name: Verify the profiles
|
||||
verify_profiles:
|
||||
nodes: "{{ lookup('ironic_nodes', wantlist=True) }}"
|
||||
flavors: "{{ flavor_result.flavors }}"
|
9
roles/collect-flavors-and-verify-profiles/vars/main.yml
Normal file
9
roles/collect-flavors-and-verify-profiles/vars/main.yml
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
metadata:
|
||||
name: Collect and verify role flavors
|
||||
description: >
|
||||
This validation checks the flavors assigned to roles exist and have the
|
||||
correct capabilities set.
|
||||
groups:
|
||||
- pre-deployment
|
||||
- pre-upgrade
|
Loading…
x
Reference in New Issue
Block a user