openshift.ks: Optionally register with RHN/RHSM

configure_rhn_channels, configure_rhsm_channels: Only register with RHN or
RHSM if credentials are provided.

configure_rhsm_channels: Only attach to a pool if a pool id is provided,
and skip any pools that are already attached.

validate_preflight: Allow the installation to proceed even if the rhn or
rhsm installation method is being used without any credentials provided,
as long as the host is already registered, and also allow installation
to proceed with the rhsm method even if no pool id is provided as long
as the required repositories are already available and credentials are
not provided (providing credentials would imply that we should register,
and re-registering would remove the existing repositories).

These changes allow the user to register with RHN or RHSM before running
the script and then use the rhn or rhsm installation method to have the
installation script configure channels, priorities, and excludes and
validate the configuration.

This commit fixes bug 1056906.
<install> note that broker auth must be synchronized
Merge pull request #297 from sosiouxme/enterprise-2.0

comments-only change so no QA needed
reset_deployment.rb: added "clean out" script

This script enables an administrator to quickly reset the
deployment back to zero after putting it through its paces.
https://lists.openshift.redhat.com/openshift-archives/dev/2014-January/msg00191.html
Merge pull request #277 from Miciah/openshift.ks-make-rhsm-rhn-registration-and-pool-attachment-optional

openshift.ks: Optionally register with RHN/RHSM
<install> Set default BIND key algorithm to MD5

Change the default settings for CONF_BIND_KEYALGORITHM and
CONF_BIND_KEYSIZE to HMAC-MD5 (instead of HMAC-SHA256) and 512 (instead of
256), respectively, so that the DNSSEC key generation, BIND configuration,
and dns-nsupdate plug-in configuration will use HMAC-MD5 (instead of
HMAC-SHA256) by default.

OpenShift Enterprise 2.0 only supports the HMAC-MD5 algorithm for nsupdate.

This commit fixes bug 1066171.
Merge pull request #299 from Miciah/bug-1066171-change-default-bind_keyalgorithm-setting-to-HMAC-MD5

<install> Set default BIND key algorithm to MD5
openshift.ks: enable registration options

https://bugzilla.redhat.com/show_bug.cgi?id=1056295
Support registration to Red Hat Satellite (and more!) in openshift.ks
Merge pull request #301 from sosiouxme/reg-opts

enable user to specify CONF_RHN_REG_OPTS
<install> Write EOL to /etc/ssh/sshd_config

In the configure_sshd_on_node function in openshift.ks/openshift.sh, be
sure to write the \n EOL marker when adding the AcceptEnv setting.

After commit 24d469fd2f2aa0bcc0d430f7ee148598fdb29e23,
configure_sshd_on_node writes a \n to sshd_config _before_ the line that
the function adds, for the contingency that sshd_config already has an
incomplete line lacking the EOL marker.  However, after that commit, the
function wasn't writing the \n _of_ the line that the function adds.  This
commit makes the function write both \n EOL markers.

This commit fixes bug 1068649.
openshift.ks: Only modify ssl.conf if applicable

configure_hosts: Only modify /etc/htttpd/conf.d/ssl.conf if we are
installing the broker or node components.

This commit fixes bug 1069463.
Merge pull request #305 from Miciah/bug-1069463-openshift.ks-only-modify-ssl.conf-if-applicable

openshift.ks: Only modify ssl.conf if applicable
Merge pull request #302 from Miciah/bug-1068649-write-EOL-to-etc-ssh-sshd_config

<install> Write EOL to /etc/ssh/sshd_config