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...

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: "prodwork01"
stage_kube: "prodwork01"
label_selector: "stage=prodwork01" # jinja isn't available here
api_token: !vault |
$ANSIBLE_VAULT;1.1;AES256
62343730336335666266633136376465343164333336623363323962383637643266633830306666
6233643365386363343765323532356233653738643630330a386539303337653434653139653064
32663236623565313962323736373865626337393539613764663163656163636635656563393136
3034636165373261320a646232376635343534663663356563396535363965386263333631353530
62316238653334323761393035326165313361336163313362376362393336383833323238663631
66373431653165643761306538653862666535343136353034323561303337663530316462373666
30663765353839383534616330633266346632336437316265306562663365636238353561643334
31626338633233306637