packaging: cleanup spec file

1. use %{_initddir}
2. be more consistent with service name, use explict name always

Change-Id: Ib30fc665069d90b7cdb6855c92ee27d8ef143615
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
packaging: enigne-service: cleanup to ease reuse

Change-Id: I755f550f6992851fd70e03afa1db008d6b42d9d4
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
packaging: engine.conf: add quotes to selected keys

this to support potential space within value, while
sourcing in shell.

Change-Id: If7b0086fc2927449b54877e3cf1a18bd6e9480e0
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
packaging: move all packaging related to packaging

currently we manage packaging scripts all over the tree, sometimes in
different names than the file installed.

this patch collects all files to be under the packaging directory using
hierarchy similar to the installation and using same file naming.

Change-Id: I6d0bd7b8cd5381ddb80b4b2e5ee7df65bab487bc
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
core: split LocalConfig to allow code reuse

EngineLocalConfig - for engine.
NotifierLocalConfig - [future] for notifier.

Change-Id: I711d045b50b172e00455125363d870a61d2d6fa9
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
core: config: support sensitive keys

do not print sensitive keys' value to log.

Change-Id: I8dc10fb3eeb1cc97a03cc160133a84d6b2a23d87
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
pki: move configuration from vdc_options to EngineLocalConfig

root application serves pki resources, in order to support variable
location we need to be able to access these without accessing the
database.

in addition, there is no point in storing file locations within
database, as if we use cluster we have no grantee to have these at the
other node.

handling the root application is not included in this patch.

Change-Id: I1764d9ca7a8c677401f721b3d89f45deff9c1f26
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
packaging: serve root customizable location resources

resources are hard coded within root's web.xml, while in development
mode and in different distributions locations may be altered.

this change resolves resource name contained variables at ${xxx}
notation using LocalConfig.

Change-Id: I94f845d36bb075c238e50606187bc22316713cdd
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
notifier: handle port correctly

1. separate between plain and ssl ports.
2. actually set plain port.

Change-Id: Ibcfa79849856dc3c2b3aaa9d0dd8652be04c788b
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
notifier: use LocalConfig as configuration file

gives the advantage of defaults and conf.d structure.

Change-Id: Iea3d8a9887d76920c51d26467c634912e64242dd
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
notifier: switch to log4j

for some reason no logs using current logger.

also fix log4j.xml as it complains about format.

Change-Id: I35de5d5a97ccd4f7bb80739fdb328de2e0ce6bd9
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
notifier: move to the new service infrastructure

rename service to ovirt-engine-notifier to match other services.

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