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.
hetzner-ansible/stage-ext-netgo-hcloud.yml

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: "ext"
stage_kube: "ext"
label_selector: "stage=ext" # jinja isn't available here
api_token: !vault |
$ANSIBLE_VAULT;1.1;AES256
63353332336232333466616538613861376561313430343737636161653461393533653365366266
3131333435346639666232326465376630313763626431320a393466663564323162366136666630
33623135626436366132626361313262623439303966383266646566366362336361643633366130
3932643632636539610a303437626635653331373439666262623766353866356337636264303732
62626534643965373539663436316437643233613235643236303030633861336162386134663937
63363464626266653935383537636539326463343634396632656631643433393466366334313834
38323733303535346231663735376433393333336331666462383665316638366139623137613564
63316638663765346234