jlambert121 / jlambert121-puppet

Puppet module to manage puppet and puppetserver (java)
Apache License 2.0
5 stars 23 forks source link

Variable environment getting overwritten by local environment var #54

Closed MAXxATTAXx closed 8 years ago

MAXxATTAXx commented 8 years ago

Hi,

This should fix issue #43 I encounter the same error and what is happening is that the local environment var is getting set to undef and the hiera data binding indirector is using local environment = undef instead of using ::environment = 'production'. This causes that values can't be found if you are using a dynamic data_dir based on the environment on hiera configuration.

sjoeboo commented 8 years ago

looks like you missed changing the param name in spec/classes/puppet_agent_config_spec.rb line 14-ish.

Also thanks, I'm going to need this too!

MAXxATTAXx commented 8 years ago

We should be using sjoeboo #57, less hacky solution.