Commit 4bda35a7 authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[TASK] slack_hook env var for gerrit-adapter

parent c6620c94
......@@ -35,6 +35,9 @@ This repository manages the gitlab-runner infrastructure tests are executed on:
are used in core's `Build/Script/runTests.sh` by the `docker-compose` commands and pushed to
docker hub in the [typo3](https://hub.docker.com/u/typo3) namespace.
Additionally, this repository deploys the [gerrit-adapter](https://gitlab.typo3.org/core-testing/gerrit-adapter)
as a hetzner cloud machine.
## Design goals
......
......@@ -155,6 +155,7 @@ write_files:
GERRIT_AUTHORIZATION="${gerrit_adapter_gerrit_authorization}"
RABBITMQ_HOST="${gerrit_adapter_rabbitmq_host}"
USER_HOME="${gerrit_adapter_user_home}"
SLACK_HOOK="${gerrit_adapter_slack_hook}"
- owner: 'root:root'
path: /root/gerrit_adapter_git_ssh_private_key
......
......@@ -37,6 +37,7 @@ data "template_file" "gerrit_adapter_cloudinit" {
gerrit_adapter_app_secret = var.gerrit_adapter_app_secret
gerrit_adapter_app_url = var.gerrit_adapter_app_url
gerrit_adapter_git_ssh_private_key = base64encode(var.gerrit_adapter_git_ssh_private_key)
gerrit_adapter_slack_hook = var.gerrit_adapter_slack_hook
}
}
......
......@@ -7,4 +7,5 @@ variable "gerrit_adapter_gerrit_authorization" {}
variable "gerrit_adapter_user_home" {}
variable "gerrit_adapter_app_secret" {}
variable "gerrit_adapter_app_url" {}
variable "gerrit_adapter_git_ssh_private_key" {}
\ No newline at end of file
variable "gerrit_adapter_git_ssh_private_key" {}
variable "gerrit_adapter_slack_hook" {}
\ No newline at end of file
......@@ -17,6 +17,7 @@ variable "gerrit_adapter_gerrit_authorization" {}
variable "gerrit_adapter_user_home" {}
variable "gerrit_adapter_app_secret" {}
variable "gerrit_adapter_app_url" {}
variable "gerrit_adapter_slack_hook" {}
module "gitlab-runner" {
source = "./gitlab-runner"
......@@ -42,4 +43,5 @@ module "gerrit-adapter" {
gerrit_adapter_app_secret = var.gerrit_adapter_app_secret
gerrit_adapter_app_url = var.gerrit_adapter_app_url
gerrit_adapter_git_ssh_private_key = trimspace(file("keys/gerrit_adapter_git_ssh_private_key_id_rsa"))
gerrit_adapter_slack_hook = var.gerrit_adapter_slack_hook
}
\ No newline at end of file
......@@ -19,4 +19,5 @@ gerrit_adapter_gerrit_token = "SomeToken"
gerrit_adapter_gerrit_authorization="base64encode(user:pass)"
gerrit_adapter_user_home = "/home/www-data"
gerrit_adapter_app_secret = "some-output-of pwgen 10 1 or similar"
gerrit_adapter_app_url = "gerrit-adapter.core.b13.dev"
\ No newline at end of file
gerrit_adapter_app_url = "gerrit-adapter.core.b13.dev"
gerrit_adapter_slack_hook = "https://hooks.slack.com/services/123/456/789"
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment