Skip to content

Commit 3eb5dc6

Browse files
committed
add slack param to systemd service
1 parent 3a47b8b commit 3eb5dc6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

terraform/apiserver/vm.tf

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
variable "apiserver_tunnel_ip" {
22
type = string
33
}
4+
45
variable "db_connection_uri" {
56
type = string
67
}
78

9+
variable "slack_token" {
10+
type = string
11+
}
12+
813
data "google_compute_network" "default" {
914
name = "default"
1015
}
@@ -59,7 +64,8 @@ ExecStartPre=/bin/chmod 700 gateway-agent
5964
ExecStartPre=/bin/mkdir -p /opt/nais-device/bin/
6065
ExecStartPre=/bin/mv gateway-agent /opt/nais-device/bin/
6166
ExecStart=/opt/nais-device/bin/apiserver \
62-
--db-connection-uri "${var.db_connection_uri}"
67+
--db-connection-uri "${var.db_connection_uri}" \
68+
--slack-token "${var.slack_token}"
6369
6470
[Install]
6571
WantedBy=multi-user.target

0 commit comments

Comments
 (0)