2014-04-16 00:36:38 +02:00
|
|
|
# Ansible external inventory script settings for Abiquo
|
|
|
|
#
|
2014-08-28 16:22:06 +02:00
|
|
|
|
|
|
|
# Define an Abiquo user with access to Abiquo API which will be used to
|
|
|
|
# perform required queries to obtain infromation to generate the Ansible
|
|
|
|
# inventory output.
|
|
|
|
#
|
2014-04-16 00:36:38 +02:00
|
|
|
[auth]
|
|
|
|
apiuser = admin
|
|
|
|
apipass = xabiquo
|
|
|
|
|
2014-08-28 16:22:06 +02:00
|
|
|
|
|
|
|
# Specify Abiquo API version in major.minor format and the access URI to
|
|
|
|
# API endpoint. Tested versions are: 2.6 , 3.0 and 3.1
|
|
|
|
# To confirm that your box haves access to Abiquo API you can perform a
|
|
|
|
# curl command, replacing with suitable values, similar to this:
|
|
|
|
# curl -X GET https://192.168.2.100/api/login -u admin:xabiquo
|
|
|
|
#
|
2014-04-16 00:36:38 +02:00
|
|
|
[api]
|
2014-08-28 16:22:06 +02:00
|
|
|
version = 3.0
|
|
|
|
uri = https://192.168.2.100/api
|
2014-04-16 00:36:38 +02:00
|
|
|
# You probably won't need to modify login preferences, but just in case
|
|
|
|
login_path = /login
|
|
|
|
login_type = application/vnd.abiquo.user+json
|
|
|
|
|
2014-08-28 16:22:06 +02:00
|
|
|
|
|
|
|
# To avoid performing excessive calls to Abiquo API you can define a
|
|
|
|
# cache for the plugin output. Within the time defined in seconds, latest
|
|
|
|
# output will be reused. After that time, the cache will be refreshed.
|
|
|
|
#
|
2014-04-16 00:36:38 +02:00
|
|
|
[cache]
|
|
|
|
cache_max_age = 30
|
2014-08-28 16:22:06 +02:00
|
|
|
cache_dir = /tmp
|
|
|
|
|
2014-04-16 00:36:38 +02:00
|
|
|
|
|
|
|
[defaults]
|
2014-08-28 16:22:06 +02:00
|
|
|
# Depending in your Abiquo environment, you may want to use only public IP
|
|
|
|
# addresses (if using public cloud providers) or also private IP addresses.
|
|
|
|
# You can set this with public_ip_only configuration.
|
2014-04-16 00:36:38 +02:00
|
|
|
public_ip_only = false
|
|
|
|
# default_net_interface only is used if public_ip_only = false
|
2014-08-28 16:22:06 +02:00
|
|
|
# If public_ip_only is set to false, you can choose default nic to obtain
|
|
|
|
# IP address to define the host.
|
2014-04-16 00:36:38 +02:00
|
|
|
default_net_interface = nic0
|
2014-08-28 16:22:06 +02:00
|
|
|
# Only deployed VM are displayed in the plugin output.
|
2014-04-16 00:36:38 +02:00
|
|
|
deployed_only = true
|
2014-08-28 16:22:06 +02:00
|
|
|
# Define if VM metadata is obtained from Abiquo API.
|
2014-04-16 00:36:38 +02:00
|
|
|
get_metadata = false
|