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.
28 lines
1.2 KiB
YAML
28 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=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
|
|
36306565386166663763636235653334366662663538386438383237323362626639386237333565
|
|
3237643162633761633236333166363635356263386138330a626335333037333031363230366632
|
|
39633263393133653239623738366461336539616133316437316435616663656431333665356265
|
|
6531303064353631610a366431343334393063356662326534323462326636306536376432326463
|
|
64376462333562396431313535323637336161396139316639656562336430616634353762613430
|
|
63646232363237313864383865333235653739386531383265353665633935316336313038363133
|
|
32366235386335643963306161393235343338383338616433623064653932333861643630663939
|
|
34643235356465383131
|