Streamline upstart scripts in os-svc-daemon

Best practice is to use start-stop-daemon rather than sudo, as sudo will
apply user-centric pam limits and create a wtmp entry. Also there is no
need for a script stanza, as we are only execing one command.

Change-Id: I0c2f12536b56d90fd43ab40e74424350efcc0b61
Clearly mark unaudited config templates as such.

Change-Id: I130b0874b2efad1345bb5449bce001985c477960
Enable use_namespaces setting for quantum agents.

Change-Id: I060c381cc9dc858a979e072b78bde6a55ad69472
Disable tunneling in quantum-ovs.

Quantum-ovs was continually re-creating interfaces
every second or so, because it was configured to use tunneling,
and the default version of OVS included with ubuntu does
not support tunneling.

Change-Id: I1246181c4b9c96ebe2795b337454dc8ddcb35e8f
Bring os-svc-install element docs up-to-date.

Change-Id: Ia0547de1a899359994706d1607ed19e5ad5c056f
Run os-config-applier using os-refresh-config.

There's no need to run os-config-applier at any time except when
os-refresh-config is in its configure state.

Change-Id: Id9758294c60469a976b61c68fc26d9b83130599a
Migrate data into MySQL from bootstrap.

Use Heat Metadata to specify host and credentials to pull whole database
snapshot and setup Replication. Also include root credentials for use after
the snapshot has been applied.

Change-Id: Ie3aa92463d28db54a523f520c2b4cdfb528acf9d
Do not require arguments for os-svc-daemon.

They are not actually required, so allow os-svc-daemon to be called
without them.

Change-Id: I62c2887d48e4173005c54c9cab4ecd6aff8069a1
Remove strict sql_mode setting which breaks apps.

Strict sql_mode settings are very application specific, many will simply
not work with them. This setting was likely inherited from some other
production MySQL config file and is not appropriate for a generic
configuration. Specifically, this broke the MySQL package maintainer
scripts.

Change-Id: I068fcc7b3c770541d3d1ecfb372384750f182584
Fix mysql migration script to handle errors.

Errors in mysqldump would have been missed due to not having pipefail
set. Also there was a type-o in the invocation of mysqldump that was
going undetected, that has been repaired. Finally we should not pass
--master-data if we don't have slave credentials, as the master data,
even if provided, is useless without a valid slave user/pass.

Change-Id: I0f80af34c747f465250ef17fae4a44dac919c9cd
Store build-time settings

This will write two files in /etc/ that contain the environment and
command line arguments used in the creation of an image. This should
assist with later efforts to repeat the creation of an image.

Change-Id: Icdbe6693380bed6c406feee10d2cb1a88a992932
remove use-config-templates from cinder-config:

use-config-templates has been deprecated, and must
not be used by the cinder element.

This change relies on os-refresh-config instead.

Change-Id: Ie8594fa99d05032fa0e7a425a9dd278910b80cab
TO PROPOSE: Touch a first-boot.status file:

After running first-boots scripts, both to indicate
that the scripts have completed, and also to record
the exit status.

This is useful for automated testing:
  - tests can wait until first-boot scripts have
    completed before commencing testing
  - tests can abort further testing if first-boot
    scripts have failed.

Change-Id: Idec63de858c15def8c621056232aad45eab225e8
Add a horizon element.

Change-Id: Ie585a7ea63ba5b5b8b064df738e9616827e913fa
WIP: nova-virt element

Change-Id: I37eef2d806c0c773e14bb868ea5ec8cfd262e228
remove database-initialization from openstack-db:

Database initialization is different for bootstrap node,
vs. first baremetal database node, so database init,
should happen outside the openstack-db element.

Change-Id: I25dcd2e8e5ffa1a11128785a73f6a29c49e6f174
Add 'boot-elements' script:

A script which accepts as arguments a list of elements,
and builds an image and boots it with virsh.

Change-Id: Id9e5174e2521143ea9a5aee186ff76b73d1b39ec
ensure sshd is correctly configured for ubuntu images.

Change-Id: Icec91637ca9040f18e5b551251ddc249b3bc6b14
DO NOT MERGE: tim element

Change-Id: I2d8927a391306b21cac0a913153dbd3fc3c4ace4
A self-contained one-node baremetal openstack.

The bootstrap element is a self-contained, baremetal openstack.
Upon first boot, it will initialize itself with default keystone
users, nova flavors, etc.

Change-Id: Ib0c411627154a3d666f74513c6b8edfbfbf6c07e