system-config/playbooks/templates/clouds/nodepool_clouds.hcl.j2
2023-03-29 13:35:19 +02:00

32 lines
936 B
Django/Jinja

#
# Nodepool openstacksdk configuration
#
# This file is deployed to nodepool launcher and builder hosts
# and is used there to authenticate nodepool operations to clouds.
# This file only contains projects we are launching test nodes in, and
# the naming should correspond that used in nodepool configuration
# files.
#
# Generated automatically, please do not edit directly!
cache:
expiration:
server: 5
port: 5
floating-ip: 5
clouds:
{% for cloud in zuul.nodepool_clouds %}
{{ cloud.name }}:
auth:
[%- with secret "{{ cloud.vault_path }}" %]
[%- with secret (printf "secret/%s" .Data.data.user_secret_name) %]
auth_url: "[% .Data.data.auth_url %]"
user_domain_name: "[% .Data.data.user_domain_name %]"
username: "[% .Data.data.username %]"
password: "[% .Data.data.password %]"
[%- end %]
project_name: "[% .Data.data.project_name %]"
[%- end %]
private: true
{% endfor %}