Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/workflows/offline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ jobs:
run: nix-env -f default.nix -iA env

- name: Install terraform
id: install-terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: "^1.3.7"
Expand All @@ -109,7 +110,8 @@ jobs:
HCLOUD_TOKEN: '${{ secrets.HCLOUD_TOKEN }}'

- name: Clean up hetzner environment; just in case
if: always()
# Skip when terraform was never installed (earlier step failed): nothing was deployed.
if: always() && steps.install-terraform.outcome == 'success'
run: (cd terraform/examples/wire-server-deploy-offline-hetzner ; terraform init && terraform destroy -auto-approve)
env:
HCLOUD_TOKEN: '${{ secrets.HCLOUD_TOKEN }}'
Expand Down Expand Up @@ -138,6 +140,7 @@ jobs:
run: nix-env -f default.nix -iA env

- name: Install terraform
id: install-terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: "^1.3.7"
Expand All @@ -149,7 +152,8 @@ jobs:
HCLOUD_TOKEN: '${{ secrets.HCLOUD_TOKEN }}'

- name: Clean up hetzner wiab-staging environment; just in case
if: always()
# Skip when terraform was never installed (earlier step failed): nothing was deployed.
if: always() && steps.install-terraform.outcome == 'success'
run: (cd terraform/examples/wiab-staging-hetzner ; terraform init && terraform destroy -auto-approve)
env:
HCLOUD_TOKEN: '${{ secrets.HCLOUD_TOKEN }}'
Expand Down Expand Up @@ -221,6 +225,7 @@ jobs:
AWS_REGION: "eu-west-1"

- name: Install terraform
id: install-terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: "^1.3.7"
Expand All @@ -232,7 +237,8 @@ jobs:
HCLOUD_TOKEN: '${{ secrets.HCLOUD_TOKEN }}'

- name: Clean up hetzner wiab environment; just in case
if: always()
# Skip when terraform was never installed (earlier step failed): nothing was deployed.
if: always() && steps.install-terraform.outcome == 'success'
run: (cd terraform/examples/wiab-demo-hetzner ; terraform init && terraform destroy -auto-approve)
env:
HCLOUD_TOKEN: '${{ secrets.HCLOUD_TOKEN }}'
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
## Breaking changes

-->
# Release 5.35

## Release notes

* Changed: the wire-builds reference with 5.35 backend

# Release 5.34

## Release notes
Expand Down
2 changes: 1 addition & 1 deletion ansible/inventory/demo/host.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ wiab:
wire_ip: ""

# artifact_hash
artifact_hash: "c1f882e49d9240374a57e1cae0ee28a9d93e7fe4"
artifact_hash: "9d7e52462edaaf8267cf8a34647dac18df3712c3"

# docker vars
docker_ce_version: "5:28.1.1-1~ubuntu.24.04~noble"
Expand Down
2 changes: 1 addition & 1 deletion ansible/inventory/demo/wiab-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ wiab-staging:
ansible_user: 'demo'
ansible_ssh_private_key_file: "~/.ssh/id_ed25519"
vars:
artifact_hash: c1f882e49d9240374a57e1cae0ee28a9d93e7fe4
artifact_hash: 9d7e52462edaaf8267cf8a34647dac18df3712c3
# when enabled, disable WAN SNAT/masquerading for VMs on the private network
private_deployment: true
1 change: 1 addition & 0 deletions changelog.d/5-bug-fixes/cd-default-wait-for-adminhost
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed: wait for SSH on the adminhost private IP before running setup_nodes.yml in the default Hetzner CD environment (same as wiab-staging, #919)
1 change: 1 addition & 0 deletions changelog.d/5-bug-fixes/hetzner-datacenters-removed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed: Replace removed Hetzner `hcloud_datacenters` data source (HTTP 410 since 2026-10-01) with `hcloud_locations` in the CD terraform modules and pin the hcloud provider to `~> 1.70`
6 changes: 4 additions & 2 deletions offline/cd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ COMMIT_HASH="${GITHUB_SHA}"
ARTIFACT="wire-server-deploy-static-${COMMIT_HASH}"

# Retry matrix
# Locations are tried in order and exhaust all server types before moving on.
# Prefer hel1: German locations rarely have capacity.
LOCATIONS=("hel1" "fsn1" "nbg1")
SMALL_SERVER_TYPES=("cx23" "cx33" "cpx22")
MEDIUM_SERVER_TYPES=("cx33" "cx43" "cpx32")
Expand Down Expand Up @@ -68,8 +70,8 @@ echo "Retry plan: ${location_count} locations x ${server_type_count} server type
attempt=1
deployment_succeeded=false

for server_type_index in $(seq 0 $((server_type_count - 1))); do
for location_index in $(seq 0 $((location_count - 1))); do
for location_index in $(seq 0 $((location_count - 1))); do
for server_type_index in $(seq 0 $((server_type_count - 1))); do
attempt_location="${LOCATIONS[$location_index]}"
attempt_small_server_type="${SMALL_SERVER_TYPES[$server_type_index]}"
attempt_medium_server_type="${MEDIUM_SERVER_TYPES[$server_type_index]}"
Expand Down
6 changes: 4 additions & 2 deletions offline/cd_demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ TEST_USER="demo"
COMMIT_HASH="${GITHUB_SHA}"

# Retry matrix
# Locations are tried in order and exhaust all server types before moving on.
# Prefer hel1: German locations rarely have capacity.
LOCATIONS=("hel1" "fsn1" "nbg1")
SERVER_TYPES=("cx53" "cpx62")

Expand Down Expand Up @@ -62,8 +64,8 @@ echo "Retry plan: ${location_count} locations x ${server_type_count} server type
attempt=1
deployment_succeeded=false

for server_type_index in $(seq 0 $((server_type_count - 1))); do
for location_index in $(seq 0 $((location_count - 1))); do
for location_index in $(seq 0 $((location_count - 1))); do
for server_type_index in $(seq 0 $((server_type_count - 1))); do
attempt_location="${LOCATIONS[$location_index]}"
attempt_server_type="${SERVER_TYPES[$server_type_index]}"

Expand Down
6 changes: 4 additions & 2 deletions offline/cd_staging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ COMMIT_HASH="${GITHUB_SHA}"
ARTIFACT="wire-server-deploy-static-${COMMIT_HASH}"

# Retry matrix
# Locations are tried in order and exhaust all server types before moving on.
# Prefer hel1: German locations rarely have capacity.
LOCATIONS=("hel1" "nbg1" "fsn1")
SMALL_SERVER_TYPES=("cpx22" "cpx32" "cpx42")
MEDIUM_SERVER_TYPES=("cpx42" "cpx52" "cpx62")
Expand Down Expand Up @@ -67,8 +69,8 @@ echo "Starting deployment with automatic retry on resource unavailability..."
attempt=1
deployment_succeeded=false

for server_type_index in $(seq 0 $((server_type_count - 1))); do
for location_index in $(seq 0 $((location_count - 1))); do
for location_index in $(seq 0 $((location_count - 1))); do
for server_type_index in $(seq 0 $((server_type_count - 1))); do
attempt_location="${LOCATIONS[$location_index]}"
attempt_small_server_type="${SMALL_SERVER_TYPES[$server_type_index]}"
attempt_medium_server_type="${MEDIUM_SERVER_TYPES[$server_type_index]}"
Expand Down
2 changes: 1 addition & 1 deletion offline/tasks/proc_pull_charts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,5 @@ pull_charts() {

}

wire_build="https://raw.githubusercontent.com/wireapp/wire-builds/refs/heads/pinned-offline-5.34.0/build.json"
wire_build="https://raw.githubusercontent.com/wireapp/wire-builds/refs/heads/pinned-offline-5.35.0-teams-4.24.1/build.json"
wire_build_chart_release "$wire_build" | pull_charts
4 changes: 2 additions & 2 deletions terraform/examples/wiab-demo-hetzner/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ variable "server_type" {

# Get available server types and locations
data "hcloud_server_types" "available" {}
data "hcloud_datacenters" "available" {}
data "hcloud_locations" "available" {}

locals {
available_server_type_names = [for st in data.hcloud_server_types.available.server_types : st.name]
available_location_names = [for dc in data.hcloud_datacenters.available.datacenters : dc.location.name]
available_location_names = [for l in data.hcloud_locations.available.locations : l.name]
}

resource "null_resource" "location_validation" {
Expand Down
3 changes: 2 additions & 1 deletion terraform/examples/wiab-demo-hetzner/versions.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
terraform {
required_providers {
hcloud = {
source = "hetznercloud/hcloud"
source = "hetznercloud/hcloud"
version = "~> 1.70"
}
}
required_version = "~> 1.1"
Expand Down
4 changes: 2 additions & 2 deletions terraform/examples/wiab-staging-hetzner/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ variable "medium_server_type" {

# Get available server types and locations
data "hcloud_server_types" "available" {}
data "hcloud_datacenters" "available" {}
data "hcloud_locations" "available" {}

# Validate the exact combination requested by the deployment script.
locals {
available_server_type_names = [for st in data.hcloud_server_types.available.server_types : st.name]
available_location_names = [for dc in data.hcloud_datacenters.available.datacenters : dc.location.name]
available_location_names = [for l in data.hcloud_locations.available.locations : l.name]
}

resource "null_resource" "location_validation" {
Expand Down
3 changes: 2 additions & 1 deletion terraform/examples/wiab-staging-hetzner/versions.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
terraform {
required_providers {
hcloud = {
source = "hetznercloud/hcloud"
source = "hetznercloud/hcloud"
version = "~> 1.70"
}
}
required_version = "~> 1.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ variable "medium_server_type" {

# Get available server types and locations
data "hcloud_server_types" "available" {}
data "hcloud_datacenters" "available" {}
data "hcloud_locations" "available" {}

# Validate the exact combination requested by the deployment script.
locals {
available_server_type_names = [for st in data.hcloud_server_types.available.server_types : st.name]
available_location_names = [for dc in data.hcloud_datacenters.available.datacenters : dc.location.name]
available_location_names = [for l in data.hcloud_locations.available.locations : l.name]
}

resource "null_resource" "location_validation" {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
---
- name: Wait for adminhost private SSH
hosts: adminhost
gather_facts: no
tasks:
- name: Wait for SSH on public adminhost
wait_for_connection:
timeout: 300
delay: 5

- name: Wait until adminhost private IP is reachable from public adminhost
wait_for:
host: "{{ hostvars['adminhost_local'].ansible_host }}"
port: 22
timeout: 300
delay: 5

- name: Setup adminhost with dnsmasq and Docker
hosts: adminhost_local
become: yes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
terraform {
required_providers {
hcloud = {
source = "hetznercloud/hcloud"
source = "hetznercloud/hcloud"
version = "~> 1.70"
}
}
required_version = "~> 1.1"
Expand Down
6 changes: 2 additions & 4 deletions values/reaper/demo-values.example.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
image:
registry: docker.io
# Override kubectl image to use available version in bitnamilegacy
# Using the last available version in 1.32.x series
repository: bitnamilegacy/kubectl
tag: 1.32.4
repository: alpine/kubectl
tag: 1.36.3
6 changes: 2 additions & 4 deletions values/reaper/prod-values.example.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
image:
registry: docker.io
# Override kubectl image to use available version in bitnamilegacy
# Using the last available version in 1.32.x series
repository: bitnamilegacy/kubectl
tag: 1.32.4
repository: alpine/kubectl
tag: 1.36.3
4 changes: 2 additions & 2 deletions values/sftd/demo-values.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ replicaCount: 1
joinCall:
replicaCount: 1
image:
repository: docker.io/bitnamilegacy/nginx
repository: nginxinc/nginx-unprivileged
pullPolicy: IfNotPresent
tag: "1.27.3-debian-12-r5"
tag: "1.29.5-alpine3.23-perl"
tls:
issuerRef:
name: letsencrypt-http01
Expand Down
4 changes: 2 additions & 2 deletions values/sftd/prod-values.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ joinCall:
# replicaCount = 1 is to support the simple wiab-staging solution
replicaCount: 1
image:
repository: docker.io/bitnamilegacy/nginx
repository: nginxinc/nginx-unprivileged
pullPolicy: IfNotPresent
tag: "1.27.3-debian-12-r5"
tag: "1.29.5-alpine3.23-perl"

# Uncomment to enable SFT to SFT communication for federated calls
# multiSFT:
Expand Down
Loading