class Puppet::Pops::Lookup::EnvironmentDataProvider
@api private
Public Instance Methods
place()
click to toggle source
# File lib/puppet/pops/lookup/environment_data_provider.rb 7 def place 8 'Environment' 9 end
Protected Instance Methods
assert_config_version(config)
click to toggle source
# File lib/puppet/pops/lookup/environment_data_provider.rb 13 def assert_config_version(config) 14 if config.version > 3 15 config 16 else 17 if Puppet[:strict] == :error 18 config.fail(Issues::HIERA_VERSION_3_NOT_GLOBAL, :where => 'environment') 19 else 20 Puppet.warn_once(:hiera_v3_at_env_root, config.config_path, _('hiera.yaml version 3 found at the environment root was ignored'), config.config_path) 21 end 22 nil 23 end 24 end
provider_root(lookup_invocation)
click to toggle source
Return the root of the environment
@param lookup_invocation [Invocation] The current lookup invocation @return [Pathname] Path to root of the environment
# File lib/puppet/pops/lookup/environment_data_provider.rb 30 def provider_root(lookup_invocation) 31 Pathname.new(lookup_invocation.scope.environment.configuration.path_to_env) 32 end