aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorITSERVICES\rb7147 <rb7147@att.com>2017-05-09 13:54:45 -0400
committerITSERVICES\rb7147 <rb7147@att.com>2017-05-09 15:23:41 -0400
commitb150ebac50287476676b67a84aff996fc738ee7b (patch)
tree67ef0e6e264a243c724300ceee7631d015c6538e /config
parent687f2fc263e76180b85401e60eadd82520504148 (diff)
Policy 1707 Docker script changes
Change-Id: I765e2badf48d4f7554de2a6ea037289e3f76e512 Signed-off-by: ITSERVICES\rb7147 <rb7147@att.com>
Diffstat (limited to 'config')
-rw-r--r--config/pe/base.conf6
-rw-r--r--config/pe/brmsgw.conf11
-rw-r--r--config/pe/console.conf5
-rwxr-xr-xconfig/pe/pap-tweaks.sh14
-rw-r--r--config/pe/pdp.conf17
-rw-r--r--config/pe/push-policies.sh16
-rwxr-xr-xconfig/pe/pypdp-tweaks.sh3
-rw-r--r--config/pe/pypdp.conf25
8 files changed, 43 insertions, 54 deletions
diff --git a/config/pe/base.conf b/config/pe/base.conf
index e798a40d..fc1718fb 100644
--- a/config/pe/base.conf
+++ b/config/pe/base.conf
@@ -1,6 +1,8 @@
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
POLICY_HOME=/opt/app/policy
KEYSTORE_PASSWD=PolicyR0ck$
+KEY_PASSWD=PolicyR0ck$
+TRUSTSTORE_PASSWD=PolicyR0ck$
JDBC_DRIVER=org.mariadb.jdbc.Driver
JDBC_URL=jdbc:mariadb://mariadb:3306/ecomp_sdk
@@ -18,3 +20,7 @@ test_via_jmx=false
jmx_fqdn=
ENVIRONMENT=TEST
+
+#Micro Service Model Properties
+policy_msEcompName=
+policy_msPolicyName= \ No newline at end of file
diff --git a/config/pe/brmsgw.conf b/config/pe/brmsgw.conf
index da2cd0a4..f9188478 100644
--- a/config/pe/brmsgw.conf
+++ b/config/pe/brmsgw.conf
@@ -41,3 +41,14 @@ node_type=brms_gateway
CLIENT_ID=PyPDPServer
CLIENT_KEY=test
ENVIRONMENT=TEST
+
+#Notification Properties... type can be either websocket, ueb, or dmaap
+BRMS_NOTIFICATION_TYPE=websocket
+BRMS_UEB_URL=
+BRMS_UEB_TOPIC=
+BRMS_UEB_DELAY=
+BRMS_CLIENT_ID=
+BRMS_CLIENT_KEY=
+BRMS_UEB_API_KEY=
+BRMS_UEB_API_SECRET=
+
diff --git a/config/pe/console.conf b/config/pe/console.conf
index 6606addb..85233072 100644
--- a/config/pe/console.conf
+++ b/config/pe/console.conf
@@ -116,6 +116,7 @@ ecomp_smtp_host=
ecomp_smtp_port=25
ecomp_smtp_userName=
ecomp_smtp_password=
+ecomp_smtp_emailExtension=
ecomp_application_name=
#-----------------------ECOMP-PORTAL-Properties----------------------
@@ -129,7 +130,3 @@ ECOMP_UEB_APP_SECRET=
ECOMP_UEB_APP_MAILBOX_NAME=
APP_DISPLAY_NAME=OpenECOMP Policy
ECOMP_SHARED_CONTEXT_REST_URL=http://portal.api.simpledemo.openecomp.org:8989/ECOMPPORTAL/context
-
-#Add the Rest PAP url and pap auth password on adding delimiter @Auth@
-
-REST_PAPURL_WITH_AUTH_PASSWORD=http://policy.api.simpledemo.openecomp.org:9091/pap/@Auth@dGVzdHBhcDphbHBoYTEyMw==
diff --git a/config/pe/pap-tweaks.sh b/config/pe/pap-tweaks.sh
index be8a905a..36ac3689 100755
--- a/config/pe/pap-tweaks.sh
+++ b/config/pe/pap-tweaks.sh
@@ -1,15 +1 @@
#! /bin/bash
-
-# config directory may contain an ip_addr.txt file that specifies
-# the VM IP address. Substitute this value in the URL in the
-# config.json file, overriding the hostname that came from the
-# REST_PAPURL_WITH_AUTH_PASSWORD property in console.conf. This is
-# to avoid hardcoding an IP address in console.conf that can change
-# from one VM instance to the next.
-
-if [[ -f config/ip_addr.txt ]]; then
- vm_ip=$(<config/ip_addr.txt)
- echo "Substituting VM IP address $vm_ip in console config.json file"
- sed -i -e "s@http:.*:@http://$vm_ip:@" \
- $POLICY_HOME/servers/console/webapps/ecomp/app/policyApp/Properties/config.json
-fi
diff --git a/config/pe/pdp.conf b/config/pe/pdp.conf
index 363fdcb3..7248717d 100644
--- a/config/pe/pdp.conf
+++ b/config/pe/pdp.conf
@@ -34,3 +34,20 @@ node_type=pdp_xacml
resource_name=pdp_1
dependency_groups=pdplp_1;pypdp_1;brmsgw_1
test_via_jmx=true
+
+#
+# Notification Properties
+# Notifcation type: websocket, ueb or dmaap... if left blank websocket is the default
+PDP_NOTIFICATION_TYPE=websocket,UEB
+PDP_UEB_CLUSTER=
+PDP_UEB_TOPIC=
+PDP_UEB_DELAY=
+PDP_UEB_API_KEY=
+PDP_UEB_API_SECRET=
+PDP_DMAAP_AAF_LOGIN=
+PDP_DMAAP_AAF_PASSWORD=
+
+#AAF Policy Name space
+#Required only, when we use AAF
+POLICY_AAF_NAMESPACE=
+POLICY_AAF_RESOURCE= \ No newline at end of file
diff --git a/config/pe/push-policies.sh b/config/pe/push-policies.sh
index 957156ed..414e2e5b 100644
--- a/config/pe/push-policies.sh
+++ b/config/pe/push-policies.sh
@@ -12,7 +12,7 @@ curl -X PUT --header 'Content-Type: application/json' --header 'Accept: text/pla
"policyName": "vFirewall",
"policyScope": "com",
"policyType": "MicroService"
-}' 'http://pypdp:8480/PyPDPServer/pushPolicy'
+}' 'http://pdp:8081/pdp/api/pushPolicy'
sleep 2
@@ -21,7 +21,7 @@ curl -X PUT --header 'Content-Type: application/json' --header 'Accept: text/pla
"policyName": "vLoadBalancer",
"policyScope": "com",
"policyType": "MicroService"
-}' 'http://pypdp:8480/PyPDPServer/pushPolicy'
+}' 'http://pdp:8081/pdp/api/pushPolicy'
sleep 2
curl -X PUT --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHJlc3Q6M2MwbXBVI2gwMUBOMWMz' --header 'Environment: TEST' -d '{
@@ -29,7 +29,7 @@ curl -X PUT --header 'Content-Type: application/json' --header 'Accept: text/pla
"policyName": "BRMSParamvLBDemoPolicy",
"policyScope": "com",
"policyType": "BRMS_Param"
-}' 'http://pypdp:8480/PyPDPServer/pushPolicy'
+}' 'http://pdp:8081/pdp/api/pushPolicy'
sleep 2
@@ -38,7 +38,7 @@ curl -X PUT --header 'Content-Type: application/json' --header 'Accept: text/pla
"policyName": "BRMSParamvFWDemoPolicy",
"policyScope": "com",
"policyType": "BRMS_Param"
-}' 'http://pypdp:8480/PyPDPServer/pushPolicy'
+}' 'http://pdp:8081/pdp/api/pushPolicy'
sleep 2
@@ -46,7 +46,7 @@ curl -X DELETE --header 'Content-Type: application/json' --header 'Accept: text/
"pdpGroup": "default",
"policyComponent": "PDP",
"policyName": "com.Config_BRMS_Param_BRMSParamvFWDemoPolicy.1.xml"
-}' 'http://pypdp:8480/PyPDPServer/deletePolicy'
+}' 'http://pdp:8081/pdp/api/deletePolicy'
@@ -54,7 +54,7 @@ curl -X DELETE --header 'Content-Type: application/json' --header 'Accept: text/
"pdpGroup": "default",
"policyComponent": "PDP",
"policyName": "com.Config_BRMS_Param_BRMSParamvLBDemoPolicy.1.xml"
-}' 'http://pypdp:8480/PyPDPServer/deletePolicy'
+}' 'http://pdp:8081/pdp/api/deletePolicy'
sleep 2
curl -X PUT --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHJlc3Q6M2MwbXBVI2gwMUBOMWMz' --header 'Environment: TEST' -d '{
@@ -62,7 +62,7 @@ curl -X PUT --header 'Content-Type: application/json' --header 'Accept: text/pla
"policyName": "BRMSParamvLBDemoPolicy",
"policyScope": "com",
"policyType": "BRMS_Param"
-}' 'http://pypdp:8480/PyPDPServer/pushPolicy'
+}' 'http://pdp:8081/pdp/api/pushPolicy'
sleep 2
@@ -71,5 +71,5 @@ curl -X PUT --header 'Content-Type: application/json' --header 'Accept: text/pla
"policyName": "BRMSParamvFWDemoPolicy",
"policyScope": "com",
"policyType": "BRMS_Param"
-}' 'http://pypdp:8480/PyPDPServer/pushPolicy'
+}' 'http://pdp:8081/pdp/api/pushPolicy'
diff --git a/config/pe/pypdp-tweaks.sh b/config/pe/pypdp-tweaks.sh
deleted file mode 100755
index 5d899bd1..00000000
--- a/config/pe/pypdp-tweaks.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#! /bin/bash
-
-
diff --git a/config/pe/pypdp.conf b/config/pe/pypdp.conf
deleted file mode 100644
index 4a792b47..00000000
--- a/config/pe/pypdp.conf
+++ /dev/null
@@ -1,25 +0,0 @@
-# pypdp component installation configuration parameters
-
-# tomcat specific parameters
-
-TOMCAT_JMX_PORT=9994
-TOMCAT_SHUTDOWN_PORT=8405
-SSL_HTTP_CONNECTOR_PORT=8480
-SSL_AJP_CONNECTOR_PORT=8384
-SSL_AJP_CONNECTOR_REDIRECT_PORT=8443
-
-TOMCAT_X_MS_MB=1024
-TOMCAT_X_MX_MB=1024
-
-# pypdp parameters
-
-PDP_URL=http://pdp:8081/pdp/,testpdp,alpha123
-PAP_URL=http://pap:9091/pap/,testpap,alpha123
-PYPDP_ID=testrest
-PYPDP_PASSWORD=3c0mpU#h01@N1c3
-
-node_type=pypdp
-# the java property is RESOURCE_NAME (uppercase), but the conf parameter is lowercase
-resource_name=pypdp_1
-
-CLIENT_FILE=client.properties