Generate simple dynamic inventory against OVH Public Cloud
- Python dependancies:
$ pip install json
$ pip install ovh
Configuration file must be placed in the script folder
-> See https://eu.api.ovh.com/createApp/ to get your codes
- endpoint : Endpoint code for API host
- application_key : your application key
- application_secret : your application secret
- consumer_key : your consumer_key
- openstack_network_default : default network interface type (public or private)
- openstack_network_ipv6 : preference for ipv6 (yes or no)
$ python ./path/to/script/ovh_public_cloud.py
$ ansible -i ./path/to/script/ovh_public_cloud.py all -m ping
Feel free to improve this script to feet your needs !