Idiomatic -d (debug) flag

It's common for a flag's presence to signal a feature is enable and
it's absence to signal disabled. This patch switches '-d true/false'
to simply '-d' or no '-d'.

Change-Id: Iac17cb059823e91bcb27f59757e4f91bb8d0b910
Refactor platform detection code

This separates the platform detection from dependency installation to
allow for the $platform to be used in the input validation section of
the code.

Change-Id: I92062b115f0125b83719bde51fc5edb7adba4224
Use archive.apache.org instead of www.apache.org

The Apache Hive project has taken hive 0.11.0 down from
www.apache.org. However, it and newer versions are available from
archive.apache.org. This change uses archive over www.

Change-Id: I777c13b70bbc142e31d17fd6c8653aa1960ba532
Merge "Idiomatic -d (debug) flag"
Formally open Juno dev

Change-Id: Icc126e2e1a2c5640a4a55ad5b1ec3ecda2ded780
Merge "Refactor platform detection code"
Detect selinux passwd setting bug

If on a Fedora, CentOS or RHEL system w/ SELinux enabled (even
permissive), bug 1292614 will be hit. This change stops the user
up front instead of deep into the image creation.

Change-Id: I324994c239a75caf9174fe01a0aff08baa03fbf5
Add -d option to vanilla images

Change-Id: I79e60b26747c62d50940b4387ad823ea6fca5220
Adds SSH support to HDP plain VM image

This patch adds the "ssh" element to the list of elements
  used for the generation of the HDP "plain" image.  This image
  does not contain any HDP installed packages, but is configured
  for deploying HDP Hadoop clusters.

This patch also adds the disable-firewall element to the list of
  elements for the generation of the HDP "plain" image.  Recent testing
  showed that the plain image was not supporting cluster startups
  since Apache Ambari requires that the iptables service be turned
  off for nodes in an HDP cluster.

Closes-Bug: #1306726

Change-Id: I3924232495b1f11c61b613d0fa7c6ac669d1b8b8
correcting the elements sequence for centos+hdp+plain+debug

When creating a centos image with the hdp plain plugin and with debug
mode on the root password is not set correctly. This change fixes the
element sequence.

Changes
* renaming the elements sequence variable for centos hdp plain images

Change-Id: I9e6a46c64cf6239fd6635c2e5673b258a0c4a6fd
Merge "correcting the elements sequence for centos+hdp+plain+debug"
Better setup for custom Java installation

Fix bug #1305904 (ownership of java files)
Add Java to the PATH and setup the JAVA_HOME env variable
Setup alternatives for java executables

closes-bug: #1305904

Change-Id: I18b87b4eac44b8a5f303dc5d06f268506c7ed300
Merge "Adds SSH support to HDP plain VM image"
Merge "Better setup for custom Java installation"
Merge branch 'master', remote-tracking branch 'openstack/master'