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: "devscr"
|
|
stage_kube: "devscr"
|
|
label_selector: "stage=devscr" # jinja isn't available here
|
|
|
|
api_token: !vault |
|
|
$ANSIBLE_VAULT;1.1;AES256
|
|
34393765353437316432613436303230343663646165316161356363336332373233363133663566
|
|
3065353533353434643438663230303162663331353364390a343962376537346430326538323966
|
|
31356435303835643436613235373632393966643735653436393964373437313638636163396661
|
|
6134616362393833350a346464633365353965616237353436643333303837633064393364336263
|
|
36393634323630656162653536363065323232313232663566333061323738383163303464653735
|
|
37393464656166616336663566353764326338643363636564666436323533386537396339343262
|
|
39393230323130316439623331316562633037303337396662303266656536326565393663303930
|
|
36373763383936623735
|