34 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

2025-10-07 11:05:08 +01:00
upcloud_prov.Server_upcloud {
# Hostname as reference for resource if is changed later inside server, change will not be updated in resource inventory
hostname = "{{hostname}}"
lock = False # True
title = "{{hostname_title | default (value=hostname)}}"
plan = "{{plan}}"
storages = [
{%- for store in storages %}
upcloud_prov.Storage_upcloud {
name = "{{store.name | default (value="")}}",
total = {{store.total | default (value="0")}},
parts = [
{%- if store.parts %}
{%- for part in store.parts %}
{ name = "{{part.name}}", size = {{part.size}}, type = "{{part.type}}" , mount = {{part.mount}}, mount_path = "{{part.mount_path}}", fstab = {{part.fstab}} }
{%- endfor %}
{%- endif %}
]
}
{%- endfor %}
]
# Labels to describe the server in `key = "value` format, multiple can be declared.
# Usage = "env = "dev
labels = "{{labels}}"
# To use private network it a VPC + Subnet + NetworkInfterface has to be created
# IP will be assign here
network_private_ip = "{{network_private_ip}}"
liveness_ip = "$network_public_ip"
liveness_port = 22
extra_hostnames = [ "{{hostname}}" ]
taskservs = [
]
},