diff options
Diffstat (limited to 'dcae-policy/README.md')
-rw-r--r-- | dcae-policy/README.md | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/dcae-policy/README.md b/dcae-policy/README.md index 42fa53b..a3a070b 100644 --- a/dcae-policy/README.md +++ b/dcae-policy/README.md @@ -1,11 +1,32 @@ # dcae-policy plugin and node-type + - python-package dcaepolicyplugin to be used in cloudify plugins to retrieve the policy from policy-handler --- ## dcaepolicy node type [dcaepolicy-node-type.yaml](./dcaepolicy-node-type.yaml) + - node type for dcae.nodes.policy +- node type for dcae.nodes.policies + +--- + +## discovery of policy-handler + +- dcaepolicyplugin will first try finding the record of ```policy_handler``` in consul services. + +- if failed, it will try finding config for "dcaepolicyplugin" in consul-kv + + -- the config structure is expected to contain url to policy_handler + -- example of config value for key=```dcaepolicyplugin```: + +```json +{ "dcaepolicyplugin" : { "policy_handler" : { "url" : "http://policy-handler:25577" } } } +``` + +- if still not found, it will default to hardcoded url of ```http://policy-handler``` + --- ## Usage @@ -14,7 +35,7 @@ import the dcaepolicy-node-type.yaml into your blueprint to use the dcae.nodes.t ```yaml imports: - - https://YOUR_NEXUS_RAW_SERVER/type_files/dcaepolicy/1.0.0/node-type.yaml + - https://YOUR_NEXUS_RAW_SERVER/type_files/dcaepolicy/2.3.0/node-type.yaml ``` provide the value for policy_id property |