add metr1c role
This commit is contained in:
32
roles/metr1c/templates/metr1c.service.j2
Normal file
32
roles/metr1c/templates/metr1c.service.j2
Normal file
@@ -0,0 +1,32 @@
|
||||
[Unit]
|
||||
Description=Metric collector (Prometheus) for 1C Plaform using 1C RAS/RAC
|
||||
Requires=network.target
|
||||
|
||||
[Service]
|
||||
# Cluster UUID, for example 07593cfe-64c2-4656-be5f-61c3226286d5
|
||||
Environment=platform1c_admin_cluster={{ cluster_uuid }}
|
||||
|
||||
# Name of cluster admin, e.g. Администратор
|
||||
Environment=platform1c_admin_user={{ cluster_admin }}
|
||||
|
||||
# Admin cluster password, e.g. 1234
|
||||
Environment=platform1c_admin_pw={{ cluster_pw }}
|
||||
|
||||
# Version of 1C platform, e.g. 8.3.24.1467
|
||||
Environment=platform1c_version={{ platform_version }}
|
||||
|
||||
# Metr1c port, by default 1599
|
||||
Environment=metr1c_port={{ metr1c_port }}
|
||||
|
||||
|
||||
# User=usr1cv8
|
||||
# Group=grp1cv8
|
||||
Type=simple
|
||||
|
||||
ExecStart=/opt/metr1c/metr1c
|
||||
|
||||
Restart=always
|
||||
RestartSec=1
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user