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-prodwork01-netgo-hclo...

27 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=dev'
# ansible-playbook -i stage-netgo-hcloud.yml ...
plugin: netgo-hcloud
stage: "prodwork01"
label_selector: "stage=prodwork01" # jinja isn't available here
api_token: !vault |
$ANSIBLE_VAULT;1.1;AES256
65326639616235646137306562353830363131636463396634653335653331376364613562353839
3333343562646437653937393930393933353632616438620a396231343232393830636462366130
62373261613734313136613532343634633465333263633139663030643237316630393964373835
6139366563313932640a613665376430643436313636663534326466333737396666356231316436
34333931663765366536623564356466336235366463323765323862623135616430653930646561
38353132663861353631373239356430633938383134663761383930326238396131316136333438
36663738363033333634366138303639346465316531646565653339643838393062633566336664
64333061663666323330