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.3 KiB
YAML
27 lines
1.3 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: "devssp"
|
|
stage_kube: "devssp"
|
|
label_selector: "stage=devssp" # jinja isn't available here
|
|
|
|
api_token: !vault |
|
|
$ANSIBLE_VAULT;1.1;AES256
|
|
36353862386631366135396361643931393665393335613938663961613839343561323566323135
|
|
3437333063393838326435626236646566333733656662370a393231323936653737363834666134
|
|
32366333376662373138313436623533363562353031343033613938343864336638333535626162
|
|
6564613737356164390a373935336362393665663538646138343766663838623037623937376334
|
|
63643834613139646230376261323631656363636361306366323961373639326463376465346630
|
|
63323136303638656636666439323065626437653139313439316432646239343239323833393265
|
|
62633539393437316435326438663737353839643733303862303335313139643533333063666563
|
|
35643662333336396636 |