packaging: modify enigne.conf.d setup files prefix

previously we used '50-' prefix, however there is no reason for setup
default to be loaded so late in change, so now it was modified to
'10-' prefix.

clean all configuration files when engine-clean is executed to avoid
leftovers.

Change-Id: I173faede1f39b87a14ede05c04e0ab4da7e8e5d3
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
pki: fix engine-upgrade config creation

Change-Id: I9af1bbb2be895f4d77d9a060454b72109bb5a382
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
packaging: engine-service: protect configuration files

we need to protect configuration files as database password resides
within.

for some reason jboss changes the permissions of configuration file and
deployment to 0777, enforcing umask of 0027 perform some remedy at the
price of having logs not world readable as well, so it is not a
solution.

luckily, jboss does not modify the directory in which configuration file
resides, so we split the configuration directory to own directory and
set proper permissions.

Change-Id: Ie76e5ffcdccd8c3a0bedbb9ce9bd56e146eeccd9
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
db: drop the obfuscation of database password

full up the /etc/ovirt-engine/engine.conf.d/10-setup-database.conf
with all database parameters as distinct parameters, to ease future
read.

Change-Id: I1da760e32ddef238324fe9889c1675de518d0c64
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=958532
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
packaging: engine-setup re-write using otopi

Change-Id: I4d5e3ac7927802326e324c9b98ada75b421638aa
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
Signed-off-by: Alex Lourie <alourie@redhat.com>
otopi: remove password encryption

Change-Id: I1bd4cfaac20c90afa53a03acbfe7ff616bf8a9b8