diff --git a/manifests/init.pp b/manifests/init.pp index 81685dd2966cc34686cfa19811cabe3383f1520d..d20259039c005f136682552194516363ef712b01 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -155,6 +155,18 @@ class skadereg( subscribe => Vcsrepo['/var/www/skadereg'], } + cron { 'artisan schedule:run': + minute => '*', + hour => '*', + date => '*', + month => '*', + weekday => '*', + user => 'apache', + group => 'skadereg', + environment => [ 'PATH=/opt/rh/rh-php56/root/usr/bin:/usr/bin:/bin', 'SHELL=/bin/bash' ], + command => 'php /var/www/skadereg/artisan schedule:run &> /dev/null', + } + $db_name = 'homestead' class { '::mysql::server': diff --git a/metadata.json b/metadata.json index 79b760fc9ccd1861d598cb44052185ceeb07b73f..05a27292493bb2bf53e000f76c9a94a01cdfe85b 100644 --- a/metadata.json +++ b/metadata.json @@ -6,7 +6,7 @@ "license": "TBD", "source": "https://gitlab.it.liu.se/pm-liuit/skadereg/tree/production", "project_page": "https://gitlab.it.liu.se/pm-liuit/skadereg", - "issues_url": null, + "issues_url": "https://gitlab.it.liu.se/pm-liuit/skadereg/issues", "dependencies": [ { "name": "puppetlabs-stdlib", "version_requirement": ">= 1.0.0" } ],