policy-handler to accept CLAMP policy-updates 51/43751/1
authorAlex Shatov <alexs@att.com>
Thu, 19 Apr 2018 16:08:06 +0000 (12:08 -0400)
committerAlex Shatov <alexs@att.com>
Thu, 19 Apr 2018 16:08:06 +0000 (12:08 -0400)
- 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 <alexs@att.com>
Issue-ID: DCAEGEN2-449

heat/register.sh

index 18ee0d4..71152ff 100755 (executable)
@@ -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