paulbsd-salt/states/netbox/templates/netbox.service.j2
Paul Lecuq 1b59cdacdd * Update salt states
- bl module updated
- borg state updated
- config state updated
- netbox state updated
- nginx state updated
- misc updates
2022-02-21 13:52:46 +01:00

17 lines
465 B
Django/Jinja

{%- from "netbox/map.jinja" import netbox with context -%}
## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
[Unit]
Description=Netbox
After=network.target postgresql.service redis.service
[Service]
Type=notify
NotifyAccess=all
LimitNOFILE=8192
ExecStart={{ netbox.install_dir }}/netbox/bin/gunicorn -c {{ netbox.install_dir }}/netbox/gunicorn.py netbox.wsgi
KillMode=process
Restart=on-failure
RestartSec=15
[Install]
WantedBy=multi-user.target