Old-style environments that come either from explicit stanzas in puppet.conf or from dynamic environments created from use of `$environment` in puppet.conf.
@example Explicit Stanza
[environment_name] modulepath=/var/my_env/modules
@example Dynamic Environments
[master] modulepath=/var/$environment/modules
@api private
@note Because the Legacy system cannot list out all of its environments,
get is able to return environments that are not returned by a call to
{#list}.
@!macro loader_get
# File lib/puppet/environments.rb, line 172 def get(name) Puppet::Node::Environment.new(name) end
@note Because the Legacy system cannot list out all of its environments,
this method will never fail and is only calling get directly.
@!macro loader_get_or_fail
# File lib/puppet/environments.rb, line 180 def get!(name) get(name) end
@note we could return something here, but since legacy environments
are deprecated, there is no point.
@!macro loader_get_conf
# File lib/puppet/environments.rb, line 188 def get_conf(name) nil end
@note The list of environments for the Legacy environments is always
empty.
@!macro loader_list
# File lib/puppet/environments.rb, line 163 def list [] end
@!macro loader_search_paths
# File lib/puppet/environments.rb, line 155 def search_paths ["file://#{Puppet[:config]}"] end