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=dev)
|
|
# (e.g. service=prometheus)
|
|
# usage:
|
|
# export HETZNER_LABEL_SELECTOR='stage=dev'
|
|
# ansible-playbook -i stage-netgo-hcloud.yml ...
|
|
|
|
plugin: netgo-hcloud
|
|
|
|
stage: "demompmx"
|
|
stage_kube: "demompmx"
|
|
label_selector: "stage=demompmx" # jinja isn't available here
|
|
|
|
api_token: !vault |
|
|
$ANSIBLE_VAULT;1.1;AES256
|
|
38653565333431613866363164666336386332376234376330383731646138303834626466643539
|
|
3430366232303864646361383434333537663537326662310a633236313937643132343431363564
|
|
34633063633937643337633937306263303831396533343637326461373463363366636339333136
|
|
3231343431363830320a663234303939316164323830663564363032326563333731306563326663
|
|
61326262396231353066333461323832643635363333386537393264643833383063656332326264
|
|
36393866616631616236663935646666383330393866663631666335306236636463393963333263
|
|
35306338376239303163396630356232373761303333613038326662646464373433656537663432
|
|
30636134303332333861
|