authcheck: Initial version of role
This commit is contained in:
parent
ed7535dd1a
commit
43c234d8cf
4 changed files with 84 additions and 0 deletions
17
roles/authcheck/templates/authcheck-container.service.j2
Normal file
17
roles/authcheck/templates/authcheck-container.service.j2
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue