1# Ansible dynamic inventory script for Scaleway cloud provider
2#
3
4[compute]
5# Fetch inventory for regions. If not defined will read the SCALEWAY_REGION environment variable
6#
7# regions = all
8# regions = ams1
9# regions = par1, ams1
10regions = par1
11
12
13# Define a Scaleway token to perform required queries on the API
14# in order to generate inventory output.
15#
16[auth]
17# Token to authenticate with Scaleway's API.
18# If not defined will read the SCALEWAY_TOKEN environment variable
19#
20api_token = mysecrettoken
21
22
23# To avoid performing excessive calls to Scaleway API you can define a
24# cache for the plugin output. Within the time defined in seconds, latest
25# output will be reused. After that time, the cache will be refreshed.
26#
27[cache]
28cache_max_age = 60
29cache_dir = '~/.ansible/tmp'
30
31
32[defaults]
33# You may want to use only public IP addresses or private IP addresses.
34# You can set public_ip_only configuration to get public IPs only.
35# If not defined defaults to retrieving private IP addresses.
36#
37public_ip_only = false
38