<feed xmlns='http://www.w3.org/2005/Atom'>
<title>puppet-augeas_core/lib/puppet/provider, branch main</title>
<subtitle>Puppet module for managing augeas types</subtitle>
<id>https://cgit.fluxo.info/puppet-augeas_core/atom?h=main</id>
<link rel='self' href='https://cgit.fluxo.info/puppet-augeas_core/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit.fluxo.info/puppet-augeas_core/'/>
<updated>2021-09-30T11:30:05+00:00</updated>
<entry>
<title>(MODULES-11197) Rubocop fixes</title>
<updated>2021-09-30T11:30:05+00:00</updated>
<author>
<name>Bobosila Victor</name>
<email>vbobosila1@gmail.com</email>
</author>
<published>2021-09-24T10:26:47+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.fluxo.info/puppet-augeas_core/commit/?id=855f3bba8bb1c29ea1ec2dae471c90bec7786f01'/>
<id>urn:sha1:855f3bba8bb1c29ea1ec2dae471c90bec7786f01</id>
<content type='text'>
</content>
</entry>
<entry>
<title>(MODULES-11197) Update puppetlabs-augeas_core to latest pdk template</title>
<updated>2021-09-30T11:30:03+00:00</updated>
<author>
<name>Bobosila Victor</name>
<email>vbobosila1@gmail.com</email>
</author>
<published>2021-09-24T10:18:41+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.fluxo.info/puppet-augeas_core/commit/?id=ec516a229afbedb0eefe401a8eefecc27004f6ac'/>
<id>urn:sha1:ec516a229afbedb0eefe401a8eefecc27004f6ac</id>
<content type='text'>
Also updated `.sync` file to include the `auto_release.yml` workflow
</content>
</entry>
<entry>
<title>(MODULES-10950) Infer application name from run mode</title>
<updated>2021-02-22T17:08:35+00:00</updated>
<author>
<name>Gabriel Nagy</name>
<email>gabriel.nagy@puppet.com</email>
</author>
<published>2021-02-22T17:00:25+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.fluxo.info/puppet-augeas_core/commit/?id=44be62fc43407528d5873cdee1559c55a373257b'/>
<id>urn:sha1:44be62fc43407528d5873cdee1559c55a373257b</id>
<content type='text'>
Fix a regression introduced by MODULES-7397[1] which incorrectly assumed
that the application name can be queried through
`Puppet::Application.name`, causing lenses that are pluginsynced not to
be loaded.

Since we only need to find out whether or not we're running as part of
`puppet agent`, it should be enough to use `Puppet.run_mode.name`, which
returns `:agent` in this case, and `:user` otherwise.

[1] https://github.com/puppetlabs/puppetlabs-augeas_core/pull/27
</content>
</entry>
<entry>
<title>(MODULES-7397) Load Augeas lenses from modules</title>
<updated>2020-09-03T08:57:31+00:00</updated>
<author>
<name>Luchian Nemes</name>
<email>luchian.nemes@puppet.com</email>
</author>
<published>2020-09-03T06:37:21+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.fluxo.info/puppet-augeas_core/commit/?id=897ca7a86b9595761e1492a4ffa36bbdb751a15a'/>
<id>urn:sha1:897ca7a86b9595761e1492a4ffa36bbdb751a15a</id>
<content type='text'>
When creating the load path for Augeas, the module directories are now
also searched for lenses and their folder path is added accordingly.
This happens in every context except `agent` application. Through
plugin syncing (and later cached lenses) it does not need these extra
paths.
</content>
</entry>
<entry>
<title>(MODULES-8014) relatively require helper code</title>
<updated>2018-10-01T18:30:23+00:00</updated>
<author>
<name>Melissa Stone</name>
<email>melissa@puppet.com</email>
</author>
<published>2018-10-01T18:15:18+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.fluxo.info/puppet-augeas_core/commit/?id=c5c0515131d6aad62f80efef8b8db8d7d9a83aee'/>
<id>urn:sha1:c5c0515131d6aad62f80efef8b8db8d7d9a83aee</id>
<content type='text'>
Prior to this commit, when the augeas_core module was installed via
`puppet module install`, the helper code loaded came from the vendored
module rather than the installed module. Moving the `require` to
`require_relative` fixes that.
</content>
</entry>
<entry>
<title>(MODULES-7814) Ignore nil values when parsing commands. Fix for: Could not evaluate: undefined method strip! for nil:NilClass</title>
<updated>2018-09-25T13:20:15+00:00</updated>
<author>
<name>Lavinia Foldenyi</name>
<email>lavinia.foldenyi@Lavinias-MacBook-Pro.local</email>
</author>
<published>2018-09-21T13:45:50+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.fluxo.info/puppet-augeas_core/commit/?id=3a91f8cf69dc6ba643f8d06f9d3aa61bd69d6b8a'/>
<id>urn:sha1:3a91f8cf69dc6ba643f8d06f9d3aa61bd69d6b8a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>(maint) Consolidate translated strings</title>
<updated>2018-09-18T17:02:38+00:00</updated>
<author>
<name>Melissa Stone</name>
<email>melissa@puppet.com</email>
</author>
<published>2018-09-18T16:39:13+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.fluxo.info/puppet-augeas_core/commit/?id=75cf6f1fc7349bcd57222e942ca072ad61586e32'/>
<id>urn:sha1:75cf6f1fc7349bcd57222e942ca072ad61586e32</id>
<content type='text'>
</content>
</entry>
<entry>
<title>(maint) Move array parser logic into a util module</title>
<updated>2018-07-16T16:09:30+00:00</updated>
<author>
<name>Jacob Helwig</name>
<email>jacob@technosorcery.net</email>
</author>
<published>2018-07-16T16:09:30+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.fluxo.info/puppet-augeas_core/commit/?id=be1d15019ddd7b51965fa204f6e837f83297e7c6'/>
<id>urn:sha1:be1d15019ddd7b51965fa204f6e837f83297e7c6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>(MODULE-7443) Safely deserialize stringified array</title>
<updated>2018-07-12T21:07:56+00:00</updated>
<author>
<name>Jacob Helwig</name>
<email>jacob@technosorcery.net</email>
</author>
<published>2018-07-12T21:07:56+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.fluxo.info/puppet-augeas_core/commit/?id=eec1c193d9043622bf27e162dfb8ffb248ae0caa'/>
<id>urn:sha1:eec1c193d9043622bf27e162dfb8ffb248ae0caa</id>
<content type='text'>
This ports PUP-8974, and the related follow-up maintenance commits from
the Puppet repo.

The augeas provider used Kernel#eval to convert stringified arrays to Ruby
arrays. For example, it extracted the array part of the "clause" below:

    onlyif =&gt; 'values HostKey == ["/etc/ssh/ssh_host_rsa_key"]'

and called Kernel#eval with '["/etc/ssh/ssh_host_rsa_key"]'. Using eval is
bad because it executes arbitrary code.

This commit changes the provider to convert the comma delimited string to
a Ruby array. This mostly maintains the functionality of the original
Kernel#eval (minus running arbitrary code) except for no longer handling
the \M-x, \M-\C-x, \M-\cx, \c\M-x, \c?, and \C-? escape sequences in
double-quoted strings, and \u{nnnn ...} is more lenient about whitespace.
</content>
</entry>
<entry>
<title>Don't eval strings</title>
<updated>2018-06-28T18:16:45+00:00</updated>
<author>
<name>Josh Cooper</name>
<email>josh@puppet.com</email>
</author>
<published>2018-06-28T18:16:45+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.fluxo.info/puppet-augeas_core/commit/?id=31d0eeeaec6e6745fc831ea2da53c9db83d72602'/>
<id>urn:sha1:31d0eeeaec6e6745fc831ea2da53c9db83d72602</id>
<content type='text'>
Previously we were using eval to convert stringified arrays from the
manifest into a ruby array. Use JSON instead, and ensure values are
double quoted as required by JSON.
</content>
</entry>
</feed>
