diff options
author | Jorge Hernandez <jh1730@att.com> | 2017-09-14 01:55:30 -0500 |
---|---|---|
committer | Jorge Hernandez <jh1730@att.com> | 2017-09-14 15:00:40 -0500 |
commit | 403fe412004ffded378c71df3f17b022a6518442 (patch) | |
tree | 44dffde62e6461d3d758a86b6d07748916f37e77 /controlloop/packages/basex | |
parent | 0f7e3fb817487b85a4200eb39a5755888c5ad04b (diff) |
master lab template maintained under archetype
This is work in progress, the official pom.xml with dependencies,
drl template, and support files for controller deployment
are maintained here. In the near future the junit template
should be consolidated with this one.
Added controlloop.properties.environment, this environment file
will be populated at installation time with the lab's aai url,
etc .. and will be accessible by any drools application such as
control loops through the PolicyEngine interface. Note that PDP-D
server already supports these environment files, so it is just natural.
Therefore, this is the default mechanism to provide to applications, the url, username,
and passwords to use at runtime by the control loops for the time being.
In the future MSB could set them globally here through existing APIs,
or it can be queried by any drools application using MSB library,
doesn't matter.
There's been some trouble playing nicely with the dependencies used
by a control loop application classsloader, and the pdp-d middleware one,
causing issues between dependencies version of libraries. Specifically,
the snakeyaml library does not play well across classloader when using
constructor functionality, note that the snakeyaml libraries are pulled
also from jackson parsers used in the pdp-d. I made a change in ControlLoopProcessor
to specifically tell the "Yaml" object which classloader to use in order to
find the class with the constructor that is intended to be built, otherwise,
yaml libraries use a different classloader that does not have visibility
into the ControlLoopPolicy that is trying to construct, and fails. This also
should respect junits that use the same classloader I pressume and does not
give issues.
Change-Id: I36271d29cdbf8ff861f9c03ff91cf7116927906a
Issue-ID: POLICY-162
Signed-off-by: Jorge Hernandez <jh1730@att.com>
Diffstat (limited to 'controlloop/packages/basex')
-rw-r--r-- | controlloop/packages/basex/src/files/config/controlloop.properties.environment | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/controlloop/packages/basex/src/files/config/controlloop.properties.environment b/controlloop/packages/basex/src/files/config/controlloop.properties.environment new file mode 100644 index 000000000..c77746f84 --- /dev/null +++ b/controlloop/packages/basex/src/files/config/controlloop.properties.environment @@ -0,0 +1,35 @@ +### +# ============LICENSE_START======================================================= +# ONAP APPS Base Package +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +# Environment file (.environment) for control loop applications in this +# directory, it will be automatically loaded by PDP-D, after being expanded +# by installation scripts. + +aai.url=${{AAI_URL}} +aai.username=${{AAI_USERNAME}} +aai.password=${{AAI_PASSWORD}} + +mso.url=${{MSO_URL}} +mso.username=${{MSO_USERNAME}} +mso.password=${{MSO_PASSWORD}} + +vfc.url=${{VFC_URL}} +vfc.username=${{VFC_USERNAME}} +vfc.password=${{VFC_PASSWORD}}
\ No newline at end of file |