summaryrefslogtreecommitdiff
path: root/puppet/modules
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2016-03-13 11:57:21 -0700
committerelijah <elijah@riseup.net>2016-03-13 11:57:21 -0700
commit4183a10168c61366448e39cf4db45eebc741a27e (patch)
tree7e4e76397f111a4ab5dbfea1c3ac15f62e6b6081 /puppet/modules
parent0065ffb8087d5d47445e95abb224d6941e74cf38 (diff)
static site: don't call site_static::location unless locations are actually defined.
Diffstat (limited to 'puppet/modules')
-rw-r--r--puppet/modules/site_static/manifests/domain.pp4
1 files changed, 3 insertions, 1 deletions
diff --git a/puppet/modules/site_static/manifests/domain.pp b/puppet/modules/site_static/manifests/domain.pp
index b9177f25..5537d247 100644
--- a/puppet/modules/site_static/manifests/domain.pp
+++ b/puppet/modules/site_static/manifests/domain.pp
@@ -10,7 +10,9 @@ define site_static::domain (
$domain = $name
$base_dir = '/srv/static'
- create_resources(site_static::location, $locations)
+ if is_hash($locations) {
+ create_resources(site_static::location, $locations)
+ }
x509::cert { $domain:
content => $cert,