Skip to content
Snippets Groups Projects
Verified Commit 51101cd1 authored by Giancarlo Razzolini's avatar Giancarlo Razzolini
Browse files

roles/archweb: Added the populate_signoffs service running once every 20 minutes.

parent 0db17398
No related branches found
No related tags found
No related merge requests found
......@@ -136,6 +136,18 @@
- daemon reload
when: archweb_services or archweb_mirrorresolv
- name: install populate_signoffs service
template: src="archweb-populate_signoffs.service.j2" dest="/etc/systemd/system/archweb-populate_signoffs.service" owner=root group=root mode=0644
notify:
- daemon reload
when: archweb_services or archweb_populate_signoffs
- name: install populate_signoffs timer
template: src="archweb-populate_signoffs.timer.j2" dest="/etc/systemd/system/archweb-populate_signoffs.timer" owner=root group=root mode=0644
notify:
- daemon reload
when: archweb_services or archweb_populate_signoffs
- name: install pgp_import service
template: src="archweb-pgp_import.service.j2" dest="/etc/systemd/system/archweb-pgp_import.service" owner=root group=root mode=0644
notify:
......@@ -186,3 +198,7 @@
- name: start and enable archweb mirrorresolv timer
service: name="archweb-mirrorresolv.timer" enabled=yes state=started
when: archweb_services or archweb_mirrorresolv
- name: start and enable archweb populate_signoffs timer
service: name="archweb-populate_signoffs.timer" enabled=yes state=started
when: archweb_services or archweb_populate_signoffs
[Unit]
Description=archewb populate_signoffs service
After=network.target
[Service]
Type=oneshot
User=archweb
WorkingDirectory={{ archweb_dir }}
ExecStart={{ archweb_dir }}/env/bin/python manage.py populate_signoffs -v0
[Install]
WantedBy=multi-user.target
[Unit]
Description=archweb populate_signoffs timer
[Timer]
OnUnitActiveSec=20m
OnBootSec=15min
RandomizedDelaySec=1min
[Install]
WantedBy=timers.target
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment