1 # dcae-policy plugin and node-type
3 - python-package dcaepolicyplugin to be used in cloudify plugins to retrieve the policy from policy-handler
7 ## dcaepolicy node type [dcaepolicy-node-type.yaml](./dcaepolicy-node-type.yaml)
9 - node type for dcae.nodes.policy
11 - node type for dcae.nodes.policies
15 ## discovery of policy-handler
17 - dcaepolicyplugin will first try finding the record of ```policy_handler``` in consul services.
19 - if failed, it will try finding config for "dcaepolicyplugin" in consul-kv
21 -- the config structure is expected to contain url to policy_handler
22 -- example of config value for key=```dcaepolicyplugin```:
25 { "dcaepolicyplugin" : { "policy_handler" : { "url" : "http://policy-handler:25577" } } }
28 - if still not found, it will default to hardcoded url of ```http://policy-handler```
34 import the dcaepolicy-node-type.yaml into your blueprint to use the dcae.nodes.type node
38 - https://YOUR_NEXUS_RAW_SERVER/type_files/dcaepolicy/2.3.0/node-type.yaml
41 provide the value for policy_id property
47 type: dcae.nodes.policy
49 policy_id: { get_input: host_capacity_policy_id }
52 Then the dcaepolicyplugin will bring the latest policy to the dcae.nodes.policy node during the install workflow of cloudify.