Module - verify_profiles¶
This module provides for the following ansible plugin:
verify_profiles
Module Documentation¶
Validate that the profiles assigned have enough nodes available.
Used by the collect_flavors_and_verify_profiles
Owned jointly by DFG Compute & DFG Hardware Provisioning
Options¶
- nodes:
A list of nodes
- flavors:
A dictionary of flavors
Authors¶
- :
Brad P. Crochet
Example Tasks¶
- hosts: undercloud
tasks:
- name: Collect the flavors
check_flavors:
roles_info: "{{ lookup('roles_info', wantlist=True) }}"
flavors: "{{ lookup('nova_flavors', wantlist=True) }}"
register: flavor_result
- name: Check the profiles
verify_profiles:
nodes: "{{ lookup('ironic_nodes', wantlist=True) }}"
flavors: flavor_result.flavors