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.
35 lines
1.9 KiB
YAML
35 lines
1.9 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
|
|
|
|
api_token_dev: !vault |
|
|
$ANSIBLE_VAULT;1.1;AES256
|
|
31303065663564373265333132646634653566653234396232343765623232363964343231643663
|
|
3835363666633435373336656530323966653062336536320a653364393835313130383363633339
|
|
34303066646133336530313339386662363933636137363761616532653336396437643761346338
|
|
3036313364326534650a653333326539333462636430333838633965336538646132303262346365
|
|
65656237386630376262646637666237383864333436383063373834663438306231346262666662
|
|
64666665353434623139373563653131306437616636316236326537303532626266356530643966
|
|
31343633343639306138656262313330623165326531356239383739623065633930663234343265
|
|
33343035363263613035
|
|
|
|
api_token_qa: !vault |
|
|
$ANSIBLE_VAULT;1.1;AES256
|
|
36326436363431623035633730393332623665663439613835373436636637393838333865646564
|
|
6461343366393765383332323662326339623836336566660a666462633333613236663362643835
|
|
39313166323139616162353366303839346664386237306562306363333731626338316134396561
|
|
3435316335343534620a396432353430396138343933663866613730333564646639323935366134
|
|
37653935313437313263366462643033316662363366353866663664633835376661623737336363
|
|
32393431666138303538356138663163303965623339343063353234643664363933663330356237
|
|
32386139363033656538646236323237333631626161383966663839303666373266633039363337
|
|
64313830353765633865
|