Index: modules/web/manifests/server.pp |
=================================================================== |
--- a/modules/web/manifests/server.pp |
+++ b/modules/web/manifests/server.pp |
@@ -114,6 +114,14 @@ |
creates => "/home/www/${repository}/.hg/hgrc", |
} |
+ exec {"generate_static_pages": |
+ command => "python -m cms.bin.generate_static_pages /home/www/${repository} /var/www/${vhost}", |
mathias
2017/05/10 17:56:00
Please export the bits shared with the cronjob com
|
+ path => ["/usr/bin/", "/bin/"], |
+ user => www, |
+ require => [Exec["fetch_repo"], Exec["fetch_cms"]], |
+ environment => 'PYTHONPATH=/opt/cms:/opt/sitescripts', |
+ } |
+ |
file {'/var/www': |
ensure => directory, |
mode => 755, |