Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/web/manifests/server.pp

Issue 29435656: Noissue - Generate content on provision (Closed)
Patch Set: Created May 10, 2017, 5:36 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld