diff options
author | elijah <elijah@riseup.net> | 2014-05-30 14:52:26 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2014-06-02 12:03:01 -0700 |
commit | 4e3d168d103fea6476694997275c4df4821535f3 (patch) | |
tree | 34ffa9b55ceaecf776074f3cae042efe9af845ad /puppet/modules/site_static/manifests/location.pp | |
parent | 55327fd72621e5c678e5f9ba923bc348ca840463 (diff) |
static site: added rack support, added custom apache config
Diffstat (limited to 'puppet/modules/site_static/manifests/location.pp')
-rw-r--r-- | puppet/modules/site_static/manifests/location.pp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/puppet/modules/site_static/manifests/location.pp b/puppet/modules/site_static/manifests/location.pp index 1ba6807e..9c749b00 100644 --- a/puppet/modules/site_static/manifests/location.pp +++ b/puppet/modules/site_static/manifests/location.pp @@ -2,6 +2,14 @@ define site_static::location($path, $format, $source) { $file_path = "/srv/static/${name}" + if $format == undef { + fail("static_site location `${path}` is missing `format` field.") + } + + if ! member(['amber','rack'], $format) { + fail("Could not understand static_site location format `${format}`.") + } + if ($format == 'amber') { exec {"amber_build_${name}": cwd => $file_path, |