<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ryoku.org &#187; puppet</title>
	<atom:link href="http://www.ryoku.org/tag/puppet/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ryoku.org</link>
	<description>Nerd stuff</description>
	<lastBuildDate>Sat, 04 Sep 2010 21:55:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Fun with puppet and rsyslog</title>
		<link>http://www.ryoku.org/2009/12/fun-with-puppet-and-rsyslog/</link>
		<comments>http://www.ryoku.org/2009/12/fun-with-puppet-and-rsyslog/#comments</comments>
		<pubDate>Sun, 27 Dec 2009 00:48:11 +0000</pubDate>
		<dc:creator>Arijan</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[puppet]]></category>
		<category><![CDATA[syslog]]></category>

		<guid isPermaLink="false">http://www.ryoku.org/?p=179</guid>
		<description><![CDATA[Today I switched from syslog-ng to rsyslog, I am also working with puppet nowadays, I wrote a module for puppet that provides my syslog clients with their certificates (I use TLS to secure the transport) Below is the module I wrote for puppet, the script I wrote to generate certificates for the client machine store [...]]]></description>
			<content:encoded><![CDATA[<p>Today I switched from syslog-ng to rsyslog, I am also working with puppet nowadays, I wrote a module for puppet that provides my syslog clients with their certificates (I use TLS to secure the transport)</p>
<p>Below is the module I wrote for puppet, the script I wrote to generate certificates for the client machine store the certificates into the files area of the module.</p>
<pre class="brush: plain;">
class rsyslog-client {

	package { &quot;rsyslog&quot;:
		ensure =&gt; present,
	}

	package { &quot;rsyslog-gnutls&quot;:
		ensure =&gt; present,
	}

	service { &quot;rsyslog&quot;:
		ensure =&gt; running,
	}

	host { &quot;loghost&quot;:
		ensure =&gt; present,
		name =&gt; &quot;loghost&quot;,
		ip =&gt; &quot;$loghost&quot;,
	}

	file { &quot;/etc/rsyslog&quot;:
		ensure =&gt; directory,
	}	

	file { &quot;/etc/rsyslog/$fqdn.key.pem&quot;:
		owner =&gt; root,
		group =&gt; root,
		source =&gt; &quot;puppet:///rsyslog-client/$fqdn.key.pem&quot;,
		ensure =&gt; file,
		notify =&gt; service[&quot;rsyslog&quot;],
	}

	file { &quot;/etc/rsyslog/$fqdn.pem&quot;:
		owner =&gt; root,
		group =&gt; root,
		source =&gt; &quot;puppet:///rsyslog-client/$fqdn.pem&quot;,
		ensure =&gt; file,
		notify =&gt; service[&quot;rsyslog&quot;],
	}

	file { &quot;/etc/rsyslog/ca.pem&quot;:
		owner =&gt; root,
		group =&gt; root,
		source =&gt; &quot;puppet:///rsyslog-client/ca.pem&quot;,
		ensure =&gt; file,
		notify =&gt; service[&quot;rsyslog&quot;],
	}

	file { &quot;/etc/rsyslog.conf&quot;:
		owner 	=&gt; root,
		group	=&gt; root,
		content =&gt; template(&quot;rsyslog-client/rsyslog.conf.erb&quot;),
		ensure  =&gt; file,
		require =&gt; package[&quot;rsyslog&quot;],
		notify  =&gt; service[&quot;rsyslog&quot;]
	}

}
</pre>
<p>I&#8217;ll post my rsyslog.conf of the central loghost when I have written a decent one.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ryoku.org/2009/12/fun-with-puppet-and-rsyslog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Puppet</title>
		<link>http://www.ryoku.org/2009/12/puppet/</link>
		<comments>http://www.ryoku.org/2009/12/puppet/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 20:09:30 +0000</pubDate>
		<dc:creator>Arijan</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[puppet]]></category>

		<guid isPermaLink="false">http://www.ryoku.org/?p=175</guid>
		<description><![CDATA[I&#8217;m tinkering around with puppet lately. For those who don&#8217;t know what puppet is, it&#8217;s a tool for sys admins. It&#8217;s written in ruby so it&#8217;s quite platform independent. You can use the tool to describe your it landscape, you can write classes and add them to various nodes in your network in a central [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m tinkering around with <a href='http://reductivelabs.com/products/puppet/'>puppet</a> lately.</p>
<p>For those who don&#8217;t know what puppet is, it&#8217;s a tool for sys admins. It&#8217;s written in ruby so it&#8217;s quite platform independent. You can use the tool to describe your it landscape, you can write classes and add them to various nodes in your network in a central place. For example you can write an ssh class where make sure the sshd only accepts public keys and disables keyboard interactive authentication, you can also transfer files with puppet thus distributing all your keys.</p>
<p>The beauty is that puppet will make sure your node complies to the classes assigned to them on specified intervals. When a change is made to your node by a developer or user that conflicts with your central policy puppet will correct it leaving your landscape in a known state.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ryoku.org/2009/12/puppet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
