diff options
author | elijah <elijah@riseup.net> | 2016-03-13 11:57:21 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2016-03-13 11:57:21 -0700 |
commit | 4183a10168c61366448e39cf4db45eebc741a27e (patch) | |
tree | 7e4e76397f111a4ab5dbfea1c3ac15f62e6b6081 /puppet/modules | |
parent | 0065ffb8087d5d47445e95abb224d6941e74cf38 (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.pp | 4 |
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, |