mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36:59 +01:00
Custom Scaleway dynamic inventory
This commit is contained in:
parent
05196fd6bb
commit
5d81de3cf9
6 changed files with 106 additions and 19 deletions
|
|
@ -1,4 +0,0 @@
|
|||
cache_max_age = 0
|
||||
SCW_TOKEN = {{ scw_token }}
|
||||
|
||||
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
plugin: scaleway
|
||||
oauth_token: "{{ scw_token }}"
|
||||
regions:
|
||||
- ams1
|
||||
- par1
|
||||
tags:
|
||||
- staging
|
||||
hostnames:
|
||||
- hostname
|
||||
- public_ipv4
|
||||
4
inventories/staging/scw.ini
Normal file
4
inventories/staging/scw.ini
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
[credentials]
|
||||
token_file = ~/.ssh/scw-token
|
||||
[config]
|
||||
environment = staging
|
||||
4
inventories/staging/scw.sh
Executable file
4
inventories/staging/scw.sh
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
cd "$(dirname $0)"
|
||||
|
||||
exec ../../scripts/scw_inventory.py
|
||||
Loading…
Add table
Add a link
Reference in a new issue