<feed xmlns='http://www.w3.org/2005/Atom'>
<title>puppet/spec/integration/environments, branch master</title>
<subtitle>[no description]</subtitle>
<id>https://git.osdyson.ru/pkg-puppet/puppet/atom?h=master</id>
<link rel='self' href='https://git.osdyson.ru/pkg-puppet/puppet/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.osdyson.ru/pkg-puppet/puppet/'/>
<updated>2014-09-10T20:19:19Z</updated>
<entry>
<title>(PUP-3162) Expand expected config_version</title>
<updated>2014-09-10T20:19:19Z</updated>
<author>
<name>Josh Cooper</name>
<email>josh@puppetlabs.com</email>
</author>
<published>2014-09-10T20:14:38Z</published>
<link rel='alternate' type='text/html' href='https://git.osdyson.ru/pkg-puppet/puppet/commit/?id=c62723bcf68f51f7db011c3d2a07cd7bdd23f92f'/>
<id>urn:sha1:c62723bcf68f51f7db011c3d2a07cd7bdd23f92f</id>
<content type='text'>
Previously the test failed on windows, because we were expecting the
environment config_version to return on POSIX path. But on Windows it is
expanded based on the current drive.

Paired-with: Josh Partlow &lt;joshua.partlow@puppetlabs.com&gt;
</content>
</entry>
<entry>
<title>(PUP-3162) Switch to a whitelist for $environment interpolation</title>
<updated>2014-09-10T00:26:26Z</updated>
<author>
<name>Josh Partlow</name>
<email>joshua.partlow@puppetlabs.com</email>
</author>
<published>2014-09-10T00:26:26Z</published>
<link rel='alternate' type='text/html' href='https://git.osdyson.ru/pkg-puppet/puppet/commit/?id=9f123fe628907cecd3ea5c0622137b4360b89b24'/>
<id>urn:sha1:9f123fe628907cecd3ea5c0622137b4360b89b24</id>
<content type='text'>
Previous commit blacklisted a small set of settings from having
$environment interpolated.  After some discussion, we decided to broaden
this to a whitelist, and the only setting we can currently think of
needing $environment interpolation when using directory environments is
config_version.

We also decided to not halt startup for default_manifest with
$environment in it, as these errors are difficult to read with the
current error reporting from a rack master.  So the validation for
default_manifest is removed.
</content>
</entry>
<entry>
<title>(PUP-3162) Prevent $environment interpolation in directory environments</title>
<updated>2014-09-08T21:27:42Z</updated>
<author>
<name>Josh Partlow</name>
<email>joshua.partlow@puppetlabs.com</email>
</author>
<published>2014-09-08T18:30:25Z</published>
<link rel='alternate' type='text/html' href='https://git.osdyson.ru/pkg-puppet/puppet/commit/?id=65b85b8baa0a054be38d2788c7835854235475e8'/>
<id>urn:sha1:65b85b8baa0a054be38d2788c7835854235475e8</id>
<content type='text'>
There are a few settings for which interpolation of $environment does
not make sense when using directory environments.

* default_manifest -&gt; defines either the relative path to manifests
within a directory environment, or an absolute path to manifests to be
used by all directory environments. It is currently a configuration
error to set $environment within default_manifest.
* basemodulepath -&gt; conceptually, this is intended for supplemental
modules required for all environments, and should not vary by
environment.
* environmentpath -&gt; this is the base path defining what directory
environments can be found. Interpolating $environment within it makes no
sense.

Additionally, both environmentpath and basemodulepath are required by
the environment loaders during initialization. They will interpolate
relative to a specified environment if you interogate config, but in a
running master instance, will have interpolated to the default
environment regardless of the current environment being processed for a
catalog, for instance.

A last case, irregardless of type of environment, is the pathological
case of attempting to interpolate $environment within environment.
This, unsurprisingly, causes a stack overflow.

This patch adjusts the Puppet::Settings interpolation code so that
$environment is not interpolated within any of these four settings when
using directory environments (so, when the environmentpath has been
set).* So assuming a confdir=/etc/puppet,
basemodulepath=$confdir/modules/$environment will be interpolated as
'/etc/puppet/modules/$environment' and a warning will be logged.

*Currently setting $environment in default_manifest will error out
when puppet loads as a setting validation error, and this behavior will
never be reached.
</content>
</entry>
<entry>
<title>(maint) Remove unused constant from default_manifest_spec</title>
<updated>2014-09-08T18:33:08Z</updated>
<author>
<name>Josh Partlow</name>
<email>joshua.partlow@puppetlabs.com</email>
</author>
<published>2014-09-08T18:31:00Z</published>
<link rel='alternate' type='text/html' href='https://git.osdyson.ru/pkg-puppet/puppet/commit/?id=9394e25aa550e646fa554c2e6c5cb097954da94f'/>
<id>urn:sha1:9394e25aa550e646fa554c2e6c5cb097954da94f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>(maint) Namespace constant declaration in specs to prevent warnings</title>
<updated>2014-09-03T00:01:13Z</updated>
<author>
<name>Josh Partlow</name>
<email>joshua.partlow@puppetlabs.com</email>
</author>
<published>2014-09-03T00:01:13Z</published>
<link rel='alternate' type='text/html' href='https://git.osdyson.ru/pkg-puppet/puppet/commit/?id=6c3bc872fcca92f828307a1c093844bca4b659c9'/>
<id>urn:sha1:6c3bc872fcca92f828307a1c093844bca4b659c9</id>
<content type='text'>
Add module namespacing to two specs declaring an FS constant (for
convenience) so that we don't receive warnings about the duplicate
declaration.
</content>
</entry>
<entry>
<title>(PUP-3069) Test both future and current parser with default_manifest</title>
<updated>2014-08-30T00:11:01Z</updated>
<author>
<name>Josh Partlow</name>
<email>joshua.partlow@puppetlabs.com</email>
</author>
<published>2014-08-30T00:11:01Z</published>
<link rel='alternate' type='text/html' href='https://git.osdyson.ru/pkg-puppet/puppet/commit/?id=807d2079c2e28e338d31f811fa4bbf3bbcda2a6a'/>
<id>urn:sha1:807d2079c2e28e338d31f811fa4bbf3bbcda2a6a</id>
<content type='text'>
Previously the environments/default_manifest_spec.rb was only running
with the current parser. This runs the set of tests for both the future
and current parser cases.
</content>
</entry>
<entry>
<title>(PUP-3069) Change restrict_environment_manifest name</title>
<updated>2014-08-29T21:53:36Z</updated>
<author>
<name>Josh Partlow</name>
<email>joshua.partlow@puppetlabs.com</email>
</author>
<published>2014-08-29T21:53:36Z</published>
<link rel='alternate' type='text/html' href='https://git.osdyson.ru/pkg-puppet/puppet/commit/?id=4f67f7b93a1c7517240d8a9948a5107a2a424723'/>
<id>urn:sha1:4f67f7b93a1c7517240d8a9948a5107a2a424723</id>
<content type='text'>
After discussion with Nick Fagerlund and Henrik Lindberg, changing
restrict_environment_manifest setting to
disable_per_environment_manifest to more clearly reflect what the
setting does.
</content>
</entry>
<entry>
<title>(PUP-3069) Add an integration spec for default_manifest</title>
<updated>2014-08-29T18:33:21Z</updated>
<author>
<name>Josh Partlow</name>
<email>joshua.partlow@puppetlabs.com</email>
</author>
<published>2014-08-29T07:55:18Z</published>
<link rel='alternate' type='text/html' href='https://git.osdyson.ru/pkg-puppet/puppet/commit/?id=9fa72d025a2e905067c10ad3c9974e85bc42882e'/>
<id>urn:sha1:9fa72d025a2e905067c10ad3c9974e85bc42882e</id>
<content type='text'>
This adds integration testing of the new default_manifest and
restrict_environment_manifest settings.  It tests all the way from
Puppet initialization from actual puppet.conf files and
environment/manifest files through catalog compilation, simulating
Puppet master activity.  Since these settings are purely server-side
constructs, in that they do not impact the agent beyond the contents of
the final catalog the agent receives, I believe this is sufficient to
validate them.
</content>
</entry>
</feed>
