-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #221 from wireapp/release_2020_04_15
- Loading branch information
Showing
18 changed files
with
220 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# | ||
# This playbook helps you check if ntp has been properly setup on the host that Cassandra | ||
# is running on. Verifies that the daemon is running and that there is no more than | ||
# `allowed_time_diff_between_servers_in_ms` diff between all servers | ||
# | ||
# NOTE: This playbook has been tested on Ubuntu and using ansible2.7 | ||
# TODO: Adjust this to be run on _ALL_ hosts in the inventory | ||
# | ||
- hosts: cassandra | ||
any_errors_fatal: true | ||
roles: | ||
- role: ansible-ntp-verify |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
IP=${1:-"0.0.0.0"} | ||
PORT=${2:-"5001"} | ||
|
||
docker run \ | ||
-d \ | ||
--network=host \ | ||
--restart=always \ | ||
--name registry \ | ||
-v $(pwd)/../../mnt/registry:/var/lib/registry \ | ||
-v "$(pwd)/certs:/certs" \ | ||
-e REGISTRY_HTTP_ADDR=0.0.0.0:5001 \ | ||
-e REGISTRY_HTTP_ADDR=${IP}:${PORT} \ | ||
-e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/client.crt \ | ||
-e REGISTRY_HTTP_TLS_KEY=/certs/client.key \ | ||
registry:2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
IPs: | ||
{% for host in groups[server_type] %} | ||
- {{ hostvars[host]["ansible_" + network_interface]["ipv4"]["address"] }} | ||
- {{ hostvars[host]["ansible_" + (network_interface | default(hostvars[host].ansible_default_ipv4.interface, true)) ]["ipv4"]["address"] }} | ||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: elasticsearch-index-create | ||
labels: | ||
wireService: elasticsearch-index-create | ||
app: elasticsearch-index-create | ||
heritage: {{.Release.Service | quote }} | ||
release: {{.Release.Name | quote }} | ||
chart: "{{.Chart.Name}}-{{.Chart.Version}}" | ||
annotations: | ||
"helm.sh/hook": pre-install,pre-upgrade | ||
"helm.sh/hook-delete-policy": "before-hook-creation" | ||
spec: | ||
template: | ||
metadata: | ||
name: "{{.Release.Name}}" | ||
labels: | ||
wireService: elasticsearch-index-create | ||
app: elasticsearch-index-create | ||
heritage: {{.Release.Service | quote }} | ||
release: {{.Release.Name | quote }} | ||
chart: "{{.Chart.Name}}-{{.Chart.Version}}" | ||
spec: | ||
restartPolicy: OnFailure | ||
initContainers: | ||
# Creates index in elasticsearch only when it doesn't exist. | ||
# Does nothing if the index exists. | ||
- name: brig-index-create | ||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" | ||
args: | ||
- create | ||
- --elasticsearch-server | ||
- "http://{{ required "missing elasticsearch-index.elasticsearch.host!" .Values.elasticsearch.host }}:{{ .Values.elasticsearch.port }}" | ||
- --elasticsearch-index | ||
- "{{ .Values.elasticsearch.index }}" | ||
- --elasticsearch-shards=5 | ||
- --elasticsearch-replicas=2 | ||
- --elasticsearch-refresh-interval=5 | ||
containers: | ||
- name: brig-index-update-mapping | ||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" | ||
args: | ||
- update-mapping | ||
- --elasticsearch-server | ||
- "http://{{ required "missing elasticsearch-index.elasticsearch.host!" .Values.elasticsearch.host }}:{{ .Values.elasticsearch.port }}" | ||
- --elasticsearch-index | ||
- "{{ .Values.elasticsearch.index }}" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: brig-index-migrate-data | ||
labels: | ||
wireService: elasticsearch-index-migrate-data | ||
app: elasticsearch-index-migrate-data | ||
heritage: {{.Release.Service | quote }} | ||
release: {{.Release.Name | quote }} | ||
chart: "{{.Chart.Name}}-{{.Chart.Version}}" | ||
annotations: | ||
"helm.sh/hook": post-install,post-upgrade | ||
"helm.sh/hook-delete-policy": "before-hook-creation" | ||
spec: | ||
template: | ||
metadata: | ||
name: "{{.Release.Name}}" | ||
labels: | ||
wireService: elasticsearch-index-migrate-data | ||
app: elasticsearch-index-migrate-data | ||
heritage: {{.Release.Service | quote }} | ||
release: {{.Release.Name | quote }} | ||
chart: "{{.Chart.Name}}-{{.Chart.Version}}" | ||
spec: | ||
restartPolicy: OnFailure | ||
containers: | ||
# Creates index in elasticsearch only when it doesn't exist. | ||
# Does nothing if the index exists. | ||
- name: brig-index | ||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" | ||
args: | ||
- migrate-data | ||
- --elasticsearch-server | ||
- "http://{{ required "missing elasticsearch-index.elasticsearch.host!" .Values.elasticsearch.host }}:{{ .Values.elasticsearch.port }}" | ||
- --elasticsearch-index | ||
- "{{ .Values.elasticsearch.index }}" | ||
- --cassandra-host | ||
- "{{ required "missing elasticsearch-index.cassandra.host!" .Values.cassandra.host }}" | ||
- --cassandra-port | ||
- "{{ required "missing elasticsearch-index.cassandra.port!" .Values.cassandra.port }}" | ||
- --cassandra-keyspace | ||
- "{{ required "missing elasticsearch-index.cassandra.keyspace!" .Values.cassandra.keyspace }}" |
Oops, something went wrong.