packaging: use simplified template when handling ovirt-engine-proxy.conf.in

Change-Id: I7031884c602e2bd5dfffb34b42e5925cf2f39afa
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
packaging: less intrusive method for httpd integration

CURRENT IMPLEMENTATION

ovirt-engine proxy all requests, disallow any additional application to
be hosted on the same web server.

NEW IMPLEMENTATION

proxy only ovirt-engine URI prefixes. By default ovirt-engine is at:

  http://host/ovirt-engine

Optionally add redirect from / to /ovirt-engine during setup.

SIDE EFFECTS

In order to handle redirects of 404.html, we require some valid URI to
redirect into, as a result the welcome page of root will not be
index.html but ovirt-engine.html, same for style.css which was renamed
to ovirt-engine-style.css

Change-Id: I89a47a99e28de0905183dc502cb0b35c80f77e6d
Signed-off-by: Alex Lourie <alourie@redhat.com>
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
packaging: setup plugins should not be executable

Change-Id: I4d92a3af2d071780a8ec9f19e4c6e7debf6074d0
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
packaging: build: support subst more than once in line

Change-Id: Ie91ea6bb2765825c022ba699ddf1d7660298265f
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
packaging: engine-service: do not clean environment

the init system may put important variables in environment.

add LC_ALL as java is effected by AC_CTYPE per defaults of string
conversions, as if it is set by init it will effect us.

in practice we should only set LC_CTYPE or use jnu.encoding, when
we are sure that no default locale is used for conversions within
application.

Change-Id: Ia8231b343574df83e65c55d9ffa75698a3f2d692
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
packaging: engine-service: remove unused tmpfiles config

Change-Id: I81175c21f018be180157ffcaadef1dd28ee8801c
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
packaging: engine-service: move service to backend subpackage

Change-Id: I3df9c0f0d221d883c7a49b0c7f953a2ffde211c0
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
packaging: engine-service: fix systemd packaging per fedora requirements

Change-Id: I84d290d2cc389450be183cd85fb91ee1e58e4e9a
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
packaging: engine-service: major cleanup

Last patch in series of engine-service, after all core issues merged
into existing implementation, this introduce python only rework and
cleanups.

 1. Removal global variable.
 2. Previous patch already use python subprocess instead of direct exec.
 3. Use python logging instead of direct syslog calls.
 4. Add debug log.
 5. Add debug parameter.
 6. Add gettext support.
 7. Modular functional.
 8. Remove one time used variables.
 9. Remove replication of configuration variable into local variables.
10. Remove dead code.
11. pyflakes free
12. pep8 complaint.

Change-Id: Iea45e8131190f41171e937699ec2e261939c4bd9
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
packaging: engine-service: clean /var/tmp in upgrade and cleanup

previous service implementation used mixed ownership of root/ovirt in
/var/tmp/ovirt-engine, /var/lib/ovirt-engine/deployments.

the /var/tmp/ovirt-engine was not cleared if daemon exited so likely to
remain.

new service implementation does not run under root account, so having
root owned resources is not healthy.

during upgrade setup correct setting, during setup remove leftovers, as
engine-cleanup not to be trusted as it does not actually revert to
initial state.

Change-Id: If0efa0b8a71673140490e2c363af7d3ba6044ffe
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>