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