Commit b5bd95095c243c45f585d97dd361ffaf93d29b92

Authored by Sergio Oliveira
1 parent 190b57cc

Updating cronjobs

Showing 1 changed file with 11 additions and 5 deletions   Show diff stats
puppet/modules/colab/manifests/cronjobs.pp
@@ -8,26 +8,32 @@ class colab::cronjobs { @@ -8,26 +8,32 @@ class colab::cronjobs {
8 user => colab, 8 user => colab,
9 } 9 }
10 10
  11 + cron { 'feedzilla':
  12 + command => "$manage_colab feedzilla_update &> /dev/null"
  13 + hour => '*',
  14 + minute => '0',
  15 + }
  16 +
11 cron { 'update-badges': 17 cron { 'update-badges':
12 - command => "$manage_colab update_badges", 18 + command => "$manage_colab update_badges &> /dev/null",
13 hour => '*', 19 hour => '*',
14 minute => '*/5', 20 minute => '*/5',
15 } 21 }
16 22
17 cron { 'update-haystack-index': 23 cron { 'update-haystack-index':
18 - command => "$manage_colab update_index --age=1", 24 + command => "$manage_colab update_index --age=1 &> /dev/null",
19 hour => '*', 25 hour => '*',
20 minute => '*', 26 minute => '*',
21 } 27 }
22 28
23 cron { 'rebuild-haystack-index': 29 cron { 'rebuild-haystack-index':
24 - command => "$manage_colab rebuild_index --noinput", 30 + command => "$manage_colab rebuild_index --noinput &> /dev/null",
25 hour => '2', 31 hour => '2',
26 minute => '34', 32 minute => '34',
27 } 33 }
28 34
29 cron { 'import-mailman-messages': 35 cron { 'import-mailman-messages':
30 - command => "$manage_colab import_emails --archives_path=/mnt/mailman/archives/ --exclude-list=saberes-divulgacao --exclude-list=pml --exclude-list=mailman --exclude-list=lexml-anuncios", 36 + command => "$manage_colab import_emails --archives_path=/mnt/mailman/archives/ --exclude-list=saberes-divulgacao --exclude-list=pml --exclude-list=mailman --exclude-list=lexml-anuncios &> /dev/null",
31 hour => '*', 37 hour => '*',
32 minute => '*', 38 minute => '*',
33 } 39 }
@@ -42,7 +48,7 @@ class colab::cronjobs { @@ -42,7 +48,7 @@ class colab::cronjobs {
42 } 48 }
43 49
44 cron { 'mount-sshfs': 50 cron { 'mount-sshfs':
45 - command => 'test -e /mnt/mailman/archives/flag || sshfs root@listas.interlegis.gov.br:/var/lib/mailman/archives/private /mnt/mailman/archives/ -o ro,nosuid,nodev,max_read=65536,allow_other,IdentityFile=/root/.ssh/id_rsa && touch /mnt/mailman/archives/flag', 51 + command => 'test -e /mnt/mailman/archives/flag || sshfs root@listas.interlegis.gov.br:/var/lib/mailman/archives/private /mnt/mailman/archives/ -o ro,nosuid,nodev,max_read=65536,allow_other,IdentityFile=/root/.ssh/id_rsa && touch /mnt/mailman/archives/flag &> /dev/null',
46 minute => '*/5', 52 minute => '*/5',
47 user => 'root', 53 user => 'root',
48 require => [ 54 require => [