Turns off ambari and hadoop2 services for initial VM boot in HDP images

This patch resolves a minor bug in the HDP image generation scripts.

Some warning and error messages show up in the boot.log for VM
  instances based on the HDP images (v1.3.2 and v2.0.6).  The
  warnings involve the ambari-server startup, as well as the
  startup of some Hadoop 2 services in the v2.0.6 image.

The basic problem is that these services should not be starting
  upon the first boot of the image, since the HDP plugin has
  not yet configured the VM instances for a cluster startup.

The ambari-server and ambari-agent services have been turned off
  by default in this patch, by using the chkconfig command.  This keeps
  the ambari services from starting at first boot. This is desired,
  since the Ambari services don't have the configuration required
  during initial boot to function properly.

The same issue occurs with the Hadoop 2 services, and these are
  turned off using the same chkconfig mechanism.

Closes-Bug: #1317270

Change-Id: I5fdd45a41b2e6bb8f9b632594bbd6ee538e09512
Modifies java element to support custom install location

This patch modifies the common "java" element in order to allow
  users to specify the directory that will contain the JDK install.
Currently, the java element assumes an install path of "/usr/java".
  Some distributions, such as HDP, use a different directory location
  for the JDK install.
This patch introduces a new environment variable, JAVA_TARGET_LOCATION,
  that can be set in order to override the location where the JDK
  will be installed.  This current patch adds this support for .bin
  install types only.
This patch also updates the README file to provide more information
  about the JAVA_TARGET_LOCATION environment variable.
Once this patch is approved, I plan on submitting subsequent patches to
  use the "java" element in the HDP image generation scripts, rather than
  the custom scripts used by hadoop-hdp currently.

Change-Id: Ia0d26baed5e32d05699e71b9ee7ce489cd5a11c9
Updates SELinux configuration in HDP images

Recent changes to the core diskimage-builder elements
  have caused some previous warnings/errors that were silent
  to surface.  These errors are breaking the generation of the
  CentOS HDP images.
The failure is caused by the fact that the HDP images did
  not have all the correct configuration in place to disable
  SELinux.  Disabling SELinux is required for the HDP platform.
This patch modifies the dependencies for the hadoop-hdp
  element in order to include a dependency on the
  disable-selinux element from diskimage-builder.
This patch removes the original SELinux configuration commands
  for HDP, since these were found to be incorrect.
This patch adds the disable-selinux element to the HDP
  plain image as well.
This patch also includes some element refactorings, moving
  some elements into element-deps for hadoop-hdp, since these
  are required elements for HDP.

Change-Id: Ie6e26b397d022ea813c5022071bf3752ab39fa82
Modify whole java element to support JAVA_TARGET_LOCATION

This patch modifies the common "java" element in order to allow
users to specify the directory that will contain the JDK install
and this support is for all install types now.

Change-Id: I5ba04ba5e22c7f5f5a6455669bbe8509c042a893
Merge "Updates SELinux configuration in HDP images"
Updates hadoop-hdp to use common java element

This patch updates the hadoop-hdp element to use
  the common "java" element.  Previously, the
  hadoop-hdp element installed the JDK directly.

This patch removes the older JDK installation script
  from hadoop-hdp.

This patch adds the JDK-related environment variables
  needed to configure the java element to install the
  JDK in the location required by HDP.

This patch adds the "java" element as an element
  dependency of hadoop-hdp.

Change-Id: I411f695520a42ba521c7439a43ad708c501d680f
Merge "Modify whole java element to support JAVA_TARGET_LOCATION"
Unset CentOS image parameters that affect on another images

The parameters DIB_CLOUD_IMAGE, BASE_IMAGE_FILE and DIB_IMAGE_SIZE
should be unset after centos image creating, because these parameters can be
used for building another images (for example, when we build all images)

Change-Id: I0e63f544ac2f3cb9fcf00cafb1d897514bde9554
Closes-bug: #1324585
Use stable apache urls in spark elements

Closes bug #1324590

Change-Id: I256cd476cd69e8b088620c6400ddbe51f0959a78
Merge "Unset CentOS image parameters that affect on another images"
Adding options to control DIB repo branch

* Added the -m option
* Added detection of variable DIB_REPO_BRANCH
* Added tag 0.1.17 as default branch of DIB repo
* Added exit error if both DIB_REPO_BRANCH and -m are specified

Implements: blueprint dib-repo-branch-option
Change-Id: I44f0689f7844085c39b5560c65024b68c3424ad8
Merge "Adding options to control DIB repo branch"
Merge remote-tracking branch 'openstack/master'