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: "ext"
|
|
stage_kube: "ext"
|
|
label_selector: "stage=ext" # jinja isn't available here
|
|
|
|
api_token: !vault |
|
|
$ANSIBLE_VAULT;1.1;AES256
|
|
39356339353061313966656333373665666266626265626662386430613838656561323565373731
|
|
3735623333336561326236303832373631376533313830320a343037336365316138323163346464
|
|
66623363663662623862636264366539386262303864336233643765613232356666323431366633
|
|
3836386533386338650a626631313731326635633132383538313131353238623665313839376437
|
|
35353639373432633563666566643262623534353032326166356566393661623066643339313337
|
|
37646238306334636230626630303766633730376439613339366239353434626238313138376136
|
|
62393464323135643333353436626361363230373331643838633765626137383834366665613366
|
|
63656661643836353365
|