| Index: modules/notificationserver/manifests/init.pp |
| =================================================================== |
| --- a/modules/notificationserver/manifests/init.pp |
| +++ b/modules/notificationserver/manifests/init.pp |
| @@ -22,17 +22,20 @@ class notificationserver { |
| owner => nginx, |
| mode => 0755, |
| require => Package['nginx'] |
| } |
| exec { "fetch_notifications": |
| command => "hg clone --noupdate https://hg.adblockplus.org/notifications /opt/notifications && chown -R nginx /opt/notifications", |
| path => ["/usr/bin/", "/bin/"], |
| - require => Package['mercurial'], |
| + require => [ |
| + Package['mercurial'], |
| + Package['nginx'], |
| + ], |
| onlyif => "test ! -d /opt/notifications" |
| } |
| cron {"update_notifications": |
| ensure => present, |
| command => "python -m sitescripts.management.bin.generateNotifications", |
| environment => ['MAILTO=admins@adblockplus.org,root', 'PYTHONPATH=/opt/sitescripts'], |
| user => nginx, |