Commit 2a3148eb authored by ale's avatar ale
Browse files

Add the "iprep" service

parent 32cf4031
Pipeline #14956 passed with stage
in 18 seconds
...@@ -90,3 +90,8 @@ ...@@ -90,3 +90,8 @@
roles: roles:
- ai3-prober - ai3-prober
- hosts: iprep
gather_facts: no
roles:
- iprep
---
- listen: "restart iprep"
systemd:
name: "docker-iprep-api"
state: restarted
---
- name: Create /etc/iprep
file:
path: "/etc/iprep"
state: directory
- name: Configure iprep
template:
src: "score.td.j2"
dest: "/etc/iprep/score.td"
notify: "restart iprep"
score = counts["bruteforce"] + counts["spam"}
...@@ -304,3 +304,24 @@ ai3-prober: ...@@ -304,3 +304,24 @@ ai3-prober:
enable_sso_proxy: true enable_sso_proxy: true
ports: ports:
- 9125 - 9125
iprep:
scheduling_group: backend
num_instances: 1
containers:
- name: api
image: registry.git.autistici.org/ai3/tools/iprep:master
ports:
- 7170
- 7180
volumes:
- /etc/iprep: /etc/iprep
- /var/lib/iprep: /var/lib/iprep
ports:
- 7170
datasets:
- name: db
path: "/var/lib/iprep"
owner: docker-iprep
group: docker-iprep
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment