Closed bmpotter closed 3 years ago
PR I submitted for this: https://github.com/open-horizon/examples/pull/301
A couple of small updates are needed:
CLUSTER_ORG
and then uses the cmd:curl https://raw.githubusercontent.com/open-horizon/examples/v4.1/tools/exchangePublishScript.sh | bash -s -- -c $CLUSTER_ORG
EXCHANGE_ROOT_PASS
be set, but doesn't seem to actually use it. Since in the KC instructions they have to set HZN_EXCHANGE_USER_AUTH
with the root pw for the hzn exchange status
cmd, just remove the requirement for EXCHANGE_ROOT_PASS
in this script.: ${EXCHANGE_ROOT_PASS:?} ${HZN_EXCHANGE_URL:?} ${HZN_EXCHANGE_USER_AUTH:?}
should be after the parsing of the args, so someone can use -h
to see the usage to see what's required/tmp/
echo
output newlines (\n
) correctly, need to add the -e
flag
Since business policies can't be public, customers can't use the business policies from the IBM org, and generally can't even view them (because they don't usually have credentials in the IBM org). So change
exchangePublishScript.sh
to publish the sample business policies to the cluster org instead. You may have to add<cluster-name>
as an argument to the script, becauseexchangePublishScript.sh
may not have the right info to be able to query that, but the caller does.I think the example business policies should have a constraint like
openhorizon.example == helloworld
(or cpu2evtstreams, etc.). That way the nodes that want to use it can just set this node policy property:openhorizon.example: helloworld