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.
26 lines
1.2 KiB
YAML
26 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
|
|
|
|
label_selector: "stage=qa"
|
|
|
|
api_token: !vault |
|
|
$ANSIBLE_VAULT;1.1;AES256
|
|
36326436363431623035633730393332623665663439613835373436636637393838333865646564
|
|
6461343366393765383332323662326339623836336566660a666462633333613236663362643835
|
|
39313166323139616162353366303839346664386237306562306363333731626338316134396561
|
|
3435316335343534620a396432353430396138343933663866613730333564646639323935366134
|
|
37653935313437313263366462643033316662363366353866663664633835376661623737336363
|
|
32393431666138303538356138663163303965623339343063353234643664363933663330356237
|
|
32386139363033656538646236323237333631626161383966663839303666373266633039363337
|
|
64313830353765633865
|