add karma role
This commit is contained in:
18
roles/karma/templates/karma.service.j2
Normal file
18
roles/karma/templates/karma.service.j2
Normal file
@ -0,0 +1,18 @@
|
||||
{{ ansible_managed | comment }}
|
||||
|
||||
[Unit]
|
||||
Description=Karma Alertmanager dashboard
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
After=alertmanager.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User={{ karma_user }}
|
||||
Group={{ karma_group }}
|
||||
WorkingDirectory={{ karma_etc_path }}
|
||||
ExecStart={{ karma_bin_path }}/karma \
|
||||
--config.file={{ karma_config_path }}
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user