<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Managing vhosts on Ubuntu with puppet</title>
	<atom:link href="http://blogs.ubuntu-nl.org/dennis/2008/11/23/managing-vhosts-on-ubuntu-with-puppet/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.ubuntu-nl.org/dennis/2008/11/23/managing-vhosts-on-ubuntu-with-puppet/</link>
	<description>Bastard Operator For Life</description>
	<pubDate>Sun, 21 Mar 2010 13:17:58 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Dick Davies</title>
		<link>http://blogs.ubuntu-nl.org/dennis/2008/11/23/managing-vhosts-on-ubuntu-with-puppet/#comment-122244</link>
		<dc:creator>Dick Davies</dc:creator>
		<pubDate>Tue, 16 Jun 2009 19:45:59 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.ubuntu-nl.org/dennis/?p=258#comment-122244</guid>
		<description>Thanks Dennis.

Having a bit more experience now, seems to me definitions are going to be more powerful than
templates for vhosts. Thanks for the head start.</description>
		<content:encoded><![CDATA[<p>Thanks Dennis.</p>
<p>Having a bit more experience now, seems to me definitions are going to be more powerful than<br />
templates for vhosts. Thanks for the head start.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis Kaarsemaker</title>
		<link>http://blogs.ubuntu-nl.org/dennis/2008/11/23/managing-vhosts-on-ubuntu-with-puppet/#comment-120169</link>
		<dc:creator>Dennis Kaarsemaker</dc:creator>
		<pubDate>Sun, 10 May 2009 20:04:21 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.ubuntu-nl.org/dennis/?p=258#comment-120169</guid>
		<description>I use puppet templating for other bits, but not here as many vhosts have special per-vhosts things, making it more convoluted to template than it is to write manually.

Here's one example: network config
auto lo
iface lo inet loopback

&#60;%
i = 0
eth0_addresses.each do &#124;address&#124;
-%&#62;
auto eth0&#60;% if i != 0 %&#62;:&#60;%=i-%&#62;&#60;% end %&#62;
iface eth0&#60;% if i != 0 %&#62;:&#60;%=i-%&#62;&#60;% end %&#62; inet static
address &#60;%= address %&#62;
netmask 255.255.255.240
gateway 82.94.254.97

&#60;% i+=1; end -%&#62;
&#60;%
i = 0
eth1_addresses.each do &#124;address&#124;
-%&#62;
auto eth1&#60;% if i != 0 %&#62;:&#60;%=i-%&#62;&#60;% end %&#62;
iface eth1&#60;% if i != 0 %&#62;:&#60;%=i-%&#62;&#60;% end %&#62; inet static
address &#60;%= address %&#62;
netmask 255.255.255.0
&#60;% if i == 0 &#38;&#38; address != "10.42.4.1" -%&#62;
up route add -net 10.42.0.0/16 gw 10.42.4.1
&#60;% end -%&#62;

&#60;% i+=1; end -%&#62;</description>
		<content:encoded><![CDATA[<p>I use puppet templating for other bits, but not here as many vhosts have special per-vhosts things, making it more convoluted to template than it is to write manually.</p>
<p>Here&#8217;s one example: network config<br />
auto lo<br />
iface lo inet loopback</p>
<p>&lt;%<br />
i = 0<br />
eth0_addresses.each do |address|<br />
-%&gt;<br />
auto eth0&lt;% if i != 0 %&gt;:&lt;%=i-%&gt;&lt;% end %&gt;<br />
iface eth0&lt;% if i != 0 %&gt;:&lt;%=i-%&gt;&lt;% end %&gt; inet static<br />
address &lt;%= address %&gt;<br />
netmask 255.255.255.240<br />
gateway 82.94.254.97</p>
<p>&lt;% i+=1; end -%&gt;<br />
&lt;%<br />
i = 0<br />
eth1_addresses.each do |address|<br />
-%&gt;<br />
auto eth1&lt;% if i != 0 %&gt;:&lt;%=i-%&gt;&lt;% end %&gt;<br />
iface eth1&lt;% if i != 0 %&gt;:&lt;%=i-%&gt;&lt;% end %&gt; inet static<br />
address &lt;%= address %&gt;<br />
netmask 255.255.255.0<br />
&lt;% if i == 0 &amp;&amp; address != &#8220;10.42.4.1&#8243; -%&gt;<br />
up route add -net 10.42.0.0/16 gw 10.42.4.1<br />
&lt;% end -%&gt;</p>
<p>&lt;% i+=1; end -%&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick Davies</title>
		<link>http://blogs.ubuntu-nl.org/dennis/2008/11/23/managing-vhosts-on-ubuntu-with-puppet/#comment-120168</link>
		<dc:creator>Dick Davies</dc:creator>
		<pubDate>Sun, 10 May 2009 19:51:34 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.ubuntu-nl.org/dennis/?p=258#comment-120168</guid>
		<description>Thanks for the tips, I'll be cribbing heavily from this while doing our LAMP stack configs. 

Just curious : is there any reason you're not using Puppets templating? Seems like a powerful way to have one config file and turn on bits conditionally depending whether you need SSL or not.

Is it just you'd rather use Python than (E)Ruby?</description>
		<content:encoded><![CDATA[<p>Thanks for the tips, I&#8217;ll be cribbing heavily from this while doing our LAMP stack configs. </p>
<p>Just curious : is there any reason you&#8217;re not using Puppets templating? Seems like a powerful way to have one config file and turn on bits conditionally depending whether you need SSL or not.</p>
<p>Is it just you&#8217;d rather use Python than (E)Ruby?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DEEPTHI</title>
		<link>http://blogs.ubuntu-nl.org/dennis/2008/11/23/managing-vhosts-on-ubuntu-with-puppet/#comment-110678</link>
		<dc:creator>DEEPTHI</dc:creator>
		<pubDate>Mon, 15 Dec 2008 16:49:38 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.ubuntu-nl.org/dennis/?p=258#comment-110678</guid>
		<description>beautiful post i am gonna try this one thanx...........alot</description>
		<content:encoded><![CDATA[<p>beautiful post i am gonna try this one thanx&#8230;&#8230;&#8230;..alot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://blogs.ubuntu-nl.org/dennis/2008/11/23/managing-vhosts-on-ubuntu-with-puppet/#comment-108871</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Mon, 24 Nov 2008 20:44:09 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.ubuntu-nl.org/dennis/?p=258#comment-108871</guid>
		<description>Great, great post.  Appreciate any and all stuff about Puppet.  Trying to use it myself, and hoping to overcome the initial learning curve.</description>
		<content:encoded><![CDATA[<p>Great, great post.  Appreciate any and all stuff about Puppet.  Trying to use it myself, and hoping to overcome the initial learning curve.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
