Custom Scaleway dynamic inventory

This commit is contained in:
Paul-Henri Froidmont 2018-07-30 19:42:48 +02:00
parent 05196fd6bb
commit 5d81de3cf9
6 changed files with 106 additions and 19 deletions

View file

@ -1,4 +0,0 @@
cache_max_age = 0
SCW_TOKEN = {{ scw_token }}

View file

@ -1,10 +0,0 @@
plugin: scaleway
oauth_token: "{{ scw_token }}"
regions:
- ams1
- par1
tags:
- staging
hostnames:
- hostname
- public_ipv4

View file

@ -0,0 +1,4 @@
[credentials]
token_file = ~/.ssh/scw-token
[config]
environment = staging

4
inventories/staging/scw.sh Executable file
View file

@ -0,0 +1,4 @@
#!/bin/bash
cd "$(dirname $0)"
exec ../../scripts/scw_inventory.py