<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Augeas on Puppeteers Oy</title>
		<link>https://www.puppeteers.net/tags/augeas/</link>
		<description>Recent content in Augeas on Puppeteers Oy</description>
		<generator>Hugo</generator>
		<language>en-US</language>
		
		
		
		
			<lastBuildDate>Fri, 31 Jan 2020 00:00:00 +0000</lastBuildDate>
		
			<atom:link href="https://www.puppeteers.net/tags/augeas/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Modifying XML files with Puppet&#39;s Augeas resource</title>
				<link>https://www.puppeteers.net/blog/modifying-xml-files-with-puppets-augeas-resource/</link>
				<pubDate>Fri, 31 Jan 2020 00:00:00 +0000</pubDate>
				<guid>https://www.puppeteers.net/blog/modifying-xml-files-with-puppets-augeas-resource/</guid>
				<description>&lt;p&gt;This article is based on an &lt;a href=&#34;https://www.puppeteers.net/blog/xml-tiedostojen-muokkaus-puppetin-augeas-resurssilla/&#34;&gt;earlier article&lt;/a&gt; written in Finnish.&lt;/p&gt;&#xA;&lt;p&gt;Here I describe how to make changes to an XML file with Augeas - a useful approach when managing the whole file as a template is out of the question. The configuration file used as an example, web.xml, belong to &lt;a href=&#34;https://github.com/pwm-project/pwm&#34;&gt;Pwm&lt;/a&gt;, and we intend to set the webapp context parameter.&lt;/p&gt;&#xA;&lt;p&gt;As discussed before it is important to get an idea of how Augeas sees the file before attempting to modify it with Puppet. First we tell which Augeas lens to use (here: Xml) and which file(s) to associate with the Xml lens. This can be done with in one step:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Using Augeas to manage resources in Puppet</title>
				<link>https://www.puppeteers.net/blog/using-augeas-to-manage-resources-in-puppet/</link>
				<pubDate>Fri, 31 Jan 2020 00:00:00 +0000</pubDate>
				<guid>https://www.puppeteers.net/blog/using-augeas-to-manage-resources-in-puppet/</guid>
				<description>&lt;p&gt;This translated from the original Finnish article that is available &lt;a href=&#34;https://www.puppeteers.net/blog/augeas-resurssien-luonnista-ja-debuggaamisesta/&#34;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;The Augeas resource in Puppet allows one to manage parts of a complex configuration file instead of managing the whole file using a template or a static file. For trivial cases stdlib&amp;rsquo;s &lt;a href=&#34;https://github.com/puppetlabs/puppetlabs-stdlib/blob/master/REFERENCE.md#file_line&#34;&gt;file_line resource&lt;/a&gt; may be sufficient. While use of templates or static files is in general more reliable and easier than use of Augeas, the latter is quite useful in many cases. As using Puppet Augeas resource directly is quite challenging, a useful practice is to first make the changes manually with &amp;ldquo;augtool&amp;rdquo; and only then convert the results into Puppet Augeas resources. We use PostgreSQL&amp;rsquo;s pg_hba.conf file here as an example.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
