Skip to content

Commit a9ace71

Browse files
add kind: constructed in controller_inventories role document (#1207)
* add constructed option for kind * add test data * fix typo * add changelog * fix syntax --------- Co-authored-by: David Danielsson <[email protected]>
1 parent 2164804 commit a9ace71

File tree

5 files changed

+12
-3
lines changed

5 files changed

+12
-3
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
bugfixes:
3+
- "Add `kind: constructed` in controller_inventories role document"
4+
...

roles/controller_inventories/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ The role will strip the double space between the curly bracket in order to provi
101101
|`instance_groups`|""|no|list|List of Instance Groups for this Inventory to run on.|
102102
|`input_inventories`|""|no|list|List of Inventories to use as input for Constructed Inventory.|
103103
|`variables`|`{}`|no|dict|Variables for the inventory.|
104-
|`kind`|""|no|str|The kind of inventory. Currently choices are '' and 'smart'|
104+
|`kind`|""|no|str|The kind of inventory. Currently choices are '', 'smart' and 'constructed'|
105105
|`host_filter`|""|no|str|The host filter field, useful only when 'kind=smart'|
106106
|`prevent_instance_group_fallback`|`false`|no|bool|Prevent falling back to instance groups set on the organization|
107107
|`state`|`present`|no|str|Desired state of the resource.|

roles/controller_inventories/meta/argument_specs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ argument_specs:
4040
# choices:
4141
# - ""
4242
# - smart
43-
# description: The kind of inventory. Currently choices are '' and 'smart'
43+
# description: The kind of inventory. Currently choices are '', 'smart' and 'constructed'
4444
# host_filter:
4545
# default: false
4646
# required: false

roles/controller_inventories/tests/configs/inventories.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,9 @@ controller_inventories:
88
kind: smart
99
host_filter: name__icontains=test
1010
variables: '{"key1":"val1", "key2":"val2"}'
11+
- name: test3
12+
organization: Default
13+
kind: constructed
14+
input_inventories:
15+
- test1
1116
...

roles/controller_inventories/tests/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
- name: Add Inventies on Controller
2+
- name: Add Inventories on Controller
33
hosts: localhost
44
connection: local
55
gather_facts: false

0 commit comments

Comments
 (0)