Skip to content

Commit 4a768cb

Browse files
authored
Merge pull request #500 from wireapp/release_2021_08_27
Release_2021_08_27
2 parents e5c294e + e36ec11 commit 4a768cb

File tree

7 files changed

+53
-31
lines changed

7 files changed

+53
-31
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@
1313
-->
1414

1515

16+
# 2021-08-27
17+
18+
## Fixes
19+
20+
* [Documentation] Fix offline deploy redis installation instructions, and SFT node tagging.
21+
* [Wire-Server-Metrics] Fix spacing.
22+
23+
## Features
24+
25+
* [Operations] Add a custom terraform rule to the base Makefile, to improve deployment flexibility with terraform.
26+
27+
1628
# 2021-06-16
1729

1830
## Fixes

Makefile

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@ endif
2424
export TF_DATA_DIR = $(ENV_DIR)/.terraform
2525
TERRAFORM_WORKING_DIR = $(MKFILE_DIR)/terraform/environment
2626

27+
# Since the variable directory and the terraform working directory are not the
28+
# same using a file custom.tf allows specifying additional terraform
29+
# instructions not (yet) covered by the terraform/environment functionality. A
30+
# symlink is created before terraform init/apply/etc if such a file exists,
31+
# otherwise it is removed (in case it was created during a previous Makefile
32+
# invocation with a different ENV_DIR
33+
.PHONY: custom-terraform
34+
custom-terraform:
35+
if [ -f $(ENV_DIR)/custom.tf ]; then ln -sf $(ENV_DIR)/custom.tf $(TERRAFORM_WORKING_DIR)/custom.tf; else rm -f $(TERRAFORM_WORKING_DIR)/custom.tf; fi
2736

2837
# NOTE: leverage make's ability to noop if target already exists, but
2938
# this also means that re-init must be triggered explicitly
@@ -32,11 +41,11 @@ $(TF_DATA_DIR):
3241
&& terraform init -backend-config=$(ENV_DIR)/backend.tfvars
3342

3443
.PHONY: re-init
35-
re-init: check-inputs-terraform
44+
re-init: check-inputs-terraform custom-terraform
3645
make --always-make $(TF_DATA_DIR)
3746

3847
.PHONY: apply plan console destroy
39-
apply plan console destroy: check-inputs-terraform $(TF_DATA_DIR)
48+
apply plan console destroy: check-inputs-terraform custom-terraform $(TF_DATA_DIR)
4049
cd $(TERRAFORM_WORKING_DIR) \
4150
&& source $(ENV_DIR)/hcloud-token.dec \
4251
&& terraform $(@) -var-file=$(ENV_DIR)/terraform.tfvars

ansible/inventory/offline/99-static

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@
7272
# Uncomment and set to the true public IP if you are behind 1:1 NAT
7373
# restund_peer_udp_advertise_addr = a.b.c.d
7474

75+
# Explicitely specify the restund user id to be "root" to override the default of "997"
76+
restund_uid = root
77+
7578
# For the following groups, add all nodes defined above to the sections below.
7679
# Define any additional variables that should be set for these nodes.
7780

offline/ci.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ helm repo add wire https://s3-eu-west-1.amazonaws.com/public.wire.com/charts
9696
helm repo update
9797

9898
# wire_version=$(helm show chart wire/wire-server | yq -r .version)
99-
wire_version="2.106.0"
99+
wire_version="2.113.0"
100100

101101
# Download zauth; as it's needed to generate certificates
102102
echo "quay.io/wire/zauth:$wire_version" | create-container-dump containers-adminhost

offline/docs.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ ansible 2.9.12
6060
6161
```
6262

63+
## Artifacts provided in the deployment tarball.
64+
6365
The following artifacts are provided:
6466

6567
- `containers-adminhost/wire-server-deploy-*.tar`
@@ -245,11 +247,17 @@ d helm install elasticsearch-external ./charts/elasticsearch-external --values .
245247
d helm install minio-external ./charts/minio-external --values ./values/minio-external/values.yaml
246248
```
247249

250+
Also copy the values file for `databases-ephemeral` as it is required for the next step:
251+
252+
```
253+
cp values/databases-ephemeral/prod-values.example.yaml values/databases-ephemeral/values.yaml'
254+
```
255+
248256
Next, we have 4 services that need to be deployed but need no additional configuration:
249257
```
250258
d helm install fake-aws ./charts/fake-aws --values ./values/fake-aws/prod-values.example.yaml
251259
d helm install demo-smtp ./charts/demo-smtp --values ./values/demo-smtp/prod-values.example.yaml
252-
d helm install redis-ephemeral ./charts/redis-ephemeral
260+
d helm install databases-ephemeral ./charts/databases-ephemeral/ --values ./values/databases-ephemeral/values.yaml
253261
d helm install reaper ./charts/reaper
254262
```
255263

values/wire-server-metrics/demo-values.example.yaml

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
# grafana:
55
# persistence:
66
# enabled: false
7-
# prometheusSpec:
8-
# storageSpec: null
9-
# alertmanager:
10-
# alertmanagerSpec:
7+
# prometheus:
8+
# prometheusSpec:
9+
# storageSpec: null
10+
# alertmanager:
11+
# alertmanagerSpec:
1112
# storage: null
1213

1314

@@ -17,14 +18,15 @@
1718
# grafana:
1819
# persistence:
1920
# storageClassName: "<my-storage-class>"
20-
# prometheusSpec:
21-
# storageSpec:
22-
# volumeClaimTemplate:
23-
# spec:
24-
# storageClassName: "<my-storage-class>"
25-
# alertmanager:
26-
# alertmanagerSpec:
27-
# storage:
28-
# volumeClaimTemplate:
29-
# spec:
30-
# storageClassName: "<my-storage-class>"
21+
# prometheus:
22+
# prometheusSpec:
23+
# storageSpec:
24+
# volumeClaimTemplate:
25+
# spec:
26+
# storageClassName: "<my-storage-class>"
27+
# alertmanager:
28+
# alertmanagerSpec:
29+
# storage:
30+
# volumeClaimTemplate:
31+
# spec:
32+
# storageClassName: "<my-storage-class>"

0 commit comments

Comments
 (0)