Adding tests for header parsing
Fix newline creation that was breaking cloud-init usge of bash script
change SUSE from postinst to chroot scripts

"postinst" for SUSE means, these scripts get executed after the first
reboot of the host. If a host is configured to boot from PXE before
HDD, it will go into an install loop, because the built status is never
being set in foreman.

To get everything working, resolv.conf has to be copied into the
installed system image and removed before the host is booting the first
time, otherwise SUSEConfig (netconf) will not touch /etc/resolv.conf,
which is leading NTP configuration into an error.

While here, replace wget with curl (included in SUSE's base system) and
remove debug parameters, as debug=true was made default long time ago.
preseed: always enable puppet agent explicitly

In newer non-puppetlabs packages coming with Debian and Ubuntu the
puppet agent is disabled by default.

Also, /etc/default/puppet is not delivered with the packages anymore, so
check for it's existence before trying to edit it.
Renaming templates according to Foreman

See here:

https://github.com/theforeman/foreman/blob/develop/db/seeds.d/07-config_templates.rb
Add in initial generic cloudinit userdata template
fixes #1809 - templates for freeipa registration
redhat_register snippet - fix enabling repos

Because of a bug in RHEL 6.4 [1], repositories specified in
`subscription_manager_repos` parameter didn't get enabled when using
redhat_register template snippet. The `yum-config-manager --enable
...` command only works when `/etc/yum.repos.d/redhat.repo` file
already exists. But `subscription-manager register ... --auto-attach`
command will not create the repo file. We need to run
`subscription-manager repos --list` to trigger creation of the repo
file. In RHEL 6.5 the bug [1] has been fixed.

This workaround is related to Foreman BZ "[RFE] Use
subscription-manager in kickstart template, not rhnreg_ks" [2].

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1008016
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1039910
Add templates for FreeBSD (mfsBSD's zfsinstall)
Add finish script for EL/Fedora imaging
Add Fedora 20 to compatible OSes
Only check for @host.otp when Foreman supports it
Missed an instance of @host.otp
Set hardware clock to UTC in kickstarts
Add handling for subscription-manager pools

Previously, the redhat_register snippet only ran
--auto-attach with subscription-manager.  Now, it
will run with --auto-attach, but also attach a
specific pool as specified by subscription_manager_pool.

Signed-off-by: Mike Burns <mburns@redhat.com>
Replace realm respond_to with checking for enc parameter
Update conditions for realm join in finish template