summaryrefslogtreecommitdiff
path: root/puppet/modules
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-11-25 00:43:51 -0800
committerelijah <elijah@riseup.net>2013-11-25 00:43:51 -0800
commit846728631f5247984dfa69b7e82f5014e10f4427 (patch)
tree66cbb28d3c545b3784a7bf7b740293d9d7b8f74b /puppet/modules
parent7674e38867762e5f9d1d1392ccaf89f9ba621008 (diff)
fix bug when 'environment' is nil in hiera.yaml
Diffstat (limited to 'puppet/modules')
-rw-r--r--puppet/modules/site_config/manifests/params.pp2
1 files changed, 1 insertions, 1 deletions
diff --git a/puppet/modules/site_config/manifests/params.pp b/puppet/modules/site_config/manifests/params.pp
index 2ef391db..5bdc0077 100644
--- a/puppet/modules/site_config/manifests/params.pp
+++ b/puppet/modules/site_config/manifests/params.pp
@@ -3,7 +3,7 @@ class site_config::params {
$ip_address = hiera('ip_address')
$ip_address_interface = getvar("interface_${ip_address}")
$ec2_local_ipv4_interface = getvar("interface_${::ec2_local_ipv4}")
- $environment = hiera('environment')
+ $environment = hiera('environment', undef)
if $environment == 'local' {