Pass node and volume name prefixes to tenks_update_state
node_name_prefix (default tk0) can be used to set a custom prefix for the node names. vol_name_prefix (default vol) can be used to set a custom prefix for the volume names. Support already existed for these in the action plugin, but the variables were not passed through. Change-Id: If968707285f9a8450bf16ca7a4956de6164986de TrivialFix
This commit is contained in:
parent
1e2bd2cc2f
commit
50cf161bf9
@ -34,7 +34,7 @@ class ActionModule(ActionBase):
|
|||||||
* Generating indices for physical networks for each hypervisor.
|
* Generating indices for physical networks for each hypervisor.
|
||||||
* Scheduling specifications of nodes by type onto hypervisors.
|
* Scheduling specifications of nodes by type onto hypervisors.
|
||||||
|
|
||||||
The following task vars are accepted:
|
The following task arguments are accepted:
|
||||||
:hypervisor_vars: A dict of hostvars for each hypervisor, keyed
|
:hypervisor_vars: A dict of hostvars for each hypervisor, keyed
|
||||||
by hypervisor hostname. Required.
|
by hypervisor hostname. Required.
|
||||||
:specs: A list of node specifications to be instantiated. Required.
|
:specs: A list of node specifications to be instantiated. Required.
|
||||||
|
@ -35,9 +35,11 @@
|
|||||||
- name: Get updated state
|
- name: Get updated state
|
||||||
tenks_update_state:
|
tenks_update_state:
|
||||||
hypervisor_vars: "{{ hypervisor_vars }}"
|
hypervisor_vars: "{{ hypervisor_vars }}"
|
||||||
|
node_name_prefix: "{{ node_name_prefix | default(omit) }}"
|
||||||
node_types: "{{ node_types }}"
|
node_types: "{{ node_types }}"
|
||||||
specs: "{{ specs }}"
|
specs: "{{ specs }}"
|
||||||
state: "{{ current_state | default(omit) }}"
|
state: "{{ current_state | default(omit) }}"
|
||||||
|
vol_name_prefix: "{{ vol_name_prefix | default(omit) }}"
|
||||||
register: new_state
|
register: new_state
|
||||||
|
|
||||||
- name: Write new state to file
|
- name: Write new state to file
|
||||||
|
Loading…
Reference in New Issue
Block a user