blueprint for policy-handler 2.4.0 67/37167/1
authorAlex Shatov <alexs@att.com>
Tue, 20 Mar 2018 15:44:19 +0000 (11:44 -0400)
committerAlex Shatov <alexs@att.com>
Tue, 20 Mar 2018 15:44:19 +0000 (11:44 -0400)
- 2.4.0 policy-handler uses dns based discovery of
   deployment-handler - driven by config
- new data structure for deploy_handler section of config
    --  changed from string "deployment_handler" in 2.3.1
         to structure in 2.4.0

Change-Id: I7d3b6cf1f1111acc492eaf16c40e3e917918cebe
Signed-off-by: Alex Shatov <alexs@att.com>
Issue-ID: DCAEGEN2-404

blueprints/policy_handler.yaml-template
blueprints/policy_handler_sample_app_config.yaml

index 6b53a4a..f066108 100644 (file)
@@ -39,7 +39,7 @@ inputs:
 
   policy_handler_image:
     description: Docker image for policy_handler
-    default: '{{ ONAPTEMPLATE_DOCKERREGURL_org_onap_dcaegen2_releases }}/onap/org.onap.dcaegen2.platform.policy-handler:v2.3.1'
+    default: '{{ ONAPTEMPLATE_DOCKERREGURL_org_onap_dcaegen2_releases }}/onap/org.onap.dcaegen2.platform.policy-handler:v2.4.0'
 
   application_config:
     description: policy handler application configuration - requires info on policy-engine
index 268df6f..928aea9 100644 (file)
@@ -66,5 +66,12 @@ application_config:
             Authorization : "Basic {{ YOUR_POLICY_ENGINE_AUTHORIZATION }}"
             Environment : "{{ YOUR_POLICY_ENGINE_ENVIRONMENT }}"
         target_entity : "policy_engine"
-    # name of deployment-handler service in consul for policy-handler to direct the policy-updates to
-    deploy_handler : "deployment_handler"
+
+    # deploy_handler config
+    #    changed from string "deployment_handler" in 2.3.1 to structure in 2.4.0
+    deploy_handler :
+        # name of deployment-handler service used by policy-handler for logging
+        target_entity : "deployment_handler"
+        # url of the deployment-handler service for policy-handler to direct the policy-updates to
+        #   - expecting dns to resolve the name deployment_handler to ip address
+        url : "http://deployment_handler:8188"