Everything is a Freaking DNS problem - shebang http://127.0.0.1:8080/blog/taxonomy/term/1426/0 en Puppet broke my Xen http://127.0.0.1:8080/blog/puppet-broke-my-xen <p>Actually it didn't , but now I got your attention.<br /> We just adopted the use of adding headers to all of our files that are managed by puppet so people will know not to touch it</p> <p><div class="geshifilter"><pre class="text geshifilter-text" style="font-family:monospace;"><ol><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> file {</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> &quot;/etc/xen/scripts/network-custom-vlan-bridges&quot;:</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> owner =&gt; &quot;root&quot;,</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> group =&gt; &quot;root&quot;,</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> mode =&gt; &quot;0755&quot;,</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> content =&gt; template(</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> &quot;headers/header-hash.erb',</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> &quot;xen/co-mmx-network-custom-vlan-bridges.erb&quot;);</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> }</div></li></ol></pre></div></p> <p>All worked nice however upon bootstrapping our Xen host the bridges stopped working .. running the network-custom-vlan-bridges script manually solved everything and created the appropriate bridges. But at boottime it didn't.. </p> <p>I added some debug info to the script and figured it never got executed at boot time.</p> <p>Turns out that when I removed the headers Xen actually does configure the bridges at boot time, Xen probably checks for a shebang at the beginning of the file.</p> <p>Putting the header at the end of the file therefore solved the problem. ,</p> http://127.0.0.1:8080/blog/puppet-broke-my-xen#comments devops puppet shebang xen Sat, 30 Oct 2010 14:35:01 +0000 Kris Buytaert 1019 at http://127.0.0.1:8080/blog