awx-local-setup: add NetBox inventory plugin YAML for SCM inventory source
This commit is contained in:
24
inventory/netbox_inventory.yml
Normal file
24
inventory/netbox_inventory.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
---
|
||||
# NetBox Ansible inventory plugin for AWX.
|
||||
#
|
||||
# This file is intended to live in the AWX Project (git) and be referenced
|
||||
# by an SCM inventory source via `source_path: inventory/netbox_inventory.yml`.
|
||||
#
|
||||
# The actual NetBox API token and URL should be supplied via the AWX
|
||||
# inventory source `source_vars` (so secrets are not committed to git).
|
||||
|
||||
plugin: netbox.netbox.inventory
|
||||
# The plugin expects at least `url` and `token` keys; we leave placeholders
|
||||
# here and provide them via the AWX inventory source `source_vars`.
|
||||
url: "__NETBOX_API_URL__"
|
||||
token: "__NETBOX_TOKEN__"
|
||||
validate_certs: true
|
||||
|
||||
# Optional example filters and grouping. Tune these as needed in your
|
||||
# environment; AWX will load the plugin and use the `source_vars` values
|
||||
# provided on the inventory source.
|
||||
filters: {}
|
||||
group_by:
|
||||
- site
|
||||
|
||||
# end of file
|
||||
Reference in New Issue
Block a user