From 0b608dd24ad55037fba3792b863dada5a3e1cd64 Mon Sep 17 00:00:00 2001 From: Adrian Reber Date: Thu, 23 Apr 2015 19:12:15 +0000 Subject: [PATCH] Run the crawler as mirrormanager and not as root. --- roles/mirrormanager/crawler/files/crawler.cron | 2 +- roles/mirrormanager/crawler/tasks/main.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/mirrormanager/crawler/files/crawler.cron b/roles/mirrormanager/crawler/files/crawler.cron index fda60f9f82..e23f38c626 100644 --- a/roles/mirrormanager/crawler/files/crawler.cron +++ b/roles/mirrormanager/crawler/files/crawler.cron @@ -1,4 +1,4 @@ # run the crawler twice a day # logs sent to /var/log/mirrormanager/crawler.log and crawl/* by default # 32GB of RAM is not enough for 75 threads, 40 seems to work so far -0 */12 * * * root /usr/bin/mm2_crawler --threads 40 > /dev/null 2>&1 +0 */12 * * * mirrormanager /usr/bin/mm2_crawler --threads 40 > /dev/null 2>&1 diff --git a/roles/mirrormanager/crawler/tasks/main.yml b/roles/mirrormanager/crawler/tasks/main.yml index 1d2d69f2f1..0f4d0f1811 100644 --- a/roles/mirrormanager/crawler/tasks/main.yml +++ b/roles/mirrormanager/crawler/tasks/main.yml @@ -23,7 +23,7 @@ - name: install MM configuration file template: src={{ roles }}/mirrormanager/frontend2/templates/mirrormanager2.cfg dest=/etc/mirrormanager/mirrormanager2.cfg - mode=600 + mode=600 owner=mirrormanager group=mirrormanager tags: - config