1# Ansible external inventory script settings for Abiquo 2# 3 4# Define an Abiquo user with access to Abiquo API which will be used to 5# perform required queries to obtain information to generate the Ansible 6# inventory output. 7# 8[auth] 9apiuser = admin 10apipass = xabiquo 11 12 13# Specify Abiquo API version in major.minor format and the access URI to 14# API endpoint. Tested versions are: 2.6 , 3.0 and 3.1 15# To confirm that your box haves access to Abiquo API you can perform a 16# curl command, replacing with suitable values, similar to this: 17# curl -X GET https://192.168.2.100/api/login -u admin:xabiquo 18# 19[api] 20version = 3.0 21uri = https://192.168.2.100/api 22# You probably won't need to modify login preferences, but just in case 23login_path = /login 24login_type = application/vnd.abiquo.user+json 25 26 27# To avoid performing excessive calls to Abiquo API you can define a 28# cache for the plugin output. Within the time defined in seconds, latest 29# output will be reused. After that time, the cache will be refreshed. 30# 31[cache] 32cache_max_age = 30 33cache_dir = /tmp 34 35 36[defaults] 37# Depending in your Abiquo environment, you may want to use only public IP 38# addresses (if using public cloud providers) or also private IP addresses. 39# You can set this with public_ip_only configuration. 40public_ip_only = false 41# default_net_interface only is used if public_ip_only = false 42# If public_ip_only is set to false, you can choose default nic to obtain 43# IP address to define the host. 44default_net_interface = nic0 45# Only deployed VM are displayed in the plugin output. 46deployed_only = true 47# Define if VM metadata is obtained from Abiquo API. 48get_metadata = false 49