From ea8774dd60b666143a12b3ce03e0a10622860fb9 Mon Sep 17 00:00:00 2001
From: umatare5 <umatare5@gmail.com>
Date: Tue, 10 Dec 2024 14:35:34 +0900
Subject: [PATCH] refactor(alertmanager): Start the daemon using the account
 made by `_common`

Signed-off-by: umatare5 <umatare5@gmail.com>
---
 roles/alertmanager/templates/alertmanager.service.j2 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/roles/alertmanager/templates/alertmanager.service.j2 b/roles/alertmanager/templates/alertmanager.service.j2
index 99f367347..0056369db 100644
--- a/roles/alertmanager/templates/alertmanager.service.j2
+++ b/roles/alertmanager/templates/alertmanager.service.j2
@@ -22,8 +22,8 @@ PIDFile=/run/alertmanager.pid
 {% else %}
 PIDFile=/var/run/alertmanager.pid
 {% endif %}
-User=alertmanager
-Group=alertmanager
+User={{ alertmanager_system_user }}
+Group={{ alertmanager_system_group }}
 ExecReload=/bin/kill -HUP $MAINPID
 ExecStart={{ alertmanager_binary_install_dir }}/alertmanager \
 {% for option, value in (alertmanager_cluster.items() | sort) %}