diff --git a/modules/forgejo/forgejo.tf b/modules/forgejo/forgejo.tf new file mode 100644 index 0000000..b88a876 --- /dev/null +++ b/modules/forgejo/forgejo.tf @@ -0,0 +1,166 @@ +# +# Forgejo (git service). +# +# One VM with two interfaces: the main private network, where the L7 load +# balancers reach it, and the dedicated network of the database. The +# repositories live on a volume of their own. +# +# forgejo terminates the TLS connection itself, with the certificate of the +# internal CA of the project: there is no nginx in front of it. +# + +locals { + # One rule per (load balancer, service port) pair + forgejo_service_rules = { + for pair in setproduct(var.haproxy_l7_ip, var.forgejo_data.service_ports) : + "${pair[0]}-${pair[1]}" => { address = pair[0], port = pair[1] } + } +} + +# +# Traffic from the main L7 load balancers +# +resource "openstack_networking_secgroup_v2" "traffic_to_forgejo" { + name = "traffic_to_forgejo_from_the_main_load_balancers" + delete_default_rules = "true" + description = "Traffic from the main L7 HAPROXY load balancers to the forgejo service" +} + +resource "openstack_networking_secgroup_rule_v2" "haproxy_to_forgejo" { + for_each = local.forgejo_service_rules + security_group_id = openstack_networking_secgroup_v2.traffic_to_forgejo.id + description = "Traffic from the HAPROXY L7 ${each.value.address} to the port ${each.value.port}" + direction = "ingress" + ethertype = "IPv4" + protocol = "tcp" + port_range_min = each.value.port + port_range_max = each.value.port + remote_ip_prefix = "${each.value.address}/32" +} + +# Git over SSH. The public port 22 is a listener of the main load balancer, that +# forwards to the HAPROXY L7 instances; they in turn reach the builtin SSH server +# of forgejo on this port. The VM port 22 stays with sshd +resource "openstack_networking_secgroup_rule_v2" "haproxy_to_forgejo_ssh" { + for_each = toset(var.haproxy_l7_ip) + security_group_id = openstack_networking_secgroup_v2.traffic_to_forgejo.id + description = "Git over SSH from the HAPROXY L7 ${each.value}" + direction = "ingress" + ethertype = "IPv4" + protocol = "tcp" + port_range_min = var.forgejo_data.ssh_port + port_range_max = var.forgejo_data.ssh_port + remote_ip_prefix = "${each.value}/32" +} + +# +# Data volume: the repositories and the attachments. Online resize enabled, like +# every other additional volume of the project +# +resource "openstack_blockstorage_volume_v3" "forgejo_data_vol" { + name = var.forgejo_data.vol_data_name + description = "Forgejo repositories and attachments" + size = var.forgejo_data.vol_data_size + volume_type = var.forgejo_data.volume_type + enable_online_resize = true +} + +# +# Ports, declared outside the instance +# +resource "openstack_networking_port_v2" "forgejo_main_port" { + name = "${var.forgejo_data.name}-main-port" + description = "Port of the forgejo service on the main private network" + admin_state_up = true + network_id = var.main_private_network_id + security_group_ids = [ + var.default_security_group_id, + openstack_networking_secgroup_v2.traffic_to_forgejo.id, + ] + fixed_ip { + subnet_id = var.main_private_subnet_id + ip_address = var.forgejo_main_ip + } +} + +resource "openstack_networking_port_v2" "forgejo_postgresql_port" { + name = "${var.forgejo_data.name}-postgresql-port" + description = "Port of the forgejo service on the dedicated network of the database" + admin_state_up = true + network_id = var.postgresql_network_id + security_group_ids = [var.postgresql_client_security_group_id] + # The address comes from the allocation pool of the dedicated subnet + fixed_ip { + subnet_id = var.postgresql_subnet_id + } +} + +# +# Instance +# +resource "openstack_compute_instance_v2" "forgejo" { + name = var.forgejo_data.name + availability_zone_hints = var.availability_zone + flavor_name = var.forgejo_data.flavor + key_pair = var.ssh_key_name + + block_device { + uuid = var.image.uuid + source_type = "image" + volume_size = var.forgejo_data.boot_vol_size + boot_index = 0 + destination_type = "volume" + delete_on_termination = false + } + + network { + port = openstack_networking_port_v2.forgejo_main_port.id + } + + network { + port = openstack_networking_port_v2.forgejo_postgresql_port.id + } + + user_data = file(var.image.user_data_file) + + # Do not replace the instance when the ssh key or the user data change + lifecycle { + ignore_changes = [ + key_pair, user_data, network + ] + } +} + +resource "openstack_compute_volume_attach_v2" "forgejo_data_attach" { + instance_id = openstack_compute_instance_v2.forgejo.id + volume_id = openstack_blockstorage_volume_v3.forgejo_data_vol.id + device = var.forgejo_data.vol_data_device +} + +# +# A record on the main network address, so that the name can be used by the +# playbooks and by the load balancer configuration +# +resource "openstack_dns_recordset_v2" "forgejo_recordset" { + zone_id = var.dns_zone_id + name = "${var.forgejo_data.name}.${var.dns_zone_name}" + description = "Address of the forgejo service on the main private network" + ttl = 8600 + type = "A" + records = [var.forgejo_main_ip] +} + +# +# Public name of the service, a CNAME of the main load balancer that publishes +# it. The other name, gitea-s2i2s.isti.cnr.it, belongs to the isti.cnr.it zone +# and is moved here by hand at the migration: it is not managed by tofu +# +resource "openstack_dns_recordset_v2" "git_recordset" { + count = length(var.forgejo_public_name) > 0 ? 1 : 0 + zone_id = var.dns_zone_id + name = "${var.forgejo_public_name}.${var.dns_zone_name}" + description = "Forgejo git service, published by the main load balancer" + ttl = 8600 + type = "CNAME" + records = [var.forgejo_cname_target] +} diff --git a/modules/forgejo/outputs.tf b/modules/forgejo/outputs.tf new file mode 100644 index 0000000..b668d16 --- /dev/null +++ b/modules/forgejo/outputs.tf @@ -0,0 +1,45 @@ +output "forgejo_data" { + description = "The input data, re-exported for the dependent workspaces" + value = var.forgejo_data +} + +output "forgejo_instance_id" { + value = openstack_compute_instance_v2.forgejo.id +} + +output "forgejo_server_name" { + value = openstack_compute_instance_v2.forgejo.name +} + +output "forgejo_main_ip" { + description = "Address on the main private network, used by the ansible inventory" + value = var.forgejo_main_ip +} + +output "forgejo_postgresql_ip" { + description = "Address on the dedicated network of the database" + value = openstack_networking_port_v2.forgejo_postgresql_port.all_fixed_ips +} + +output "forgejo_ssh_port" { + description = "Port of the builtin SSH server, reached through the load balancers" + value = var.forgejo_data.ssh_port +} + +output "forgejo_data_volume_id" { + value = openstack_blockstorage_volume_v3.forgejo_data_vol.id +} + +output "traffic_to_forgejo_security_group_id" { + value = openstack_networking_secgroup_v2.traffic_to_forgejo.id +} + +output "forgejo_hostname" { + description = "Internal name, on the main private network address" + value = openstack_dns_recordset_v2.forgejo_recordset.name +} + +output "forgejo_public_hostname" { + description = "Public name, a CNAME of the main load balancer" + value = length(var.forgejo_public_name) > 0 ? openstack_dns_recordset_v2.git_recordset[0].name : "" +} diff --git a/modules/forgejo/terraform-provider.tf b/modules/forgejo/terraform-provider.tf new file mode 100644 index 0000000..31f07e2 --- /dev/null +++ b/modules/forgejo/terraform-provider.tf @@ -0,0 +1,10 @@ +# Define required providers +terraform { + required_version = ">= 0.14.0" + required_providers { + openstack = { + source = "terraform-provider-openstack/openstack" + version = ">= 2.0.0" + } + } +} diff --git a/modules/forgejo/variables-forgejo.tf b/modules/forgejo/variables-forgejo.tf new file mode 100644 index 0000000..2275fb1 --- /dev/null +++ b/modules/forgejo/variables-forgejo.tf @@ -0,0 +1,116 @@ +# +# Forgejo (git service). +# +# Sizing and service ports belong to the service, so they have defaults here. +# The address on the main private network does not: it is part of the address +# plan of the project, and it is passed in by the caller. +# + +variable "forgejo_data" { + description = "Instance, volume and ports of the forgejo service. m1.xlarge is RAM 16 - VCPUs 8" + type = object({ + name = optional(string, "forgejo") + description = optional(string, "Forgejo git service") + flavor = optional(string, "m1.xlarge") + boot_vol_size = optional(number, 20) + # Repositories and attachments + vol_data_name = optional(string, "forgejo-data") + vol_data_size = optional(number, 200) + vol_data_device = optional(string, "/dev/vdb") + volume_type = optional(string, "CephSSD") + # forgejo terminates the TLS connection itself, with the certificate that + # os-bootstrap gets from the internal CA: no nginx in front of it. 3000 is + # its default port, so it does not need to bind a privileged one + service_ports = optional(list(number), [3000]) + # Builtin SSH server. It cannot be the port 22 of the VM, which belongs to + # sshd, so git over SSH is published on the port 22 of the load balancer and + # forwarded here + ssh_port = optional(number, 2222) + }) + default = {} +} + +# Part of the address plan of the project: no default on purpose +variable "forgejo_main_ip" { + type = string + description = "Address of the instance on the main private network" +} + +# Data that comes from the network/DNS and project setup workspaces +variable "main_private_network_id" { + type = string + description = "ID of the main private network of the project" +} + +variable "main_private_subnet_id" { + type = string + description = "ID of the main private subnet of the project" +} + +variable "default_security_group_id" { + type = string + description = "ID of the 'default_for_all' security group of the project" +} + +variable "haproxy_l7_ip" { + type = list(string) + description = "Addresses of the L7 HAPROXY load balancers, the only ones allowed to reach the service" +} + +# Data that comes from the postgresql workspace +variable "postgresql_network_id" { + type = string + description = "ID of the dedicated network of the PostgreSQL service" +} + +variable "postgresql_subnet_id" { + type = string + description = "ID of the dedicated subnet of the PostgreSQL service" +} + +variable "postgresql_client_security_group_id" { + type = string + description = "Security group that allows the connections to the PostgreSQL service" +} + +variable "availability_zone" { + type = string + description = "Availability zone hint of the instance" +} + +variable "image" { + description = "Image of the instance: uuid and cloud-init user data file" + type = object({ + uuid = string + user_data_file = string + }) +} + +variable "ssh_key_name" { + type = string + description = "Name of the SSH key pair injected by cloud-init" +} + +# DNS. The A record on the main network address is always created; the public +# name is a CNAME of the load balancer that publishes the service +variable "dns_zone_id" { + type = string + description = "ID of the DNS zone of the project" +} + +variable "dns_zone_name" { + type = string + description = "Name of the DNS zone of the project, with the trailing dot" +} + +variable "forgejo_public_name" { + type = string + default = "git" + description = "Left part of the public name, a CNAME of the load balancer. Empty means no record" +} + +variable "forgejo_cname_target" { + type = string + default = "" + description = "Target of the CNAME, usually the name of the main load balancer, with the trailing dot" +} diff --git a/s2i2s/forgejo/README.md b/s2i2s/forgejo/README.md new file mode 100644 index 0000000..89a4361 --- /dev/null +++ b/s2i2s/forgejo/README.md @@ -0,0 +1,122 @@ +# Forgejo (git service) of the S2I2S project + +One VM, `m1.xlarge` (RAM 16 - VCPUs 8), Ubuntu 24.04, 20 GB of root disk, with +**two interfaces**: + +| Interface | Address | Use | +|---|---|---| +| main private network | `10.10.0.165` | traffic from the L7 HAPROXY load balancers, administration, monitoring | +| `postgresql-srv-net` | from the DHCP pool | the only way to the database | + +and **one 200 GB SSD volume** (`CephSSD`, `enable_online_resize`) on `/dev/vdb`, +for the repositories and the attachments. + +The resources live in [`../../modules/forgejo`](../../modules/forgejo), which +also carries the sizing and the service ports as defaults, so another project can +instantiate it with a handful of lines. (The first version of this workspace +declared the resources inline, like `s2i2s/mailbackup-relay` does: they were +moved into a module when the sizing of the services was moved out of +`../variables`.) + +Only what belongs to this project is set in `main.tf`: the address on the main +private network, which comes from the address plan in +[`../variables`](../variables) (`basic_services_ip.forgejo`), and the IDs read +from the other workspaces. + +Security groups on the ports: + +* `default_for_all` and `traffic_to_forgejo_from_the_main_load_balancers` on the + main network port. The second one opens + `forgejo_server_data.service_ports` (**3000**, see below) from each L7 load + balancer: change that list if the service listens elsewhere. +* `vm_access_to_the_postgresql_service`, taken from the `postgresql` workspace, + on the port in the dedicated network of the database. + +## Names + +| Name | Type | Managed here | +|---|---|---| +| `forgejo.s2i2s.cloud.isti.cnr.it` | A → `10.10.0.165` | yes, internal name used by the playbooks and by the load balancer | +| `git.s2i2s.cloud.isti.cnr.it` | CNAME → `main-lb.s2i2s.cloud.isti.cnr.it.` | yes | +| `gitea-s2i2s.isti.cnr.it` | the name of the service being migrated | no: it lives in the `isti.cnr.it` zone and is moved by hand at the migration | + +Both public names are served by the L7 load balancers: the `forgejo` entry of +`haproxy_l7_services` in +`group_vars/main_haproxy_l7/main_haproxy_l7.yml` of `infrastructure-playbooks` +sends them to `10.10.0.165:3000`. + +## TLS: no nginx here + +Only the L7 load balancers talk to this VM, so forgejo terminates the TLS +connection itself with the certificate that `os-bootstrap` requests from the +[internal CA](../../../infrastructure-playbooks/docs/internal_ca.md) of the +project — there is no nginx in front of it, and the unix socket setup of the +on-premise host (`group_vars/git_server`) does not apply here. + +In `app.ini`: + +```ini +[server] +PROTOCOL = https +HTTP_PORT = 3000 +CERT_FILE = /etc/pki/certs/forgejo.s2i2s.cloud.isti.cnr.it.pem +KEY_FILE = /etc/pki/keys/forgejo.s2i2s.cloud.isti.cnr.it-key.pem +``` + +Port 3000 keeps forgejo away from the privileged ports, so +`forgejo_bind_privileged_ports` stays false. + +**Mind the permissions of the key.** `os-bootstrap` installs it as +`root:root 0440`, and forgejo runs as `git`: as it is, the service cannot read +it. Either give the key a group that `git` belongs to, or set an ACL on +`/etc/pki/keys` — the `user_services_perms` role of the playbooks already does +this kind of thing for other services. + +The load balancer verifies the certificate against the internal CA **and** its +name (`verify_host` in the service definition), which the certificate satisfies +because `os-bootstrap` puts the FQDN and every address of the VM among the SANs. + +## Git over SSH + +No floating IP on this VM: the traffic goes through the load balancers. + +``` +client :22 -> Octavia TCP listener -> HAPROXY L7 :2222 -> forgejo :2222 +``` + +The public port stays 22, so the clone URLs need no port. The port 22 of this VM +belongs to sshd (that is how ansible gets in), so forgejo has to use its +**builtin SSH server on 2222** (`forgejo_server_data.ssh_port`): in `app.ini`, +`START_SSH_SERVER = true` and `SSH_LISTEN_PORT = 2222`, with `SSH_PORT = 22` +advertised in the clone URLs. The `app.ini` file is not managed by the forgejo +role. + +The listener, its pool and its health monitor are in +`../project-setup/octavia.tf`; the ingress rule on the load balancers is in +`../project-setup/haproxy.tf`; the rule that lets the load balancers reach 2222 +here is in this workspace. + +## Order of the applies + +``` +main_net_dns_router -> project-setup -> postgresql -> forgejo +``` + +This workspace reads the state of all three. + +```bash +tofu init +tofu plan -out=forgejo.plan +tofu apply forgejo.plan +``` + +After the apply, regenerate the ansible inventory in +`infrastructure-playbooks`, which reads this state: + +```bash +ansible-playbook tofu-inventory.yml --diff +``` + +The playbook that configures the service is `git-server.yml` (role `forgejo`), +which currently targets the `git_server` group: the generated inventory puts +this VM in `forgejo_cloud`, under `openstack_s2i2s`. diff --git a/s2i2s/forgejo/main.tf b/s2i2s/forgejo/main.tf new file mode 100644 index 0000000..b9173af --- /dev/null +++ b/s2i2s/forgejo/main.tf @@ -0,0 +1,98 @@ +# Forgejo (git service) of the S2I2S OpenStack project. +# +# The resources are in ../../modules/forgejo, which also carries the sizing +# (m1.xlarge: RAM 16 - VCPUs 8, 200 GB of SSD for the repositories) and the +# service ports. Only what belongs to this project is set here: the address on +# the main private network, taken from the address plan in ../variables, and the +# IDs that come from the other workspaces. +# +# Apply order: main_net_dns_router -> project-setup -> postgresql -> this one. + +data "terraform_remote_state" "privnet_dns_router" { + backend = "local" + config = { + path = "../main_net_dns_router/terraform.tfstate" + } +} + +data "terraform_remote_state" "project_setup" { + backend = "local" + config = { + path = "../project-setup/terraform.tfstate" + } +} + +# Dedicated network and client security group of the database +data "terraform_remote_state" "postgresql" { + backend = "local" + config = { + path = "../postgresql/terraform.tfstate" + } +} + +module "labs_common_variables" { + source = "../../modules/labs_common_variables" +} + +module "project_variables" { + source = "../variables" +} + +module "ssh_settings" { + source = "../../modules/ssh-key-ref" +} + +locals { + # From the network/DNS state + dns_zone = data.terraform_remote_state.privnet_dns_router.outputs.dns_zone + dns_zone_id = data.terraform_remote_state.privnet_dns_router.outputs.dns_zone_id + main_private_network_id = data.terraform_remote_state.privnet_dns_router.outputs.main_private_network_id + main_private_subnet_id = data.terraform_remote_state.privnet_dns_router.outputs.main_subnet_network_id + + # From the project setup state + default_security_group_id = data.terraform_remote_state.project_setup.outputs.default_security_group_id + main_haproxy_l7_ip = data.terraform_remote_state.project_setup.outputs.main_haproxy_l7_ip + main_loadbalancer_name = data.terraform_remote_state.project_setup.outputs.main_loadbalancer_hostname + + # From the postgresql state + postgresql_network_id = data.terraform_remote_state.postgresql.outputs.postgresql_network_id + postgresql_subnet_id = data.terraform_remote_state.postgresql.outputs.postgresql_subnet_id + postgresql_client_security_group_id = data.terraform_remote_state.postgresql.outputs.postgresql_client_access_security_group_id + + # From the common and project variables + availability_zone = module.labs_common_variables.availability_zones_names.availability_zone_no_gpu + ubuntu_2404 = module.labs_common_variables.ubuntu_2404 + ubuntu2404_data_file = module.labs_common_variables.ubuntu2404_data_file + basic_services_ip = module.project_variables.basic_services_ip +} + +module "forgejo" { + source = "../../modules/forgejo" + + # Address plan of the project. The sizing comes from the module defaults + forgejo_main_ip = local.basic_services_ip.forgejo + + main_private_network_id = local.main_private_network_id + main_private_subnet_id = local.main_private_subnet_id + default_security_group_id = local.default_security_group_id + haproxy_l7_ip = local.main_haproxy_l7_ip + + postgresql_network_id = local.postgresql_network_id + postgresql_subnet_id = local.postgresql_subnet_id + postgresql_client_security_group_id = local.postgresql_client_security_group_id + + availability_zone = local.availability_zone + image = { + uuid = local.ubuntu_2404.uuid + user_data_file = local.ubuntu2404_data_file + } + ssh_key_name = module.ssh_settings.ssh_key_name + + # git.s2i2s.cloud.isti.cnr.it, a CNAME of the main load balancer. The other + # name of the service, gitea-s2i2s.isti.cnr.it, is in the isti.cnr.it zone and + # is moved by hand at the migration + dns_zone_id = local.dns_zone_id + dns_zone_name = local.dns_zone.name + forgejo_public_name = "git" + forgejo_cname_target = local.main_loadbalancer_name +} diff --git a/s2i2s/forgejo/outputs.tf b/s2i2s/forgejo/outputs.tf new file mode 100644 index 0000000..1a61b4c --- /dev/null +++ b/s2i2s/forgejo/outputs.tf @@ -0,0 +1,49 @@ +output "forgejo_instance_id" { + value = module.forgejo.forgejo_instance_id +} + +output "forgejo_server_name" { + value = module.forgejo.forgejo_server_name +} + +output "forgejo_server_data" { + value = module.forgejo.forgejo_data +} + +output "forgejo_main_ip" { + description = "Address on the main private network. Used by the ansible inventory" + value = module.forgejo.forgejo_main_ip +} + +output "forgejo_postgresql_ip" { + description = "Address on the dedicated network of the database" + value = module.forgejo.forgejo_postgresql_ip +} + +output "forgejo_ssh_port" { + description = "Port of the builtin SSH server, reached through the load balancers" + value = module.forgejo.forgejo_ssh_port +} + +output "forgejo_data_volume_id" { + value = module.forgejo.forgejo_data_volume_id +} + +output "traffic_to_forgejo_security_group_id" { + value = module.forgejo.traffic_to_forgejo_security_group_id +} + +output "forgejo_hostname" { + description = "Internal name, on the main private network address" + value = module.forgejo.forgejo_hostname +} + +output "forgejo_public_hostname" { + description = "Public name, a CNAME of the main load balancer" + value = module.forgejo.forgejo_public_hostname +} + +# Re-exported for the ansible inventory generator +output "dns_zone" { + value = local.dns_zone +} diff --git a/s2i2s/forgejo/provider.tf b/s2i2s/forgejo/provider.tf new file mode 100644 index 0000000..a890a41 --- /dev/null +++ b/s2i2s/forgejo/provider.tf @@ -0,0 +1,14 @@ +# Define required providers +terraform { + required_version = ">= 0.14.0" + required_providers { + openstack = { + source = "terraform-provider-openstack/openstack" + version = ">= 2.0.0" + } + } +} + +provider "openstack" { + cloud = "s2i2s" +} diff --git a/s2i2s/forgejo/terraform.tfstate b/s2i2s/forgejo/terraform.tfstate new file mode 100644 index 0000000..3be5e38 --- /dev/null +++ b/s2i2s/forgejo/terraform.tfstate @@ -0,0 +1 @@ +{"version":4,"terraform_version":"1.11.6","serial":3,"lineage":"66397afe-f193-06eb-c138-e68cabe0fd9e","outputs":{"dns_zone":{"value":{"attributes":{},"description":"DNS primary zone for the S2I2S project","disable_status_check":false,"email":"postmaster@isti.cnr.it","id":"e826e777-0196-4f63-b2a9-df07f70e618f","masters":[],"name":"s2i2s.cloud.isti.cnr.it.","project_id":"d0dcc2b7f3004c9a81b87ab60ec3c0d3","region":"isti_area_pi_1","timeouts":null,"ttl":8600,"type":"PRIMARY","value_specs":null},"type":["object",{"attributes":["map","string"],"description":"string","disable_status_check":"bool","email":"string","id":"string","masters":["set","string"],"name":"string","project_id":"string","region":"string","timeouts":["object",{"create":"string","delete":"string","update":"string"}],"ttl":"number","type":"string","value_specs":["map","string"]}]},"forgejo_data_volume_id":{"value":"010f6920-6302-4d36-af96-93b30fc90b56","type":"string"},"forgejo_hostname":{"value":"forgejo.s2i2s.cloud.isti.cnr.it.","type":"string"},"forgejo_instance_id":{"value":"1f7c03da-8e39-492d-bfb7-433ac73396d3","type":"string"},"forgejo_main_ip":{"value":"10.10.0.165","type":"string"},"forgejo_postgresql_ip":{"value":["192.168.1.90"],"type":["list","string"]},"forgejo_public_hostname":{"value":"git.s2i2s.cloud.isti.cnr.it.","type":"string"},"forgejo_server_data":{"value":{"boot_vol_size":20,"description":"Forgejo git service","flavor":"m1.xlarge","name":"forgejo","service_ports":[3000],"ssh_port":2222,"vol_data_device":"/dev/vdb","vol_data_name":"forgejo-data","vol_data_size":200,"volume_type":"CephSSD"},"type":["object",{"boot_vol_size":"number","description":"string","flavor":"string","name":"string","service_ports":["list","number"],"ssh_port":"number","vol_data_device":"string","vol_data_name":"string","vol_data_size":"number","volume_type":"string"}]},"forgejo_server_name":{"value":"forgejo","type":"string"},"forgejo_ssh_port":{"value":2222,"type":"number"},"traffic_to_forgejo_security_group_id":{"value":"3f8ce1ef-2e2c-4ac8-9074-8d379c974d9b","type":"string"}},"resources":[{"mode":"data","type":"terraform_remote_state","name":"postgresql","provider":"provider[\"terraform.io/builtin/terraform\"]","instances":[{"schema_version":0,"attributes":{"backend":"local","config":{"value":{"path":"../postgresql/terraform.tfstate"},"type":["object",{"path":"string"}]},"defaults":null,"outputs":{"value":{"dns_zone":{"attributes":{},"description":"DNS primary zone for the S2I2S project","disable_status_check":false,"email":"postmaster@isti.cnr.it","id":"e826e777-0196-4f63-b2a9-df07f70e618f","masters":[],"name":"s2i2s.cloud.isti.cnr.it.","project_id":"d0dcc2b7f3004c9a81b87ab60ec3c0d3","region":"isti_area_pi_1","timeouts":null,"ttl":8600,"type":"PRIMARY","value_specs":null},"postgresql_access_security_group_id":"d23b5c1b-ec2f-4dd3-9f1d-b4936d4e45b8","postgresql_client_access_security_group_id":"09df1cb3-0654-47a0-be50-55bb79b011c9","postgresql_client_access_security_group_name":"vm_access_to_the_postgresql_service","postgresql_main_ip":"10.10.0.162","postgresql_network":{"admin_state_up":true,"all_tags":[],"availability_zone_hints":[],"description":"Network used to communicate with the postgresql service","dns_domain":"s2i2s.cloud.isti.cnr.it.","external":false,"id":"2b4f3653-5016-427f-9ae2-31144f691a93","mtu":8942,"name":"postgresql-srv-net","port_security_enabled":true,"qos_policy_id":"","region":"isti_area_pi_1","segments":[],"shared":false,"tags":null,"tenant_id":"d0dcc2b7f3004c9a81b87ab60ec3c0d3","timeouts":null,"transparent_vlan":false,"value_specs":null},"postgresql_network_id":"2b4f3653-5016-427f-9ae2-31144f691a93","postgresql_port":5432,"postgresql_server_data":{"allocation_pool_end":"192.168.3.254","allocation_pool_start":"192.168.0.100","boot_vol_size":20,"description":"PostgreSQL server","flavor":"m1.large","name":"postgresql","network_cidr":"192.168.0.0/22","network_description":"Network used to communicate with the postgresql service","network_name":"postgresql-srv-net","port":5432,"server_cidr":"192.168.0.5/32","server_ip":"192.168.0.5","subnet_description":"Subnet used to connect to the postgresql service","subnet_name":"postgresql-srv-subnet","vol_data_device":"/dev/vdb","vol_data_name":"postgresql-data","vol_data_size":100,"vol_wal_device":"/dev/vdc","vol_wal_name":"postgresql-wal","vol_wal_size":100,"volume_type":"CephSSD"},"postgresql_server_id":"1078fcff-0eee-48a7-b061-a2ceaedc844c","postgresql_server_ip":"192.168.0.5","postgresql_server_name":"postgresql","postgresql_subnet":{"all_tags":[],"allocation_pool":[{"end":"192.168.3.254","start":"192.168.0.100"}],"cidr":"192.168.0.0/22","description":"Subnet used to connect to the postgresql service","dns_nameservers":["146.48.29.97","146.48.29.98","146.48.29.99"],"dns_publish_fixed_ip":false,"enable_dhcp":true,"gateway_ip":"","id":"228da08f-2b49-4d76-bec4-abab0510f275","ip_version":4,"ipv6_address_mode":"","ipv6_ra_mode":"","name":"postgresql-srv-subnet","network_id":"2b4f3653-5016-427f-9ae2-31144f691a93","no_gateway":true,"prefix_length":null,"region":"isti_area_pi_1","segment_id":"","service_types":[],"subnetpool_id":"","tags":null,"tenant_id":"d0dcc2b7f3004c9a81b87ab60ec3c0d3","timeouts":null,"value_specs":null},"postgresql_subnet_id":"228da08f-2b49-4d76-bec4-abab0510f275"},"type":["object",{"dns_zone":["object",{"attributes":["map","string"],"description":"string","disable_status_check":"bool","email":"string","id":"string","masters":["set","string"],"name":"string","project_id":"string","region":"string","timeouts":["object",{"create":"string","delete":"string","update":"string"}],"ttl":"number","type":"string","value_specs":["map","string"]}],"postgresql_access_security_group_id":"string","postgresql_client_access_security_group_id":"string","postgresql_client_access_security_group_name":"string","postgresql_main_ip":"string","postgresql_network":["object",{"admin_state_up":"bool","all_tags":["set","string"],"availability_zone_hints":["set","string"],"description":"string","dns_domain":"string","external":"bool","id":"string","mtu":"number","name":"string","port_security_enabled":"bool","qos_policy_id":"string","region":"string","segments":["set",["object",{"network_type":"string","physical_network":"string","segmentation_id":"number"}]],"shared":"bool","tags":["set","string"],"tenant_id":"string","timeouts":["object",{"create":"string","delete":"string"}],"transparent_vlan":"bool","value_specs":["map","string"]}],"postgresql_network_id":"string","postgresql_port":"number","postgresql_server_data":["object",{"allocation_pool_end":"string","allocation_pool_start":"string","boot_vol_size":"number","description":"string","flavor":"string","name":"string","network_cidr":"string","network_description":"string","network_name":"string","port":"number","server_cidr":"string","server_ip":"string","subnet_description":"string","subnet_name":"string","vol_data_device":"string","vol_data_name":"string","vol_data_size":"number","vol_wal_device":"string","vol_wal_name":"string","vol_wal_size":"number","volume_type":"string"}],"postgresql_server_id":"string","postgresql_server_ip":"string","postgresql_server_name":"string","postgresql_subnet":["object",{"all_tags":["set","string"],"allocation_pool":["set",["object",{"end":"string","start":"string"}]],"cidr":"string","description":"string","dns_nameservers":["list","string"],"dns_publish_fixed_ip":"bool","enable_dhcp":"bool","gateway_ip":"string","id":"string","ip_version":"number","ipv6_address_mode":"string","ipv6_ra_mode":"string","name":"string","network_id":"string","no_gateway":"bool","prefix_length":"number","region":"string","segment_id":"string","service_types":["list","string"],"subnetpool_id":"string","tags":["set","string"],"tenant_id":"string","timeouts":["object",{"create":"string","delete":"string"}],"value_specs":["map","string"]}],"postgresql_subnet_id":"string"}]},"workspace":null},"sensitive_attributes":[]}]},{"mode":"data","type":"terraform_remote_state","name":"privnet_dns_router","provider":"provider[\"terraform.io/builtin/terraform\"]","instances":[{"schema_version":0,"attributes":{"backend":"local","config":{"value":{"path":"../main_net_dns_router/terraform.tfstate"},"type":["object",{"path":"string"}]},"defaults":null,"outputs":{"value":{"almalinux_9":{"name":"AlmaLinux-9.8 20260526","user_data_file":"../../s2i2s_openstack_vm_data_scripts/almalinux9.sh","uuid":"172f1c52-fa06-4d7d-9db7-0735ab6ef403"},"availability_zone_no_gpu_name":"cnr-isti-nova-a","availability_zone_with_gpu_name":"cnr-isti-nova-gpu-a","availability_zones_names":{"availability_zone_no_gpu":"cnr-isti-nova-a","availability_zone_with_gpu":"cnr-isti-nova-gpu-a"},"centos_7":{"name":"CentOS-7","user_data_file":"../../s2i2s_openstack_vm_data_scripts/el.sh","uuid":"f0187a99-64f6-462a-ab5f-ef52fe62f2ca"},"default_security_group_name":"default_for_all","dns_zone":{"attributes":{},"description":"DNS primary zone for the S2I2S project","disable_status_check":false,"email":"postmaster@isti.cnr.it","id":"e826e777-0196-4f63-b2a9-df07f70e618f","masters":[],"name":"s2i2s.cloud.isti.cnr.it.","project_id":"d0dcc2b7f3004c9a81b87ab60ec3c0d3","region":"isti_area_pi_1","timeouts":null,"ttl":8600,"type":"PRIMARY","value_specs":null},"dns_zone_id":"e826e777-0196-4f63-b2a9-df07f70e618f","el7_data_file":"../../s2i2s_openstack_vm_data_scripts/el.sh","external_gateway_ip":[{"ip_address":"146.48.30.6","subnet_id":"57f87509-4016-46fb-b8c3-25fca7f72ccb"}],"external_network":{"id":"1d2ff137-6ff7-4017-be2b-0d6c4af2353b","name":"external-network"},"external_network_id":"1d2ff137-6ff7-4017-be2b-0d6c4af2353b","flavor_list":{"c1_large":"c1.large","c1_medium":"c1.medium","c1_small":"c1.small","c2_large":"c2.large","m1_large":"m1.large","m1_medium":"m1.medium","m1_xlarge":"m1.xlarge","m1_xxl":"m1.xxl","m2_large":"m2.large","m2_medium":"m2.medium","m2_small":"m2.small","m3_large":"m3.large"},"floating_ip_pools":{"main_public_ip_pool":"external-network"},"main_private_network":{"admin_state_up":true,"all_tags":[],"availability_zone_hints":[],"description":"S2I2S private network (use this as the main network)","dns_domain":"s2i2s.cloud.isti.cnr.it.","external":false,"id":"f371c239-6d5d-4ac8-a17e-af607752d82c","mtu":8942,"name":"s2i2s-proj-main","port_security_enabled":true,"qos_policy_id":"","region":"isti_area_pi_1","segments":[{"network_type":"geneve","physical_network":"","segmentation_id":47850}],"shared":false,"tags":[],"tenant_id":"d0dcc2b7f3004c9a81b87ab60ec3c0d3","timeouts":null,"transparent_vlan":false,"value_specs":null},"main_private_network_id":"f371c239-6d5d-4ac8-a17e-af607752d82c","main_region":"isti_area_pi_1","main_subnet_network":{"all_tags":[],"allocation_pool":[{"end":"10.10.7.254","start":"10.10.1.1"}],"cidr":"10.10.0.0/21","description":"S2I2S main private subnet","dns_nameservers":["146.48.29.97","146.48.29.98","146.48.29.99"],"dns_publish_fixed_ip":false,"enable_dhcp":true,"gateway_ip":"10.10.0.1","id":"19c649ee-96ea-438b-ac0c-512afdf5046d","ip_version":4,"ipv6_address_mode":"","ipv6_ra_mode":"","name":"s2i2s-proj-main-subnet","network_id":"f371c239-6d5d-4ac8-a17e-af607752d82c","no_gateway":false,"prefix_length":null,"region":"isti_area_pi_1","segment_id":"","service_types":[],"subnetpool_id":"","tags":[],"tenant_id":"d0dcc2b7f3004c9a81b87ab60ec3c0d3","timeouts":null,"value_specs":null},"main_subnet_network_id":"19c649ee-96ea-438b-ac0c-512afdf5046d","mtu_size":8942,"os_project_data":{"id":"d0dcc2b7f3004c9a81b87ab60ec3c0d3","name":"s2i2s-proj-cloud"},"policy_list":{"affinity":"affinity","anti_affinity":"anti-affinity","soft_affinity":"soft-affinity","soft_anti_affinity":"soft-anti-affinity"},"resolvers_ip":["146.48.29.97","146.48.29.98","146.48.29.99"],"ssh_sources":{"d4s_vpn_1_cidr":"146.48.122.27/32","d4s_vpn_2_cidr":"146.48.122.49/32","infrascience_net_cidr":"146.48.122.0/23","isti_net_cidr":"146.48.80.0/21","isti_vpn_gw1":"146.48.80.101/32","isti_vpn_gw2":"146.48.80.102/32","isti_vpn_gw3":"146.48.80.103/32","s2i2s_net_cidr":"146.48.28.0/22","s2i2s_vpn_1_cidr":"146.48.28.10/32","s2i2s_vpn_2_cidr":"146.48.28.11/32","shell_d4s_cidr":"146.48.122.95/32"},"ubuntu2204_data_file":"../../s2i2s_openstack_vm_data_scripts/ubuntu2204.sh","ubuntu_2204":{"name":"Ubuntu-Jammy-22.04","user_data_file":"../../s2i2s_openstack_vm_data_scripts/ubuntu2204.sh","uuid":"54768889-8556-4be4-a2eb-82a4d9b34627"}},"type":["object",{"almalinux_9":["map","string"],"availability_zone_no_gpu_name":"string","availability_zone_with_gpu_name":"string","availability_zones_names":["map","string"],"centos_7":["map","string"],"default_security_group_name":"string","dns_zone":["object",{"attributes":["map","string"],"description":"string","disable_status_check":"bool","email":"string","id":"string","masters":["set","string"],"name":"string","project_id":"string","region":"string","timeouts":["object",{"create":"string","delete":"string","update":"string"}],"ttl":"number","type":"string","value_specs":["map","string"]}],"dns_zone_id":"string","el7_data_file":"string","external_gateway_ip":["list",["object",{"ip_address":"string","subnet_id":"string"}]],"external_network":["map","string"],"external_network_id":"string","flavor_list":["map","string"],"floating_ip_pools":["map","string"],"main_private_network":["object",{"admin_state_up":"bool","all_tags":["set","string"],"availability_zone_hints":["set","string"],"description":"string","dns_domain":"string","external":"bool","id":"string","mtu":"number","name":"string","port_security_enabled":"bool","qos_policy_id":"string","region":"string","segments":["set",["object",{"network_type":"string","physical_network":"string","segmentation_id":"number"}]],"shared":"bool","tags":["set","string"],"tenant_id":"string","timeouts":["object",{"create":"string","delete":"string"}],"transparent_vlan":"bool","value_specs":["map","string"]}],"main_private_network_id":"string","main_region":"string","main_subnet_network":["object",{"all_tags":["set","string"],"allocation_pool":["set",["object",{"end":"string","start":"string"}]],"cidr":"string","description":"string","dns_nameservers":["list","string"],"dns_publish_fixed_ip":"bool","enable_dhcp":"bool","gateway_ip":"string","id":"string","ip_version":"number","ipv6_address_mode":"string","ipv6_ra_mode":"string","name":"string","network_id":"string","no_gateway":"bool","prefix_length":"number","region":"string","segment_id":"string","service_types":["list","string"],"subnetpool_id":"string","tags":["set","string"],"tenant_id":"string","timeouts":["object",{"create":"string","delete":"string"}],"value_specs":["map","string"]}],"main_subnet_network_id":"string","mtu_size":"number","os_project_data":["map","string"],"policy_list":["map","string"],"resolvers_ip":["list","string"],"ssh_sources":["map","string"],"ubuntu2204_data_file":"string","ubuntu_2204":["map","string"]}]},"workspace":null},"sensitive_attributes":[]}]},{"mode":"data","type":"terraform_remote_state","name":"project_setup","provider":"provider[\"terraform.io/builtin/terraform\"]","instances":[{"schema_version":0,"attributes":{"backend":"local","config":{"value":{"path":"../project-setup/terraform.tfstate"},"type":["object",{"path":"string"}]},"defaults":null,"outputs":{"value":{"access_to_the_jump_proxy":{"all_tags":[],"delete_default_rules":true,"description":"Security group that allows SSH access to the jump node from a limited set of sources","id":"4c6b6683-77fa-4d1a-8ba2-41acf10a12ba","name":"ssh_access_to_the_jump_node","region":"isti_area_pi_1","stateful":false,"tags":[],"tenant_id":"d0dcc2b7f3004c9a81b87ab60ec3c0d3","timeouts":null},"acme_challenge_hostname":"_acme-challenge.s2i2s.cloud.isti.cnr.it.","availability_zones_names":{"availability_zone_no_gpu":"cnr-isti-nova-a","availability_zone_with_gpu":"cnr-isti-nova-gpu-a"},"basic_services_ip":{"ca":"10.10.0.4","ca_cidr":"10.10.0.4/32","forgejo":"10.10.0.165","forgejo_cidr":"10.10.0.165/32","haproxy_l7_1":"10.10.0.11","haproxy_l7_1_cidr":"10.10.0.11/32","haproxy_l7_2":"10.10.0.12","haproxy_l7_2_cidr":"10.10.0.12/32","keycloak_1":"10.10.0.163","keycloak_1_cidr":"10.10.0.163/32","keycloak_2":"10.10.0.164","keycloak_2_cidr":"10.10.0.164/32","octavia_main":"10.10.0.20","octavia_main_cidr":"10.10.0.20/32","postgresql":"10.10.0.162","postgresql_cidr":"10.10.0.162/32","prometheus":"10.10.0.10","prometheus_cidr":"10.10.0.10/32","ssh_jump":"10.10.0.5","ssh_jump_cidr":"10.10.0.5/32"},"debugging":{"all_tags":[],"delete_default_rules":true,"description":"Security group that allows web app debugging via tunnel from the ssh jump node","id":"6c21f51b-9cad-4051-99b6-221bed658a83","name":"debugging_from_jump_node","region":"isti_area_pi_1","stateful":false,"tags":[],"tenant_id":"d0dcc2b7f3004c9a81b87ab60ec3c0d3","timeouts":null},"default_security_group":{"all_tags":[],"delete_default_rules":true,"description":"Default security group with rules for ssh access via jump proxy, prometheus scraping","id":"1ec8a419-f9cf-473f-a022-6499d67d57b8","name":"default_for_all","region":"isti_area_pi_1","stateful":false,"tags":[],"tenant_id":"d0dcc2b7f3004c9a81b87ab60ec3c0d3","timeouts":null},"default_security_group_id":"1ec8a419-f9cf-473f-a022-6499d67d57b8","default_security_group_name":"default_for_all","dns_zone":{"attributes":{},"description":"DNS primary zone for the S2I2S project","disable_status_check":false,"email":"postmaster@isti.cnr.it","id":"e826e777-0196-4f63-b2a9-df07f70e618f","masters":[],"name":"s2i2s.cloud.isti.cnr.it.","project_id":"d0dcc2b7f3004c9a81b87ab60ec3c0d3","region":"isti_area_pi_1","timeouts":null,"ttl":8600,"type":"PRIMARY","value_specs":null},"dns_zone_id":"e826e777-0196-4f63-b2a9-df07f70e618f","floating_ip_pools":{"main_public_ip_pool":"external-network"},"haproxy_l7_data":{"flavor":"m1.medium","name":"main-haproxy-l7","vm_count":"2"},"internal_ca_data":{"flavor":"m1.small","name":"ca"},"internal_ca_id":"286b7a4d-33c6-451f-9019-d9fd79265181","main_haproxy_l7_ids":["b42a0e99-6172-4a5d-886c-c0fb016da60e","b770644a-5c39-4db2-8811-fb62751bd789"],"main_haproxy_l7_ip":["10.10.0.11","10.10.0.12"],"main_lb_to_haproxy_l7_security_group":{"all_tags":[],"delete_default_rules":true,"description":"Traffic coming from the main L4 lb (OVN provider, client IP is preserved) directed to the haproxy l7 servers","id":"613cacac-ac46-46ab-ba7a-d66f61cce84d","name":"traffic_from_main_lb_to_haproxy_l7","region":"isti_area_pi_1","stateful":false,"tags":[],"tenant_id":"d0dcc2b7f3004c9a81b87ab60ec3c0d3","timeouts":null},"main_loadbalancer_hostname":"main-lb.s2i2s.cloud.isti.cnr.it.","main_loadbalancer_id":"44dbe548-a436-4816-927a-2912f443b50f","main_loadbalancer_ip":"10.10.0.20","main_loadbalancer_public_ip":"146.48.30.30","main_private_network":{"admin_state_up":true,"all_tags":[],"availability_zone_hints":[],"description":"S2I2S private network (use this as the main network)","dns_domain":"s2i2s.cloud.isti.cnr.it.","external":false,"id":"f371c239-6d5d-4ac8-a17e-af607752d82c","mtu":8942,"name":"s2i2s-proj-main","port_security_enabled":true,"qos_policy_id":"","region":"isti_area_pi_1","segments":[{"network_type":"geneve","physical_network":"","segmentation_id":47850}],"shared":false,"tags":[],"tenant_id":"d0dcc2b7f3004c9a81b87ab60ec3c0d3","timeouts":null,"transparent_vlan":false,"value_specs":null},"main_private_subnet":{"all_tags":[],"allocation_pool":[{"end":"10.10.7.254","start":"10.10.1.1"}],"cidr":"10.10.0.0/21","description":"S2I2S main private subnet","dns_nameservers":["146.48.29.97","146.48.29.98","146.48.29.99"],"dns_publish_fixed_ip":false,"enable_dhcp":true,"gateway_ip":"10.10.0.1","id":"19c649ee-96ea-438b-ac0c-512afdf5046d","ip_version":4,"ipv6_address_mode":"","ipv6_ra_mode":"","name":"s2i2s-proj-main-subnet","network_id":"f371c239-6d5d-4ac8-a17e-af607752d82c","no_gateway":false,"prefix_length":null,"region":"isti_area_pi_1","segment_id":"","service_types":[],"subnetpool_id":"","tags":[],"tenant_id":"d0dcc2b7f3004c9a81b87ab60ec3c0d3","timeouts":null,"value_specs":null},"main_region":"isti_area_pi_1","main_subnet_network_id":"19c649ee-96ea-438b-ac0c-512afdf5046d","mtu_size":8942,"os_project_data":{"id":"d0dcc2b7f3004c9a81b87ab60ec3c0d3","name":"s2i2s-proj-cloud"},"prometheus_access_from_grafana":{"all_tags":[],"delete_default_rules":true,"description":"The public grafana server must be able to get data from Prometheus","id":"48e9366f-23a8-47df-abcd-66f84d4af395","name":"prometheus_access_from_grafana","region":"isti_area_pi_1","stateful":false,"tags":[],"tenant_id":"d0dcc2b7f3004c9a81b87ab60ec3c0d3","timeouts":null},"prometheus_hostname":"prometheus.s2i2s.cloud.isti.cnr.it.","prometheus_public_ip":"146.48.31.67","prometheus_server_data":{"flavor":"m1.medium","name":"prometheus","public_grafana_server_cidr":"146.48.28.103/32","vol_data_device":"/dev/vdb","vol_data_name":"prometheus-data","vol_data_size":"100"},"prometheus_server_id":"d2a37e7c-3eaa-4929-b70d-cfb55416d8bc","public_web":{"all_tags":[],"delete_default_rules":true,"description":"Security group that allows HTTPS and HTTP from everywhere, for the services that are not behind any load balancer","id":"31140e64-667a-4044-b388-79afcc6bcb69","name":"public_web_service","region":"isti_area_pi_1","stateful":false,"tags":[],"tenant_id":"d0dcc2b7f3004c9a81b87ab60ec3c0d3","timeouts":null},"resolvers_ip":["146.48.29.97","146.48.29.98","146.48.29.99"],"restricted_web":{"all_tags":[],"delete_default_rules":true,"description":"Security group that restricts HTTPS sources to the VPN nodes and shell.d4science.org. HTTP is open to all, because letsencrypt","id":"359d7ae7-cdff-47c2-bf69-7d423860d2d2","name":"restricted_web_service","region":"isti_area_pi_1","stateful":false,"tags":[],"tenant_id":"d0dcc2b7f3004c9a81b87ab60ec3c0d3","timeouts":null},"ssh_jump_proxy":{"flavor":"m2.small","name":"ssh-jump-proxy"},"ssh_jump_proxy_hostname":"ssh-jump-proxy.s2i2s.cloud.isti.cnr.it.","ssh_jump_proxy_id":"6aed1634-ec4e-43b0-a8c6-2da42a27ad25","ssh_jump_proxy_public_ip":"146.48.31.105","ssh_sources":{"d4s_vpn_1_cidr":"146.48.122.27/32","d4s_vpn_2_cidr":"146.48.122.49/32","infrascience_net_cidr":"146.48.122.0/23","isti_net_cidr":"146.48.80.0/21","isti_vpn_gw1":"146.48.80.101/32","isti_vpn_gw2":"146.48.80.102/32","isti_vpn_gw3":"146.48.80.103/32","s2i2s_net_cidr":"146.48.28.0/22","s2i2s_vpn_1_cidr":"146.48.28.10/32","s2i2s_vpn_2_cidr":"146.48.28.11/32","shell_d4s_cidr":"146.48.122.95/32"},"traffic_from_main_haproxy":{"all_tags":[],"delete_default_rules":true,"description":"Allow traffic from the main L7 HAPROXY load balancers","id":"56ba7585-659a-49ac-8d8e-c85ebcb1179f","name":"traffic_from_the_main_load_balancers","region":"isti_area_pi_1","stateful":false,"tags":[],"tenant_id":"d0dcc2b7f3004c9a81b87ab60ec3c0d3","timeouts":null},"ubuntu2204_data_file":"../../s2i2s_openstack_vm_data_scripts/ubuntu2204.sh","ubuntu2404_data_file":"../../s2i2s_openstack_vm_data_scripts/ubuntu2404.sh","ubuntu_2204":{"name":"Ubuntu-Jammy-22.04","user_data_file":"../../s2i2s_openstack_vm_data_scripts/ubuntu2204.sh","uuid":"54768889-8556-4be4-a2eb-82a4d9b34627"},"ubuntu_2404":{"name":"Ubuntu-Noble-24.04.img","user_data_file":"../../s2i2s_openstack_vm_data_scripts/ubuntu2404.sh","uuid":"fc3f705d-3cf5-4866-8ef6-ff6e2cdd4075"}},"type":["object",{"access_to_the_jump_proxy":["object",{"all_tags":["set","string"],"delete_default_rules":"bool","description":"string","id":"string","name":"string","region":"string","stateful":"bool","tags":["set","string"],"tenant_id":"string","timeouts":["object",{"delete":"string"}]}],"acme_challenge_hostname":"string","availability_zones_names":["map","string"],"basic_services_ip":["map","string"],"debugging":["object",{"all_tags":["set","string"],"delete_default_rules":"bool","description":"string","id":"string","name":"string","region":"string","stateful":"bool","tags":["set","string"],"tenant_id":"string","timeouts":["object",{"delete":"string"}]}],"default_security_group":["object",{"all_tags":["set","string"],"delete_default_rules":"bool","description":"string","id":"string","name":"string","region":"string","stateful":"bool","tags":["set","string"],"tenant_id":"string","timeouts":["object",{"delete":"string"}]}],"default_security_group_id":"string","default_security_group_name":"string","dns_zone":["object",{"attributes":["map","string"],"description":"string","disable_status_check":"bool","email":"string","id":"string","masters":["set","string"],"name":"string","project_id":"string","region":"string","timeouts":["object",{"create":"string","delete":"string","update":"string"}],"ttl":"number","type":"string","value_specs":["map","string"]}],"dns_zone_id":"string","floating_ip_pools":["map","string"],"haproxy_l7_data":["map","string"],"internal_ca_data":["map","string"],"internal_ca_id":"string","main_haproxy_l7_ids":["tuple",["string","string"]],"main_haproxy_l7_ip":["list","string"],"main_lb_to_haproxy_l7_security_group":["object",{"all_tags":["set","string"],"delete_default_rules":"bool","description":"string","id":"string","name":"string","region":"string","stateful":"bool","tags":["set","string"],"tenant_id":"string","timeouts":["object",{"delete":"string"}]}],"main_loadbalancer_hostname":"string","main_loadbalancer_id":"string","main_loadbalancer_ip":"string","main_loadbalancer_public_ip":"string","main_private_network":["object",{"admin_state_up":"bool","all_tags":["set","string"],"availability_zone_hints":["set","string"],"description":"string","dns_domain":"string","external":"bool","id":"string","mtu":"number","name":"string","port_security_enabled":"bool","qos_policy_id":"string","region":"string","segments":["set",["object",{"network_type":"string","physical_network":"string","segmentation_id":"number"}]],"shared":"bool","tags":["set","string"],"tenant_id":"string","timeouts":["object",{"create":"string","delete":"string"}],"transparent_vlan":"bool","value_specs":["map","string"]}],"main_private_subnet":["object",{"all_tags":["set","string"],"allocation_pool":["set",["object",{"end":"string","start":"string"}]],"cidr":"string","description":"string","dns_nameservers":["list","string"],"dns_publish_fixed_ip":"bool","enable_dhcp":"bool","gateway_ip":"string","id":"string","ip_version":"number","ipv6_address_mode":"string","ipv6_ra_mode":"string","name":"string","network_id":"string","no_gateway":"bool","prefix_length":"number","region":"string","segment_id":"string","service_types":["list","string"],"subnetpool_id":"string","tags":["set","string"],"tenant_id":"string","timeouts":["object",{"create":"string","delete":"string"}],"value_specs":["map","string"]}],"main_region":"string","main_subnet_network_id":"string","mtu_size":"number","os_project_data":["map","string"],"prometheus_access_from_grafana":["object",{"all_tags":["set","string"],"delete_default_rules":"bool","description":"string","id":"string","name":"string","region":"string","stateful":"bool","tags":["set","string"],"tenant_id":"string","timeouts":["object",{"delete":"string"}]}],"prometheus_hostname":"string","prometheus_public_ip":"string","prometheus_server_data":["map","string"],"prometheus_server_id":"string","public_web":["object",{"all_tags":["set","string"],"delete_default_rules":"bool","description":"string","id":"string","name":"string","region":"string","stateful":"bool","tags":["set","string"],"tenant_id":"string","timeouts":["object",{"delete":"string"}]}],"resolvers_ip":["list","string"],"restricted_web":["object",{"all_tags":["set","string"],"delete_default_rules":"bool","description":"string","id":"string","name":"string","region":"string","stateful":"bool","tags":["set","string"],"tenant_id":"string","timeouts":["object",{"delete":"string"}]}],"ssh_jump_proxy":["map","string"],"ssh_jump_proxy_hostname":"string","ssh_jump_proxy_id":"string","ssh_jump_proxy_public_ip":"string","ssh_sources":["map","string"],"traffic_from_main_haproxy":["object",{"all_tags":["set","string"],"delete_default_rules":"bool","description":"string","id":"string","name":"string","region":"string","stateful":"bool","tags":["set","string"],"tenant_id":"string","timeouts":["object",{"delete":"string"}]}],"ubuntu2204_data_file":"string","ubuntu2404_data_file":"string","ubuntu_2204":["map","string"],"ubuntu_2404":["map","string"]}]},"workspace":null},"sensitive_attributes":[]}]},{"module":"module.forgejo","mode":"managed","type":"openstack_blockstorage_volume_v3","name":"forgejo_data_vol","provider":"provider[\"registry.opentofu.org/terraform-provider-openstack/openstack\"]","instances":[{"schema_version":0,"attributes":{"attachment":[],"availability_zone":"nova","backup_id":"","consistency_group_id":null,"description":"Forgejo repositories and attachments","enable_online_resize":true,"id":"010f6920-6302-4d36-af96-93b30fc90b56","image_id":null,"metadata":{},"name":"forgejo-data","region":"isti_area_pi_1","scheduler_hints":[],"size":200,"snapshot_id":"","source_replica":null,"source_vol_id":"","timeouts":null,"volume_retype_policy":"never","volume_type":"CephSSD"},"sensitive_attributes":[],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0="}]},{"module":"module.forgejo","mode":"managed","type":"openstack_compute_instance_v2","name":"forgejo","provider":"provider[\"registry.opentofu.org/terraform-provider-openstack/openstack\"]","instances":[{"schema_version":0,"attributes":{"access_ip_v4":"10.10.0.165","access_ip_v6":"","admin_pass":null,"all_metadata":{},"all_tags":[],"availability_zone":"cnr-isti-nova-a","availability_zone_hints":"cnr-isti-nova-a","block_device":[{"boot_index":0,"delete_on_termination":false,"destination_type":"volume","device_type":"","disk_bus":"","guest_format":"","multiattach":false,"source_type":"image","uuid":"fc3f705d-3cf5-4866-8ef6-ff6e2cdd4075","volume_size":20,"volume_type":""}],"config_drive":null,"created":"2026-08-11 16:20:41 +0000 UTC","flavor_id":"14","flavor_name":"m1.xlarge","force_delete":false,"hypervisor_hostname":"","id":"1f7c03da-8e39-492d-bfb7-433ac73396d3","image_id":"Attempt to boot from volume - no image supplied","image_name":null,"key_pair":"adellam","metadata":null,"name":"forgejo","network":[{"access_network":false,"fixed_ip_v4":"10.10.0.165","fixed_ip_v6":"","mac":"fa:16:3e:c3:72:ba","name":"s2i2s-proj-main","port":"799f6341-2f32-4cbd-ae3b-b632a5491ef8","uuid":"f371c239-6d5d-4ac8-a17e-af607752d82c"},{"access_network":false,"fixed_ip_v4":"192.168.1.90","fixed_ip_v6":"","mac":"fa:16:3e:8e:c2:af","name":"postgresql-srv-net","port":"c5177536-440e-4266-a579-d57ba030cd66","uuid":"2b4f3653-5016-427f-9ae2-31144f691a93"}],"network_mode":null,"personality":[],"power_state":"active","region":"isti_area_pi_1","scheduler_hints":[],"security_groups":["default_for_all","traffic_to_forgejo_from_the_main_load_balancers","vm_access_to_the_postgresql_service"],"stop_before_destroy":false,"tags":null,"timeouts":null,"updated":"2026-08-11 16:21:34 +0000 UTC","user_data":"164cdf695f3b4a01a2f8b9dc0af2f87629bd89a7","vendor_options":[]},"sensitive_attributes":[[{"type":"get_attr","value":"admin_pass"}]],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19","dependencies":["data.terraform_remote_state.postgresql","data.terraform_remote_state.privnet_dns_router","data.terraform_remote_state.project_setup","module.forgejo.openstack_networking_port_v2.forgejo_main_port","module.forgejo.openstack_networking_port_v2.forgejo_postgresql_port","module.forgejo.openstack_networking_secgroup_v2.traffic_to_forgejo"]}]},{"module":"module.forgejo","mode":"managed","type":"openstack_compute_volume_attach_v2","name":"forgejo_data_attach","provider":"provider[\"registry.opentofu.org/terraform-provider-openstack/openstack\"]","instances":[{"schema_version":0,"attributes":{"device":"/dev/vdb","id":"1f7c03da-8e39-492d-bfb7-433ac73396d3/010f6920-6302-4d36-af96-93b30fc90b56","instance_id":"1f7c03da-8e39-492d-bfb7-433ac73396d3","multiattach":null,"region":"isti_area_pi_1","tag":null,"timeouts":null,"vendor_options":[],"volume_id":"010f6920-6302-4d36-af96-93b30fc90b56"},"sensitive_attributes":[],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=","dependencies":["data.terraform_remote_state.postgresql","data.terraform_remote_state.privnet_dns_router","data.terraform_remote_state.project_setup","module.forgejo.openstack_blockstorage_volume_v3.forgejo_data_vol","module.forgejo.openstack_compute_instance_v2.forgejo","module.forgejo.openstack_networking_port_v2.forgejo_main_port","module.forgejo.openstack_networking_port_v2.forgejo_postgresql_port","module.forgejo.openstack_networking_secgroup_v2.traffic_to_forgejo"]}]},{"module":"module.forgejo","mode":"managed","type":"openstack_dns_recordset_v2","name":"forgejo_recordset","provider":"provider[\"registry.opentofu.org/terraform-provider-openstack/openstack\"]","instances":[{"schema_version":0,"attributes":{"description":"Address of the forgejo service on the main private network","disable_status_check":false,"id":"e826e777-0196-4f63-b2a9-df07f70e618f/d9bf6fc7-2944-4f31-ae7a-c2e7a30252f4","name":"forgejo.s2i2s.cloud.isti.cnr.it.","project_id":"d0dcc2b7f3004c9a81b87ab60ec3c0d3","records":["10.10.0.165"],"region":"isti_area_pi_1","timeouts":null,"ttl":8600,"type":"A","value_specs":null,"zone_id":"e826e777-0196-4f63-b2a9-df07f70e618f"},"sensitive_attributes":[],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH19","dependencies":["data.terraform_remote_state.privnet_dns_router"]}]},{"module":"module.forgejo","mode":"managed","type":"openstack_dns_recordset_v2","name":"git_recordset","provider":"provider[\"registry.opentofu.org/terraform-provider-openstack/openstack\"]","instances":[{"index_key":0,"schema_version":0,"attributes":{"description":"Forgejo git service, published by the main load balancer","disable_status_check":false,"id":"e826e777-0196-4f63-b2a9-df07f70e618f/901170c6-263f-42c9-bb5f-9b6c014769d2","name":"git.s2i2s.cloud.isti.cnr.it.","project_id":"d0dcc2b7f3004c9a81b87ab60ec3c0d3","records":["main-lb.s2i2s.cloud.isti.cnr.it."],"region":"isti_area_pi_1","timeouts":null,"ttl":8600,"type":"CNAME","value_specs":null,"zone_id":"e826e777-0196-4f63-b2a9-df07f70e618f"},"sensitive_attributes":[],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH19","dependencies":["data.terraform_remote_state.privnet_dns_router","data.terraform_remote_state.project_setup"]}]},{"module":"module.forgejo","mode":"managed","type":"openstack_networking_port_v2","name":"forgejo_main_port","provider":"provider[\"registry.opentofu.org/terraform-provider-openstack/openstack\"]","instances":[{"schema_version":0,"attributes":{"admin_state_up":true,"all_fixed_ips":["10.10.0.165"],"all_security_group_ids":["1ec8a419-f9cf-473f-a022-6499d67d57b8","3f8ce1ef-2e2c-4ac8-9074-8d379c974d9b"],"all_tags":[],"allowed_address_pairs":[],"binding":[{"host_id":"","profile":"","vif_details":{},"vif_type":"","vnic_type":"normal"}],"description":"Port of the forgejo service on the main private network","device_id":"","device_owner":"","dns_assignment":[{"fqdn":"host-10-10-0-165.internal-cloud.isti.cnr.it.","hostname":"host-10-10-0-165","ip_address":"10.10.0.165"}],"dns_name":"","extra_dhcp_option":[],"fixed_ip":[{"ip_address":"10.10.0.165","subnet_id":"19c649ee-96ea-438b-ac0c-512afdf5046d"}],"id":"799f6341-2f32-4cbd-ae3b-b632a5491ef8","mac_address":"fa:16:3e:c3:72:ba","name":"forgejo-main-port","network_id":"f371c239-6d5d-4ac8-a17e-af607752d82c","no_fixed_ip":null,"no_security_groups":null,"port_security_enabled":true,"qos_policy_id":"","region":"isti_area_pi_1","security_group_ids":["1ec8a419-f9cf-473f-a022-6499d67d57b8","3f8ce1ef-2e2c-4ac8-9074-8d379c974d9b"],"tags":null,"tenant_id":"d0dcc2b7f3004c9a81b87ab60ec3c0d3","timeouts":null,"value_specs":null},"sensitive_attributes":[],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=","dependencies":["data.terraform_remote_state.privnet_dns_router","data.terraform_remote_state.project_setup","module.forgejo.openstack_networking_secgroup_v2.traffic_to_forgejo"]}]},{"module":"module.forgejo","mode":"managed","type":"openstack_networking_port_v2","name":"forgejo_postgresql_port","provider":"provider[\"registry.opentofu.org/terraform-provider-openstack/openstack\"]","instances":[{"schema_version":0,"attributes":{"admin_state_up":true,"all_fixed_ips":["192.168.1.90"],"all_security_group_ids":["09df1cb3-0654-47a0-be50-55bb79b011c9"],"all_tags":[],"allowed_address_pairs":[],"binding":[{"host_id":"","profile":"","vif_details":{},"vif_type":"","vnic_type":"normal"}],"description":"Port of the forgejo service on the dedicated network of the database","device_id":"","device_owner":"","dns_assignment":[{"fqdn":"host-192-168-1-90.internal-cloud.isti.cnr.it.","hostname":"host-192-168-1-90","ip_address":"192.168.1.90"}],"dns_name":"","extra_dhcp_option":[],"fixed_ip":[{"ip_address":"","subnet_id":"228da08f-2b49-4d76-bec4-abab0510f275"}],"id":"c5177536-440e-4266-a579-d57ba030cd66","mac_address":"fa:16:3e:8e:c2:af","name":"forgejo-postgresql-port","network_id":"2b4f3653-5016-427f-9ae2-31144f691a93","no_fixed_ip":null,"no_security_groups":null,"port_security_enabled":true,"qos_policy_id":"","region":"isti_area_pi_1","security_group_ids":["09df1cb3-0654-47a0-be50-55bb79b011c9"],"tags":null,"tenant_id":"d0dcc2b7f3004c9a81b87ab60ec3c0d3","timeouts":null,"value_specs":null},"sensitive_attributes":[],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=","dependencies":["data.terraform_remote_state.postgresql"]}]},{"module":"module.forgejo","mode":"managed","type":"openstack_networking_secgroup_rule_v2","name":"haproxy_to_forgejo","provider":"provider[\"registry.opentofu.org/terraform-provider-openstack/openstack\"]","instances":[{"index_key":"10.10.0.11-3000","schema_version":0,"attributes":{"description":"Traffic from the HAPROXY L7 10.10.0.11 to the port 3000","direction":"ingress","ethertype":"IPv4","id":"8c83a625-2319-41a4-881f-1d7296c5bb9a","port_range_max":3000,"port_range_min":3000,"protocol":"tcp","region":"isti_area_pi_1","remote_address_group_id":"","remote_group_id":"","remote_ip_prefix":"10.10.0.11/32","security_group_id":"3f8ce1ef-2e2c-4ac8-9074-8d379c974d9b","tenant_id":"d0dcc2b7f3004c9a81b87ab60ec3c0d3","timeouts":null},"sensitive_attributes":[],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjo2MDAwMDAwMDAwMDB9fQ==","dependencies":["data.terraform_remote_state.project_setup","module.forgejo.openstack_networking_secgroup_v2.traffic_to_forgejo"]},{"index_key":"10.10.0.12-3000","schema_version":0,"attributes":{"description":"Traffic from the HAPROXY L7 10.10.0.12 to the port 3000","direction":"ingress","ethertype":"IPv4","id":"8b76c0c9-a17f-4fde-ac90-00543abf4a5f","port_range_max":3000,"port_range_min":3000,"protocol":"tcp","region":"isti_area_pi_1","remote_address_group_id":"","remote_group_id":"","remote_ip_prefix":"10.10.0.12/32","security_group_id":"3f8ce1ef-2e2c-4ac8-9074-8d379c974d9b","tenant_id":"d0dcc2b7f3004c9a81b87ab60ec3c0d3","timeouts":null},"sensitive_attributes":[],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjo2MDAwMDAwMDAwMDB9fQ==","dependencies":["data.terraform_remote_state.project_setup","module.forgejo.openstack_networking_secgroup_v2.traffic_to_forgejo"]}]},{"module":"module.forgejo","mode":"managed","type":"openstack_networking_secgroup_rule_v2","name":"haproxy_to_forgejo_ssh","provider":"provider[\"registry.opentofu.org/terraform-provider-openstack/openstack\"]","instances":[{"index_key":"10.10.0.11","schema_version":0,"attributes":{"description":"Git over SSH from the HAPROXY L7 10.10.0.11","direction":"ingress","ethertype":"IPv4","id":"2ffce9b3-f1cb-4434-8b4b-f30910b9cef5","port_range_max":2222,"port_range_min":2222,"protocol":"tcp","region":"isti_area_pi_1","remote_address_group_id":"","remote_group_id":"","remote_ip_prefix":"10.10.0.11/32","security_group_id":"3f8ce1ef-2e2c-4ac8-9074-8d379c974d9b","tenant_id":"d0dcc2b7f3004c9a81b87ab60ec3c0d3","timeouts":null},"sensitive_attributes":[],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjo2MDAwMDAwMDAwMDB9fQ==","dependencies":["data.terraform_remote_state.project_setup","module.forgejo.openstack_networking_secgroup_v2.traffic_to_forgejo"]},{"index_key":"10.10.0.12","schema_version":0,"attributes":{"description":"Git over SSH from the HAPROXY L7 10.10.0.12","direction":"ingress","ethertype":"IPv4","id":"2d7257fb-2d18-4a0c-b68d-b1e5bad85b3f","port_range_max":2222,"port_range_min":2222,"protocol":"tcp","region":"isti_area_pi_1","remote_address_group_id":"","remote_group_id":"","remote_ip_prefix":"10.10.0.12/32","security_group_id":"3f8ce1ef-2e2c-4ac8-9074-8d379c974d9b","tenant_id":"d0dcc2b7f3004c9a81b87ab60ec3c0d3","timeouts":null},"sensitive_attributes":[],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjo2MDAwMDAwMDAwMDB9fQ==","dependencies":["data.terraform_remote_state.project_setup","module.forgejo.openstack_networking_secgroup_v2.traffic_to_forgejo"]}]},{"module":"module.forgejo","mode":"managed","type":"openstack_networking_secgroup_v2","name":"traffic_to_forgejo","provider":"provider[\"registry.opentofu.org/terraform-provider-openstack/openstack\"]","instances":[{"schema_version":0,"attributes":{"all_tags":[],"delete_default_rules":true,"description":"Traffic from the main L7 HAPROXY load balancers to the forgejo service","id":"3f8ce1ef-2e2c-4ac8-9074-8d379c974d9b","name":"traffic_to_forgejo_from_the_main_load_balancers","region":"isti_area_pi_1","stateful":false,"tags":null,"tenant_id":"d0dcc2b7f3004c9a81b87ab60ec3c0d3","timeouts":null},"sensitive_attributes":[],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjo2MDAwMDAwMDAwMDB9fQ=="}]}],"check_results":null}