<?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>Rusty Razor Blade &#187; puppet</title>
	<atom:link href="http://www.rustyrazorblade.com/category/puppet/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rustyrazorblade.com</link>
	<description>Tech Thoughts, Mostly on LAMP - by Jon Haddad</description>
	<lastBuildDate>Wed, 21 Jul 2010 20:42:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>UIS PHP53, DOM Parsing, PHPUnit, Puppet Config Solution</title>
		<link>http://www.rustyrazorblade.com/2010/07/uis-php53-dom-parsing-phpunit-puppet-config-solution/</link>
		<comments>http://www.rustyrazorblade.com/2010/07/uis-php53-dom-parsing-phpunit-puppet-config-solution/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 20:42:03 +0000</pubDate>
		<dc:creator>jon</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[puppet]]></category>

		<guid isPermaLink="false">http://www.rustyrazorblade.com/?p=1126</guid>
		<description><![CDATA[I&#8217;m using PHP53 package from the IUS Community repository.  I&#8217;ve been trying to get phpunit to install, but it gives an error that it needs DOM install.  It took me a little bit to figure this out, but I finally got it working.  What you need is the php53-xml package.  You [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m using PHP53 package from the <a href="http://iuscommunity.org/">IUS Community</a> repository.  I&#8217;ve been trying to get phpunit to install, but it gives an error that it needs DOM install.  It took me a little bit to figure this out, but I finally got it working.  What you need is the php53-xml package.  You can install it using </p>
<pre>
yum install php53-xml
</pre>
<p>or if you&#8217;re using puppet</p>
<pre>
package { ["php53-xml"]:
          ensure => present
        }
</pre>
<p>And finally, to get it to install, I used the below.   I had to make it go to multiple lines to fit on the page but I have it all on 1 line in my puppet script:</p>
<pre>
exec { "pear channel-discover pear.phpunit.de;
pear channel-discover pear.symfony-project.com;
pear install --alldeps phpunit/PHPUnit  ":
          creates => "/usr/bin/phpunit"
 }
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.rustyrazorblade.com/2010/07/uis-php53-dom-parsing-phpunit-puppet-config-solution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Print all Puppet Config Variables</title>
		<link>http://www.rustyrazorblade.com/2010/05/print-all-puppet-config-variables/</link>
		<comments>http://www.rustyrazorblade.com/2010/05/print-all-puppet-config-variables/#comments</comments>
		<pubDate>Fri, 07 May 2010 21:44:03 +0000</pubDate>
		<dc:creator>jon</dc:creator>
				<category><![CDATA[puppet]]></category>

		<guid isPermaLink="false">http://www.rustyrazorblade.com/?p=1092</guid>
		<description><![CDATA[For some reason, I haven&#8217;t found this anywhere in the docs.

puppet --configprint all

It&#8217;ll print all your puppet configuration variables.
]]></description>
			<content:encoded><![CDATA[<p>For some reason, I haven&#8217;t found this anywhere in the docs.</p>
<pre>
puppet --configprint all
</pre>
<p>It&#8217;ll print all your puppet configuration variables.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rustyrazorblade.com/2010/05/print-all-puppet-config-variables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Puppet Stand Alone &#8211; Templates, Configs</title>
		<link>http://www.rustyrazorblade.com/2010/04/puppet-stand-alone-templates-configs/</link>
		<comments>http://www.rustyrazorblade.com/2010/04/puppet-stand-alone-templates-configs/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 01:12:42 +0000</pubDate>
		<dc:creator>jon</dc:creator>
				<category><![CDATA[puppet]]></category>

		<guid isPermaLink="false">http://www.rustyrazorblade.com/?p=1081</guid>
		<description><![CDATA[I&#8217;m working on getting all our servers standardized with puppet to minimize installation and maintenance hassle.  Pretty exciting.
I&#8217;m setting all this up with puppet standalone.  I don&#8217;t think we really gain anything by using the daemons, so it&#8217;s just a simple call to 
puppet site.pp -v
And the changes are applied.
I ran into a [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m working on getting all our servers standardized with puppet to minimize installation and maintenance hassle.  Pretty exciting.</p>
<p>I&#8217;m setting all this up with puppet standalone.  I don&#8217;t think we really gain anything by using the daemons, so it&#8217;s just a simple call to </p>
<pre>puppet site.pp -v</pre>
<p>And the changes are applied.</p>
<p>I ran into a snag today trying to get templates working.  I kept getting the below error when trying to update my test system:</p>
<blockquote><p>Could not find template &#8216;push.erb&#8217; at /etc/puppet/manifests/site.pp:32 on node somename.myserver.local</p></blockquote>
<p>Using strace:</p>
<pre>
[root@somename manifests]# strace -o ~/trace.txt -e trace=file puppet site.pp
Could not find template 'push.erb' at /etc/puppet/manifests/site.pp:32 on
node somename.myserver.local
[root@somename manifests]# tail -n 1 ~/trace.txt
stat("/var/puppet/templates", 0x7fffb7073a30) = -1 ENOENT (No such file or directory)
</pre>
<p>Fortunately there&#8217;s also config tool to check this stuff:</p>
<pre>
[root@somename manifests]# puppet --configprint templatedir
/var/puppet/templates
</pre>
<p>I have everything under /etc/puppet, NOT /var/puppet.  I want the templates directory to reside in there too.  I had a /etc/puppet/puppetd.conf file, and I set the <em>templatedir</em> variable in there under [puppetd] and [puppetmasterd] and [puppet] (I really had no idea which it needed) &#8211; and when that still didn&#8217;t work I tried renaming the config to <strong>puppet.conf</strong>.  These are the lines I needed:</p>
<pre>[puppet]
templatedir=/etc/puppet/templates
</pre>
<p>Thanks to the guys in #puppet on freenode for helping me sort this out.</p>
<p>See the <a target="_blank" href="http://www.puppetlabs.com/">puppet site</a> and <a target="_blank" href="http://docs.puppetlabs.com/">documentation</a> for more info.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rustyrazorblade.com/2010/04/puppet-stand-alone-templates-configs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running Puppet Master on Mac OS X Snow Leopard</title>
		<link>http://www.rustyrazorblade.com/2010/02/running-puppet-master-on-mac-os-x-snow-leopard/</link>
		<comments>http://www.rustyrazorblade.com/2010/02/running-puppet-master-on-mac-os-x-snow-leopard/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 20:24:39 +0000</pubDate>
		<dc:creator>jon</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[puppet]]></category>

		<guid isPermaLink="false">http://www.rustyrazorblade.com/?p=991</guid>
		<description><![CDATA[As of a few hours after this post, I&#8217;ve given up trying to get Puppet Master running on Snow Leopard.  There appears to be an issue with the SSL certificates generated that&#8217;s preventing puppetd from getting it&#8217;s recipes.  There doesn&#8217;t appear to be any way to disable this.  I have switched to [...]]]></description>
			<content:encoded><![CDATA[<p><em>As of a few hours after this post, I&#8217;ve given up trying to get Puppet Master running on Snow Leopard.  There appears to be an issue with the SSL certificates generated that&#8217;s preventing puppetd from getting it&#8217;s recipes.  There doesn&#8217;t appear to be any way to disable this.  I have switched to a CentOS VM, which worked perfectly the first time.  The Unixy underpinnings of my Mac seem to be getting less and less useful every day.<br />
</em></p>
<p>I kept getting the below error when trying to start puppet, even though I had created the user and group through the accounts prefs pane.  Apparently that&#8217;s not good enough for the PuppetMaster to run.</p>
<p>For some reason this figuring this out was a huge pain.   These are the steps I took to getting it installed.  If it looks simple, well, that&#8217;s because it really is.  Most people suggest solving this with MacPorts, but then I still wouldn&#8217;t know how to set up users and groups on Snow Leopard, so I&#8217;d just be screwing myself over in the long run.</p>
<p>Anyways, here&#8217;s the error I was getting:</p>
<pre>err: /File[/var/puppet/rrd]: Failed to retrieve current state of resource:
Could not find group puppet
</pre>
<p>How to solve:</p>
<ol>
<strong>
<li>Install Facter and Puppet</li>
<p></strong><br />
This is easy enough &#8211; Snow Leopard comes with Ruby by default.  Both can be downloaded from the <a href="http://reductivelabs.com/trac/puppet/wiki/DownloadingPuppet">Reductive Labs download page</a>.</p>
<p><strong>
<li>Install Server Admin Tools.</li>
<p></strong><br />
As of this blog entry, you can find them in <a href="http://support.apple.com/kb/DL968">Apple&#8217;s downloads section</a>, although it was kind of a pain to find.</p>
<p><strong>
<li>Enable Remote Management for youself</li>
<p></strong><br />
I was not able to connect to localhost until I enabled this option.  You can control which users have management rights, so I&#8217;m not to concerned here.</p>
<p><strong>
<li>Create user and group for puppet.</li>
<p></strong><br />
Use the GUI tool to create new a puppet user and group.  You should now be able to start the pupptermasterd (yay!)
</ol>
<p>I&#8217;ll expand this post if I realize I forgot anything, or if questions come in.  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.rustyrazorblade.com/2010/02/running-puppet-master-on-mac-os-x-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
