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
|
|
64303232663838383661396233643265383432363838353062396330336130323532356365343433
|
|
6163333266373131633238643034333837396633636362330a666437393438323737356233353231
|
|
30646134333463336132383561316535303331383565373662376266366465346566383530306232
|
|
6436663165313834640a623639623239313966613834623162376639636461363961663230343961
|
|
61323863623935616237333230323738653235663538303831336530616261396466373061656166
|
|
37623234383634663539383366353362646535323430313435356235616532333264326638346631
|
|
37663837343339343961353466356133643334623735326261636339396636303537613039613862
|
|
62666332326665373730
|