infra::additional_classes:
- infra::profile::apache_php
- infra::profile::mysql_server
+ - infra::profile::cron
accounts::users:
sebastian.bator:
rewrite_rule:
- '^(.*)$ https://spar-checker-de.pixelpark.net$1 [R=301,L]'
+infra::profile::cron::cronjobs:
+ clear_tokens:
+ ensure: 'absent'
+ user: apache
+ command: 'echo >> $LOG; date >> $LOG; php /var/www/spar-checker/sparchecker-backend/cli.php tokens-clear >>$LOG 2>&1'
+ minute: '*/30'
+ hour: '*'
+ environment:
+ - 'APPLICATION_ENV production'
+ - 'LOG=/var/www/log/cron/clear.token.log'
+ description: clear tokens
+ ping_api:
+ ensure: 'absent'
+ user: apache
+ command: 'echo >> $LOG; date >> $LOG; php /var/www/spar-checker/sparchecker-backend/cli.php api-pinger >>$LOG 2>&1'
+ minute: '*/5'
+ hour: '*'
+ environment:
+ - 'APPLICATION_ENV production'
+ - 'LOG=/var/www/log/cron/ping.api.log'
+ description: ping api
rewrite_rule:
- '^(.*)$ https://stage-spar-checker-de.pixelpark.net$1 [R=301,L]'
+infra::profile::cron::cronjobs:
+ clear_tokens:
+ ensure: 'present'
+ user: apache
+ command: 'echo >> $LOG; date >> $LOG; php /var/www/spar-checker/sparchecker-backend/cli.php tokens-clear >>$LOG 2>&1'
+ minute: '*/30'
+ hour: '*'
+ environment:
+ - 'APPLICATION_ENV production'
+ - 'LOG=/var/www/log/cron/clear.token.log'
+ description: clear tokens
+ ping_api:
+ ensure: 'present'
+ user: apache
+ command: 'echo >> $LOG; date >> $LOG; php /var/www/spar-checker/sparchecker-backend/cli.php api-pinger >>$LOG 2>&1'
+ minute: '*/5'
+ hour: '*'
+ environment:
+ - 'APPLICATION_ENV production'
+ - 'LOG=/var/www/log/cron/ping.api.log'
+ description: ping api
+