]> gitweb.fluxo.info Git - puppet-virtual.git/commitdiff
Setting up a blank /etc/hosts at build_vserver
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 21 Jun 2010 00:09:20 +0000 (21:09 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 21 Jun 2010 00:09:20 +0000 (21:09 -0300)
files/vserver/build_vserver

index a74ea5fd1ff1024b4c926f4a69f5bb73aa00e248..11d38ed836857a79eaaf059772bfe988eb80e70e 100644 (file)
@@ -25,8 +25,9 @@ cp /etc/apt/{preferences,sources.list} $TARGET/etc/apt/
 
 # this is needed so puppet can find the puppetmaster and creates the right
 # certificate
-grep -v $NAME /etc/hosts > $TARGET/etc/hosts
-echo "127.0.0.1 $NAME" >> $TARGET/etc/hosts
+#grep -v $NAME /etc/hosts > $TARGET/etc/hosts
+#echo "127.0.0.1 $NAME" >> $TARGET/etc/hosts
+echo "127.0.0.1 $NAME" > $TARGET/etc/hosts
 #mkdir -p $TARGET/var/lib/puppet/modules/dbp
 #cp /var/lib/puppet/modules/dbp/puppet_current.deb $TARGET/var/lib/puppet/modules/dbp/