paulbsd-salt/states/etcd/templates/etcd.service.j2
Paul Lecuq 934da68bb5
All checks were successful
continuous-integration/drone/push Build is passing
added etcd state
2023-09-02 17:20:54 +02:00

18 lines
546 B
Django/Jinja

{%- from "etcd/map.jinja" import etcd with context -%}
## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
[Unit]
Description=Distributed reliable key-value store for the most critical data of a distributed system
Documentation=https://etcd.io/
After=network.target
[Service]
ExecStart={{ etcd.install_dir }}/etcd/etcd --config-file /etc/etcd/etcd.yml
ExecReload=/bin/kill -HUP $MAINPID
KillMode=control-group
Restart=on-failure
RestartForceExitStatus=SIGPIPE
WorkingDirectory=/var/lib/etcd
[Install]
WantedBy=multi-user.target