[POLICY-66] healtcheck feature config and db prep 45/6545/1
authorJorge Hernandez <jh1730@att.com>
Wed, 2 Aug 2017 14:48:57 +0000 (09:48 -0500)
committerJorge Hernandez <jh1730@att.com>
Wed, 2 Aug 2017 14:48:57 +0000 (09:48 -0500)
initial commit pre-intro of db support on per feature basis

Change-Id: Ie790764bc58f773da381ae88b6f7476fbd2af2e5
Signed-off-by: Jorge Hernandez <jh1730@att.com>
feature-healthcheck/src/main/feature/config/feature-healthcheck.properties
packages/install/src/files/base.conf
packages/install/src/files/feature-healthcheck.conf [new file with mode: 0644]
policy-management/src/assembly/assemble_zip.xml

index cb31e8f..5aaae4a 100644 (file)
@@ -24,6 +24,8 @@ http.server.services.HEALTHCHECK.port=6969
 http.server.services.HEALTHCHECK.restClasses=org.onap.policy.drools.healthcheck.RestHealthCheck
 http.server.services.HEALTHCHECK.managed=false
 http.server.services.HEALTHCHECK.swagger=true
+http.server.services.HEALTHCHECK.userName=${{HEALTHCHECK_USER}}
+http.server.services.HEALTHCHECK.password=${{HEALTHCHECK_PASSWORD}}
 
 http.client.services=PAP,PDP
 
index b33cf58..d92abed 100644 (file)
 # ============LICENSE_END=========================================================
 ###
 
+# SYSTEM software configuration 
+
 POLICY_HOME=/opt/app/policy
 JAVA_HOME=/opt/jdk1.8.0_77
 M2_HOME=/opt/app/policy/3rdparty/apache-maven-3.3.1
 
+# Telemetry credentials
+
 ENGINE_MANAGEMENT_PORT=9696
 ENGINE_MANAGEMENT_HOST=0.0.0.0
-ENGINE_MANAGEMENT_USER=@1b3rt
-ENGINE_MANAGEMENT_PASSWORD=31nst31n
+ENGINE_MANAGEMENT_USER=
+ENGINE_MANAGEMENT_PASSWORD=
+
+# nexus repository
 
 # To use a Nexus repository for rules artifacts,
 # following properties must be uncommented and set:
@@ -34,7 +40,15 @@ ENGINE_MANAGEMENT_PASSWORD=31nst31n
 #repositoryUsername=(nexus username goes here)
 #repositoryPassword=(password goes here)
 
-PDPD_CONFIGURATION_TOPIC=PDPD_CONFIGURATION
+# Relational (SQL) DB access 
+
+SQL_HOST=
+SQL_USER=
+SQL_PASSWORD=
+
+# PDP-D DMaaP configuration channel
+
+PDPD_CONFIGURATION_TOPIC=PDPD-CONFIGURATION
 PDPD_CONFIGURATION_SERVERS=
 PDPD_CONFIGURATION_API_KEY=
 PDPD_CONFIGURATION_API_SECRET=
@@ -42,10 +56,23 @@ PDPD_CONFIGURATION_CONSUMER_GROUP=
 PDPD_CONFIGURATION_CONSUMER_INSTANCE=
 PDPD_CONFIGURATION_PARTITION_KEY=
 
+# PAP
+
 PAP_HOST=
 PAP_USERNAME=
 PAP_PASSWORD=
 
+# PDP-X
+
 PDP_HOST=
 PDP_USERNAME=
 PDP_PASSWORD=
+
+# DCAE DMaaP
+
+DCAE_TOPIC=
+DCAE_SERVERS=
+
+# Open DMaaP
+
+DMAAP_SERVERS=
diff --git a/packages/install/src/files/feature-healthcheck.conf b/packages/install/src/files/feature-healthcheck.conf
new file mode 100644 (file)
index 0000000..f5c3d07
--- /dev/null
@@ -0,0 +1,2 @@
+HEALTHCHECK_USER=
+HEALTHCHECK_PASSWORD=
index a910825..216376f 100644 (file)
@@ -24,7 +24,7 @@
        xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
-       <id>runtime</id>
+       <id>pdpd</id>
        <formats>
                <format>zip</format>
        </formats>
@@ -42,8 +42,7 @@
                <fileSet>
                        <directory>target/assembly/</directory>
                        <outputDirectory>.</outputDirectory>
-                       <excludes>
-                       </excludes>
+                       <excludes/>
                </fileSet>
                <fileSet>
                        <directory>.</directory>
                        <excludes>
                        </excludes>
                </fileSet>
-               <fileSet>
-                       <directory>src/main/server-gen/scripts</directory>
-                       <outputDirectory>scripts</outputDirectory>
-               </fileSet>
-               <fileSet>
-                       <directory>src/main/server/scripts</directory>
-                       <outputDirectory>scripts</outputDirectory>
-               </fileSet>
                <fileSet>
                        <directory>src/main/server/config</directory>
                        <outputDirectory>config</outputDirectory>
                </fileSet>
+               <fileSet>
+                       <directory>src/main/server/db</directory>
+                       <outputDirectory>etc/db</outputDirectory>
+               </fileSet>
        </fileSets>
 
 </assembly>