Debian Codegraph @

ansible_collections/azure/azcollection/plugins/doc_fragments/azure_kql.py

raw symbols SCIP
1 # -*- coding: utf-8 -*-
2
3 # Copyright: (c) 2016 Matt Davis, <[email protected]>
4 # Copyright: (c) 2016 Chris Houseknecht, <[email protected]>
5 # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
6
7 from __future__ import absolute_import, division, print_function
8 __metaclass__ = type
9
10
11 class ModuleDocFragment(object):
12
13 # Azure doc fragment
14 DOCUMENTATION = r'''
15 options:
16 plugin:
17 description: marks this as an instance of the 'azure_rm' plugin
18 required: true
19 choices: ['azure_kql', 'azure.azcollection.azure_kql']
20 graph_query:
21 description: A graph query which will retrieve the inventory of hosts you are interested in.
22 You must return inventory_hostname as a field from your query.
23 fail_on_template_errors:
24 description: When false, template failures during group and filter processing are silently ignored (eg,
25 if a filter or group expression refers to an undefined host variable)
26 choices: [True, False]
27 default: True
28 keyed_groups:
29 description: Creates groups based on the value of a host variable. Requires a list of dictionaries,
30 defining C(key) (the source dictionary-typed variable), C(prefix) (the prefix to use for the new group
31 name), and optionally C(separator) (which defaults to C(_))
32 groups:
33 description: A mapping of group names to Jinja2 expressions. When the mapped expression is true, the host
34 is added to the named group.
35 compose:
36 description: A mapping of hostvar names to Jinja2 expressions. The value for each host is the result of the
37 Jinja2 expression (which may refer to any of the host's existing variables at the time this inventory
38 plugin runs).
39 hostnames:
40 description:
41 - A list of Jinja2 expressions in order of precedence to compose inventory_hostname.
42 - Ignores expression if result is an empty string or None value.
43 - An expression of C(default) will force using the default hostname generator if no previous hostname expression
44 resulted in a valid hostname.
45 - Use C(default_inventory_hostname) to access the default hostname generator's value in any of the Jinja2 expressions.
46 type: list
47 elements: str
48 default: [default]
49 '''