Mercurial > repos > other > Puppet
comparison manifests/templates.pp @ 235:e602c5f974ac puppet-3.6
Make a cron job for updating Wordpress
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 15 Dec 2019 16:28:47 +0000 |
parents | 81dfe3ca043f |
children | 4519b727cc4c |
comparison
equal
deleted
inserted
replaced
234:d91fb2fedbae | 235:e602c5f974ac |
---|---|
568 docroot_owner => $defaultusers::secondary_user, | 568 docroot_owner => $defaultusers::secondary_user, |
569 docroot_group => 'editors', | 569 docroot_group => 'editors', |
570 letsencrypt_name => 'bdstrike.co.uk', | 570 letsencrypt_name => 'bdstrike.co.uk', |
571 separate_log => true, | 571 separate_log => true, |
572 } | 572 } |
573 cron { 'wordpress_cron': | |
574 # Run "php -f wp-cron.php" on a schedule so that we can auto-update | |
575 # without giving Apache full write access! | |
576 command => "/usr/local/bin/bdstrike-cron", | |
577 user => $defaultusers::default_user, | |
578 minute => '*/15', | |
579 } | |
573 } | 580 } |
574 class devsite { | 581 class devsite { |
575 apache::mod { | 582 apache::mod { |
576 # mod_wsgi for Python support | 583 # mod_wsgi for Python support |
577 'wsgi':; | 584 'wsgi':; |