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.
hetzner-ansible/stage-prodnso-netgo-hcloud.yml

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: "prodnso"
stage_kube: "prodnso"
label_selector: "stage=prodnso" # jinja isn't available here
api_token: !vault |
$ANSIBLE_VAULT;1.1;AES256
33396263366638303964313839653132663432653333323137616633633831353939636433393737
6565373063643564616261346663633965343264313636620a396462343465633039346264306562
64626534313864373934303635346665313037643632376332623363373166346535383666623831
6264623665653732390a663734333661366465373862303434323935616564636331376462643866
62333433393936653337323730663538636339376335383462373464373836323931626665633735
61366462626239623764303638303835373866303963373136633962643836336339633165346537
62393931306430313531373864326632626238323063663130393039613035623235643562383938
35653338383738626438