Commit 814e4654 authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[TASK] gerrit-adapter slack-msg & gerrit-vote via gitlab webhook

parent 2bd1fd0f
......@@ -152,6 +152,7 @@ write_files:
RABBITMQ_USER="${gerrit_adapter_rabbitmq_user}"
RABBITMQ_PASSWORD="${gerrit_adapter_rabbitmq_pass}"
GERRIT_TOKEN="${gerrit_adapter_gerrit_token}"
GITLAB_HOOK_TOKEN="${gerrit_adapter_gitlab_hook_token}"
GERRIT_AUTHORIZATION="${gerrit_adapter_gerrit_authorization}"
GERRIT_AUTHORIZATION_SECURITY="${gerrit_adapter_gerrit_authorization_security}"
RABBITMQ_HOST="${gerrit_adapter_rabbitmq_host}"
......
......@@ -36,6 +36,7 @@ data "template_file" "gerrit_adapter_cloudinit" {
gerrit_adapter_rabbitmq_user = var.gerrit_adapter_rabbitmq_user
gerrit_adapter_rabbitmq_pass = var.gerrit_adapter_rabbitmq_pass
gerrit_adapter_gerrit_token = var.gerrit_adapter_gerrit_token
gerrit_adapter_gitlab_hook_token = var.gerrit_adapter_gitlab_hook_token
gerrit_adapter_gerrit_authorization = var.gerrit_adapter_gerrit_authorization
gerrit_adapter_gerrit_authorization_security = var.gerrit_adapter_gerrit_authorization_security
gerrit_adapter_user_home = var.gerrit_adapter_user_home
......
......@@ -3,6 +3,7 @@ variable "gerrit_adapter_rabbitmq_host" {}
variable "gerrit_adapter_rabbitmq_user" {}
variable "gerrit_adapter_rabbitmq_pass" {}
variable "gerrit_adapter_gerrit_token" {}
variable "gerrit_adapter_gitlab_hook_token" {}
variable "gerrit_adapter_gerrit_authorization" {}
variable "gerrit_adapter_gerrit_authorization_security" {}
variable "gerrit_adapter_user_home" {}
......
......@@ -13,6 +13,7 @@ variable "gerrit_adapter_rabbitmq_host" {}
variable "gerrit_adapter_rabbitmq_user" {}
variable "gerrit_adapter_rabbitmq_pass" {}
variable "gerrit_adapter_gerrit_token" {}
variable "gerrit_adapter_gitlab_hook_token" {}
variable "gerrit_adapter_gerrit_authorization" {}
variable "gerrit_adapter_gerrit_authorization_security" {}
variable "gerrit_adapter_user_home" {}
......@@ -39,6 +40,7 @@ module "gerrit-adapter" {
gerrit_adapter_rabbitmq_user = var.gerrit_adapter_rabbitmq_user
gerrit_adapter_rabbitmq_pass = var.gerrit_adapter_rabbitmq_pass
gerrit_adapter_gerrit_token = var.gerrit_adapter_gerrit_token
gerrit_adapter_gitlab_hook_token = var.gerrit_adapter_gitlab_hook_token
gerrit_adapter_gerrit_authorization = var.gerrit_adapter_gerrit_authorization
gerrit_adapter_gerrit_authorization_security = var.gerrit_adapter_gerrit_authorization_security
gerrit_adapter_user_home = var.gerrit_adapter_user_home
......
gitlab_runner_hcloud_token = "--hetzner-read-write-api-token--"
gitlab_runner_gitlab_instance_url = "https://core.b13.com/"
gitlab_runner_gitlab_instance_url = "https://gitlab.typo3.org/"
# number of idle machines available to take jobs
gitlab_runner_idle_machines = 2
# number of machines started at once
......@@ -15,9 +15,13 @@ gerrit_adapter_rabbitmq_user = "admin"
gerrit_adapter_rabbitmq_pass = "some-output-of pwgen 10 1 or similar"
# token send by gerrit when a patch is pushed
gerrit_adapter_gerrit_token = "SomeToken"
# token send by gitlab webhook when pipeline status changes
gerrit_adapter_gitlab_hook_token = "SomeToken"
# base64encode(user:pass) of the 'Core CI' user
gerrit_adapter_gerrit_authorization="base64encode(user:pass)"
# base64encode(user:pass) of the 'Security CI' user
gerrit_adapter_gerrit_authorization_security="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"
gerrit_adapter_slack_hook = "https://hooks.slack.com/services/123/456/789"
\ No newline at end of file
gerrit_adapter_slack_hook = "https://hooks.slack.com/services/123/456/789"
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