summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
-rw-r--r--docker-compose.yml11
-rw-r--r--policy-pe/do-start.sh8
-rw-r--r--policy-pe/docker-install.sh16
11 files changed, 50 insertions, 82 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
diff --git a/docker-compose.yml b/docker-compose.yml
index 699bf0d4..242409fb 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -33,17 +33,6 @@ services:
command: pdp
volumes:
- ./config/pe:/tmp/policy-install/config
- pypdp:
- image: onap/policy/policy-pe
- container_name: pypdp
- depends_on:
- - pap
- hostname: pypdp
- ports:
- - "8480:8480"
- command: pypdp
- volumes:
- - ./config/pe:/tmp/policy-install/config
brmsgw:
image: onap/policy/policy-pe
container_name: brmsgw
diff --git a/policy-pe/do-start.sh b/policy-pe/do-start.sh
index 8bdb8bc9..fc02b860 100644
--- a/policy-pe/do-start.sh
+++ b/policy-pe/do-start.sh
@@ -14,14 +14,11 @@ pap)
pdp)
comps="base pdp pdplp"
;;
-pypdp)
- comps="base pypdp"
- ;;
brmsgw)
comps="base brmsgw"
;;
*)
- echo "Usage: do-start.sh pap|pdp|pypdp|brmsgw" >&2
+ echo "Usage: do-start.sh pap|pdp|brmsgw" >&2
exit 1
esac
@@ -80,12 +77,11 @@ fi
policy.sh start
-# on pap, wait for pap, pdp, pypdp, brmsgw, and nexus up,
+# on pap, wait for pap, pdp, brmsgw, and nexus up,
# then push the initial default policies
if [[ $container == pap ]]; then
./wait-for-port.sh pap 9091
./wait-for-port.sh pdp 8081
- ./wait-for-port.sh pypdp 8480
# brmsgw doesn't have a REST API, so check for JMX port instead
./wait-for-port.sh brmsgw 9989
./wait-for-port.sh nexus 8081
diff --git a/policy-pe/docker-install.sh b/policy-pe/docker-install.sh
index d85e3592..140947da 100644
--- a/policy-pe/docker-install.sh
+++ b/policy-pe/docker-install.sh
@@ -9,8 +9,8 @@
function usage() {
echo -n "syntax: $(basename $0) "
echo -n "--debug ("
- echo -n "[--install base|pap|pdp|pypdp|console|mysql|brmsgw|paplp|pdplp] | "
- echo -n "[--configure base|pap|pdp|pypdp|console|mysql|brmsgw|paplp|pdplp] | "
+ echo -n "[--install base|pap|pdp|console|mysql|brmsgw|paplp|pdplp] | "
+ echo -n "[--configure base|pap|pdp|console|mysql|brmsgw|paplp|pdplp] | "
}
function check_java() {
@@ -550,7 +550,7 @@ case $COMPONENT_TYPE in
paplp) ;;
pdplp) ;;
skip) ;;
- *) echo "invalid component type (${COMPONENT_TYPE}): must be in {base|pypdp|pdp|pap|console|mysql|brmsgw|paplp|pdplp}";
+ *) echo "invalid component type (${COMPONENT_TYPE}): must be in {base|pdp|pap|console|mysql|brmsgw|paplp|pdplp}";
usage
exit 1
;;
@@ -603,9 +603,6 @@ if [[ ${OPERATION} == install ]]; then
base)
install_base
;;
- pypdp)
- install_tomcat_component
- ;;
pdp)
install_tomcat_component
;;
@@ -625,7 +622,7 @@ if [[ ${OPERATION} == install ]]; then
install_logparser
;;
*)
- echo "invalid component type (${COMPONENT_TYPE}): must be in {base|pypdp|pdp|pap|console|mysql|brmsgw|paplp|pdplp}";
+ echo "invalid component type (${COMPONENT_TYPE}): must be in {base|pdp|pap|console|mysql|brmsgw|paplp|pdplp}";
usage
exit 1
;;
@@ -640,9 +637,6 @@ if [[ ${OPERATION} == configure ]]; then
configure_base
component_preconfigure
;;
- pypdp)
- configure_component "${COMPONENT_TYPE}.conf" "${POLICY_HOME}/servers/${COMPONENT_TYPE}/"
- ;;
pdp)
configure_component "${COMPONENT_TYPE}.conf" "${POLICY_HOME}/servers/${COMPONENT_TYPE}/"
;;
@@ -662,7 +656,7 @@ if [[ ${OPERATION} == configure ]]; then
configure_component "${COMPONENT_TYPE}.conf" "${POLICY_HOME}/servers/${COMPONENT_TYPE}/"
;;
*)
- echo "invalid component type (${COMPONENT_TYPE}): must be in {base|pypdp|pdp|pap|console|mysql|brmsgw|paplp|pdplp}";
+ echo "invalid component type (${COMPONENT_TYPE}): must be in {base|pdp|pap|console|mysql|brmsgw|paplp|pdplp}";
usage
exit 1
;;