21 lines
1.4 KiB
Text
21 lines
1.4 KiB
Text
|
|
GARAGE_VERSION="{{ taskserv.version | default(value="v2.3.0") }}"
|
||
|
|
GARAGE_NAMESPACE="{{ taskserv.namespace | default(value="garage") }}"
|
||
|
|
GARAGE_REPLICAS="{{ taskserv.replicas | default(value=1) }}"
|
||
|
|
GARAGE_REPLICATION_FACTOR="{{ taskserv.replication_factor | default(value=1) }}"
|
||
|
|
GARAGE_STORAGE_CLASS="{{ taskserv.storage_class_name | default(value="hcloud-volumes") }}"
|
||
|
|
GARAGE_DATA_VOLUME_SIZE="{{ taskserv.data_volume_size | default(value="10Gi") }}"
|
||
|
|
GARAGE_S3_API_PORT="{{ taskserv.s3_api_port | default(value=3900) }}"
|
||
|
|
GARAGE_ADMIN_API_PORT="{{ taskserv.admin_api_port | default(value=3903) }}"
|
||
|
|
GARAGE_RPC_PORT="{{ taskserv.rpc_port | default(value=3901) }}"
|
||
|
|
GARAGE_S3_REGION="{{ taskserv.s3_region | default(value="garage") }}"
|
||
|
|
GARAGE_SECRET_NAME="{{ taskserv.secret_name | default(value="garage-rpc-admin") }}"
|
||
|
|
{%- if taskserv.node_selector is defined and taskserv.node_selector | length > 0 %}
|
||
|
|
GARAGE_NODE_SELECTOR_JSON='{{ taskserv.node_selector | json_encode() }}'
|
||
|
|
{%- else %}
|
||
|
|
GARAGE_NODE_SELECTOR_JSON='{}'
|
||
|
|
{%- endif %}
|
||
|
|
{# Emit buckets as space-separated "name:key_name" pairs so the install script
|
||
|
|
(runs on cluster nodes, pure bash) parses them with parameter expansion — no
|
||
|
|
extra tooling on the node. Rendered here by tera on the provisioning machine. #}
|
||
|
|
GARAGE_BUCKETS="{% for b in taskserv.buckets | default(value=[]) %}{{ b.name }}:{{ b.key_name }} {% endfor %}"
|