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.
27 lines
1.2 KiB
YAML
27 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
|
|
|
|
stage: "qa"
|
|
label_selector: "stage=qa" # jinja isn't available here
|
|
|
|
api_token: !vault |
|
|
$ANSIBLE_VAULT;1.1;AES256
|
|
38623731356563643239636338623835356561616237386164396637313063386366323734383163
|
|
3661333761616165636238316165633934313835643063650a326434656336333165366464383237
|
|
32306538643733643635346132306630393562643632356135353937396566636563613963323137
|
|
6564626233323139330a396661656364653562666461316666616531336631363965636130313232
|
|
32366263623739313538323336613434653338396236303439663432363735623362396161666536
|
|
30323735326133626633646333366166613238303465313833396137313839623561313632346366
|
|
30616636613964643832383534323561633761653839643637373331363239353363346462643632
|
|
35346162656666366438
|