paulbsd-salt/states/micromdm/templates/micromdm.service.j2
Paul Lecuq a3b02771a4
All checks were successful
continuous-integration/drone/push Build is passing
created templates folder on each state
2023-03-11 10:08:26 +01:00

19 lines
766 B
Django/Jinja

{%- from "micromdm/map.jinja" import micromdm with context -%}
## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
[Unit]
Description=Mobile Device Management server
Documentation=https://github.com/micromdm/micromdm
After=network-online.target
[Service]
User={{ micromdm.user.name }}
Group={{ micromdm.group.name }}
LimitNOFILE=65536
ExecStart={{ micromdm.install_dir }}/micromdm/micromdm serve -http-addr :{{ micromdm.port }} --config-path={{ micromdm.config_path }} -server-url={{ micromdm.url }} -api-key={{ micromdm.api_key }} -filerepo={{ micromdm.filerepo }} -tls={{ micromdm.tls }} -command-webhook-url={{ micromdm.command_webhook_url }}
KillMode=control-group
Restart=on-failure
[Install]
WantedBy=multi-user.target
Alias=micromdm.service