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.2 KiB
Plaintext
27 lines
1.2 KiB
Plaintext
# 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: "dev"
|
|
label_selector: "stage=dev" # jinja isn't available here
|
|
|
|
api_token: !vault |
|
|
$ANSIBLE_VAULT;1.1;AES256
|
|
31303065663564373265333132646634653566653234396232343765623232363964343231643663
|
|
3835363666633435373336656530323966653062336536320a653364393835313130383363633339
|
|
34303066646133336530313339386662363933636137363761616532653336396437643761346338
|
|
3036313364326534650a653333326539333462636430333838633965336538646132303262346365
|
|
65656237386630376262646637666237383864333436383063373834663438306231346262666662
|
|
64666665353434623139373563653131306437616636316236326537303532626266356530643966
|
|
31343633343639306138656262313330623165326531356239383739623065633930663234343265
|
|
33343035363263613035
|