packaging: setup: additional host support

- allow to specify different host name for adding the host
  to the engine
- allow to add an additional host using the answer file
  generated installing first host, just changing the host id.
- generate hosted-engine.conf
- vm.conf still need to be copied by hand from first host

Change-Id: Ibbfd842cb54bcb5bea6bd8bbca771202c6a1c2c9
Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
bin: extended hosted-engine capabilities

added --vm-shutdown for gracefully shutdown the VM
modified --vm-stop for stopping the VM calling destroy,
renamed to --vm-poweroff
added --connect-storage for connecting the storage domain
added --start-pool for starting the storage pool

If the storage is not connected and the pool is down
the VM will not start due to missing volume.
Then you have to destroy the VM
and start the pool before starting again the VM.

--connect-storage and --start-pool are separated
allowing to run the VM without the pool if VDSM
supports it.

Change-Id: Iea0755188efe0dfe1f61da762d3b0f290b8efd2c
Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
bin: added --console command

Added --console switch to hosted-engine command.

Refactored some plugins for having all required
variables inside the configuration file.

Fixed also some issues found configuring the vm
for using spice.

Change-Id: Iadbcb35a07d59ed8bfc5a998ae6dbc723705eafd
Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
packaging: setup: support vdsmd not encrypted connection

support vdsmd running with ssl support disabled.

Change-Id: Idc5f2c6b69ab2899c100a35581412d686b1f5254
Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
packaging: setup: added gateway configuration

added gateway configuration for allowing HA check
for network connectivity.

Change-Id: I0dcc0cef9241312411ed1a67b1accc60031a07d4
Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
packaging: setup: support HA services

After first host addition ask the user to shutdown
the VM and start HA services moving the VM control
to the HA daemon when the VM is down.

Change-Id: I9007d229da2fb8dec52361a011995a1de6c2db7f
Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>