Skip to content

Auto mapped Open AudIT Variables

TF edited this page Feb 16, 2023 · 2 revisions

About

Requirements

The inventory plugin creates hosts and all stuff around (group mappings, variables) based on the Open-AudIT field oa.fqdn.

So this field (Manage -> Devices -> Device details -> field: FQDN) must be set (and needs to be unique) for every device in Open-AudIT.

Variables

The following lists all directly available variables fetched from Open-AudIT.

Device

Variable Name Meaning Example value
oa.id Unique device id (Manage -> Devices -> Device details -> digit from URL) 213
oa.fqdn The FQDN of that device (Manage -> Devices -> Device details -> field: FQDN).
Used by the inventory plugin to create hosts entries so it must exist in your Open-AudIT device config.
Becomes ansible_host if not overwritten by e.g. compose or a custom field
myhost.somewhere.com
oa.org Organisation Name (Manage -> Orgs) that device belongs to My awesome company
oa.org_id Organisation unique ID (Manage -> Orgs -> Org details -> field: ID) that device belongs to 11
oa.location_id The unique location id (Manage -> Locations -> Location details -> field: ID) that device belongs to 3
oa.ip Main IP of that device (Manage -> Devices -> Device details -> field: IP) 9.9.9.9
oa.manufacturer Manufacturer Name of that device (Manage -> Devices -> Device details -> field: Manufacturer) DELL
oa.status The defined status of that device (Manage -> Devices -> Device details -> field: Status) Production

Location

https://<server>/open-audit/index.php/locations

Variable Name Meaning Example value
oa.location The location name (Manage -> Locations -> Location details -> field: Name) Munich
oa.location_vars* Location/Group variables See Group-Variables

*not shown in hostvars as they get extended when mapped to a host (see Group-Variables)

Clone this wiki locally