authcheck: Initial version of role

This commit is contained in:
Timo Makinen 2023-01-29 17:15:34 +00:00
parent ed7535dd1a
commit 43c234d8cf
4 changed files with 84 additions and 0 deletions

View file

@ -0,0 +1,17 @@
[Unit]
Description=LDAP Auth Check Container
Wants=network-online.target
After=network-online.target
[Service]
User=authcheck
ExecStart=/usr/bin/podman run \
--rm -p 127.0.0.1:8003:8000 \
--name authcheck \
--env LDAP_URI=ldaps://{{ ldap_server[0] }} \
authcheck:latest
ExecStop=/usr/bin/podman stop --ignore authcheck
ExecStopPost=/usr/bin/podman rm -f --ignore authcheck
[Install]
WantedBy=multi-user.target