You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.3 KiB
YAML
28 lines
1.3 KiB
YAML
# dynamic inventory for hetzner which reads the stage variable from environment
|
|
#
|
|
# parameters:
|
|
# HETZNER_CLOUD_TOKEN := hetzner cloud api token
|
|
# HETZNER_LABEL_SELECTOR := the label selector to use (note: multiple selectors are not supported by rest api)
|
|
# (e.g. stage=devnso)
|
|
# (e.g. service=prometheus)
|
|
# usage:
|
|
# export HETZNER_LABEL_SELECTOR='stage=devnso'
|
|
# ansible-playbook -i stage-netgo-hcloud.yml ...
|
|
|
|
plugin: netgo-hcloud
|
|
|
|
stage: "devnso"
|
|
stage_kube: "devnso"
|
|
label_selector: "stage=devnso" # jinja isn't available here
|
|
|
|
api_token: !vault |
|
|
$ANSIBLE_VAULT;1.1;AES256
|
|
62626337336464626463653662393532656138303739393734383431386362396464616262333164
|
|
3530316234653032396530633563356333383263623133640a653466306562306432633864636165
|
|
37623465366138313262653330653533613466376461626266653237666532643830336234323533
|
|
6133353137303434310a663736636432623466616562656565636537303035616530316133636431
|
|
30353034323834636165353336623830656138353530626636613830326535396433326636663438
|
|
37313736386637396237336462626562353463336165303163626131316430393135343934366534
|
|
36326161396363383632393938646231313437343536376366336265323161663539343765373135
|
|
62623235303163383538
|