summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Shatov <alexs@att.com>2018-04-19 12:08:06 -0400
committerAlex Shatov <alexs@att.com>2018-04-19 12:08:06 -0400
commit2add4828edf3ceb7ce60e511093dd4fc25e0bb45 (patch)
tree6eff904355aec06e64f726279224122c209b471f
parent2005e2bb734f78a03e2f401e2855c0a8981ff978 (diff)
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 <alexs@att.com> Issue-ID: DCAEGEN2-449
-rwxr-xr-xheat/register.sh4
1 files changed, 2 insertions, 2 deletions
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