From 4dcedf5f1dbf8ec2725c4c92618279fc2291adae Mon Sep 17 00:00:00 2001 From: Alex Shatov Date: Tue, 20 Mar 2018 11:44:19 -0400 Subject: blueprint for policy-handler 2.4.0 - 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 Issue-ID: DCAEGEN2-404 --- blueprints/policy_handler.yaml-template | 2 +- blueprints/policy_handler_sample_app_config.yaml | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/blueprints/policy_handler.yaml-template b/blueprints/policy_handler.yaml-template index 6b53a4a..f066108 100644 --- a/blueprints/policy_handler.yaml-template +++ b/blueprints/policy_handler.yaml-template @@ -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 diff --git a/blueprints/policy_handler_sample_app_config.yaml b/blueprints/policy_handler_sample_app_config.yaml index 268df6f..928aea9 100644 --- a/blueprints/policy_handler_sample_app_config.yaml +++ b/blueprints/policy_handler_sample_app_config.yaml @@ -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" -- cgit 1.2.3-korg