add cloud-ptf channel to default autoyast profile

(cherry picked from commit ff858b684f01c1f6a91dc03d8beee422060b049c)
add reboot_handler, to be able to trigger reboots

This is needed for being able to switch to other kernels, e.g. when
deploying xen.

(cherry picked from commit 92faa93d6117e68611934d5260f3365f6b52fec4)
make hostname handling more robust

- set domain name correctly in autoyast.xml.erb
- make sure to get correct hostname set in /etc/HOSTNAME for nodes
- wait for hostname in crowbar_join.sh

(cherry picked from commit 1778c062d168f02e04ed660f73c1e3c3e8a2051f)
added timezone to the autoyast file and set it to UTC

(cherry picked from commit d10ed7a86fb77594542ed500f31319b72ad1cfc4)
Allow to provide additional SSH authorized keys.

Admins may want to get onto their machines by other means than crowbar.
This isn't perfect yet, access keys are stored in a hash in the "crowbar"
data bag, so their insert order into ~/.ssh/authorized keys is random :-/

One would have to change the schema to use an array instead. This should pose
no real issue as the has keys (node names) aren't actually used.

(cherry picked from commit b889fc0a2b2e6939a75211f22e0592589423bf55)

Conflicts:
	chef/data_bags/crowbar/bc-template-provisioner.json
Install packages with 'action :upgrade'

(cherry picked from commit b2e4e91e91c296c5377c0da08916d283342ef874)

Conflicts:
	chef/cookbooks/provisioner/recipes/setup_base_images.rb
Remove hard-coded root password from autoyast profile (bnc#775068)

It's possible to specify a root password hash for the client nodes
in the provisioner proposal now.

(cherry picked from commit a46a38380ef1dd1ce2a87f572ef01e9fccb91618)

Conflicts:
	chef/cookbooks/provisioner/recipes/setup_base_images.rb
(autoyast template population moved to update_nodes.rb recipe for Pebbles)
Install suse-cloud-release and supportutils-plugin-susecloud via autoyast.

This allows us to identify and troubleshoot all nodes managed by Crowbar.

(cherry picked from commit f1a9dbb4897b98b430d67c40a5375261b8a970dd)
speed up reboot

(cherry picked from commit 1e61cd728e60032f56bc7c520635954d8980e5b2)
fix logging in autoyast.xml.erb

(cherry picked from commit 60bcc2b5dc6372311e312d5f5d0dc177bb31866f)

Conflicts:
	chef/cookbooks/provisioner/templates/default/autoyast.xml.erb
fix logging location for crowbar_join to be consistent

(cherry picked from commit 08fc3561d18013a18b5777c079d23e881649fdfb)
disable final reboot

this prevents the database proposal from failing in mkcloud

(cherry picked from commit de6dcc873d43c5ee1b11f16831348b6a659672a0)
adding final repos to autoyast.xml.erb

(cherry picked from commit adc123aeb565f41be9d23edfed5a6b06ddc75157)
(changed 1.0 repos -> 2.0)
remove old DHCPDIR, leftover from merge

(cherry picked from commit 4e4a3138a881b68a213330361742cbac4d73194c)

Conflicts:
	updates/control.sh
Make sure to fix things if hte final step in join recovery is successful.

Signed-off-by: Christoph Thiel <cthiel@suse.com>
(cherry picked from commit 740fced9bf41ef7cbcb064b23c78d8209bc0e672)

Seems to have been missed from backporting from trunk to Pebbles.
add logging output

(cherry picked from commit ab67409b9ea1eb1b26cd01f75c2bc79b68ee81b7)
Prevent accidental infinite recursion in control.sh

If something goes wrong with $HOSTNAME calculation in start-up.sh,
we need to avoid source'ing this script, which would cause infinite
recursion and eventually a segfault from bash.

https://bugzilla.novell.com/show_bug.cgi?id=778124
(cherry picked from commit 2ced30fd3c05f6a7a77aa753c70258be89dcce52)
Rebuild /root/.ssh/authorized_keys from scratch

This ensures that removal of a key from the proposal will be
propagated to removal from /root/.ssh/authorized_keys.  Another
side-effect is that any keys manually added to authorized_keys will be
automatically removed by Chef.

https://bugzilla.novell.com/show_bug.cgi?id=782525
(cherry picked from commit 7ce5f293babeec718ee07e32c95cdccca76e450a)
Remove unnecessary removal of /root/.ssh/authorized_keys before reconstruction

This introduced a tiny race window in which /root/.ssh/authorized_keys
did not exist.  Chef's template resource will happily overwrite existing
files when the action is :create, so this delete was unnecessary.

(cherry picked from commit 8ba65522400d4834fd013693a0cbc824602f8d36)
explicitly do not run chrooted (bnc#787344)

run as dhcpd user for enhanced security

(cherry picked from commit 323b98741f655963a2ac96876b042ee6174e4b3e)