From 2add4828edf3ceb7ce60e511093dd4fc25e0bb45 Mon Sep 17 00:00:00 2001 From: Alex Shatov Date: Thu, 19 Apr 2018 12:08:06 -0400 Subject: policy-handler to accept CLAMP policy-updates - change config of policy-handler to have CLAMP as a valid scope_prefix in consul-kv scope_prefixes : ["DCAE.Config_", "CLAMP"] Change-Id: I5eda1e7c7588e632d97bc4b3422edc3b5295d0e4 Signed-off-by: Alex Shatov Issue-ID: DCAEGEN2-449 --- heat/register.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'heat') diff --git a/heat/register.sh b/heat/register.sh index 18ee0d4..71152ff 100755 --- a/heat/register.sh +++ b/heat/register.sh @@ -19,7 +19,7 @@ -# We now register services that are not handled by Registrator +# We now register services that are not handled by Registrator # minimum platform components HOSTNAME_CONSUL="consul" HOSTNAME_CM="cloudify_manager" @@ -113,7 +113,7 @@ curl -v -X PUT -H "Content-Type: application/json" --data "${REGKV}" http://${HO # checked # policy handler -REGKV="{\"policy_handler\": {\"deploy_handler\": \"deployment_handler\", \"thread_pool_size\": 4, \"policy_retry_count\": 5, \"scope_prefixes\": [\"DCAE.Config_\"], \"pool_connections\": 20, \"policy_retry_sleep\": 5, \"policy_engine\": {\"path_api\": \"/pdp/api/\", \"headers\": {\"Environment\": \"TEST\", \"ClientAuth\": \"cHl0aG9uOnRlc3Q=\", \"Content-Type\": \"application\/json\", \"Accept\": \"application/json\", \"Authorization\": \"Basic dGVzdHBkcDphbHBoYTEyMw==\"}, \"path_pdp\": \"/pdp/\", \"url\": \"http://10.0.6.1:8081\", \"target_entity\": \"policy_engine\"}}}" +REGKV="{\"policy_handler\": {\"deploy_handler\": \"deployment_handler\", \"thread_pool_size\": 4, \"policy_retry_count\": 5, \"scope_prefixes\": [\"DCAE.Config_\",\"CLAMP\"], \"pool_connections\": 20, \"policy_retry_sleep\": 5, \"policy_engine\": {\"path_api\": \"/pdp/api/\", \"headers\": {\"Environment\": \"TEST\", \"ClientAuth\": \"cHl0aG9uOnRlc3Q=\", \"Content-Type\": \"application\/json\", \"Accept\": \"application/json\", \"Authorization\": \"Basic dGVzdHBkcDphbHBoYTEyMw==\"}, \"path_pdp\": \"/pdp/\", \"url\": \"http://10.0.6.1:8081\", \"target_entity\": \"policy_engine\"}}}" curl -v -X PUT -H "Content-Type: application/json" --data "${REGKV}" http://${HOSTNAME_CONSUL}:8500/v1/kv/policy_handler -- cgit 1.2.3-korg