puppetlabs/puppet-acceptance — pull request #143 by justinstoller (2012-02-11 00:12:13+00:00)
Title: Previously the add master to /etc/hosts step would move all lines

except for those that contained the hostname of the master. If
someone had an /etc/hosts file like this:

127.0.0.1 localhost localhost.localdomain ubuntu-alpha
...snip...

It would filter out the localhost line and cause odd errors later
on. This changes the early step to filter out only the lines that
we add (#{ip} #{hostname})

Signed-off-by: Justin Stoller