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.2 KiB
YAML
28 lines
1.2 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=dev)
|
|
# (e.g. service=prometheus)
|
|
# usage:
|
|
# export HETZNER_LABEL_SELECTOR='stage=devnso'
|
|
# ansible-playbook -i stage-netgo-hcloud.yml ...
|
|
|
|
plugin: netgo-hcloud
|
|
|
|
stage: "demompmx"
|
|
stage_kube: "demompmx"
|
|
label_selector: "stage=demompmx" # jinja isn't available here
|
|
|
|
api_token: !vault |
|
|
$ANSIBLE_VAULT;1.1;AES256
|
|
35303439383339346538376364356635383735333137636164353962633863623439623037376436
|
|
3363623765376366396539626263366431343561346432610a393136353861633135393635616633
|
|
32636434653835393133626263653439366530626339353961653539666133386234386164366566
|
|
6134636265383162620a616335363762336266616536613631623139646264336234393739626637
|
|
31623234626339306638386636616263323136333766353238353732653034386333376538363364
|
|
38323335366335623732613336623265663165353336323232623138356565336563333236303135
|
|
32346534333339383736333139656231376339363730623134356535333338316338626461393363
|
|
35316236373739373762
|