summaryrefslogtreecommitdiffstats
path: root/dcae-policy/README.md
diff options
context:
space:
mode:
authorAlex Shatov <alexs@att.com>2017-09-12 11:30:55 -0400
committerAlex Shatov <alexs@att.com>2017-09-12 11:30:55 -0400
commit9622da66409485995f1dd388bca406d24a215661 (patch)
tree7e1714ef405d3ff633e4b091deccf5bb40bbb83a /dcae-policy/README.md
parenta26c9cc72f8fdc513458c2ba87f9378743f255fb (diff)
dcaepolicy plugin and dcae.node.type
* new plugin and node type file to be used by blueprints that use policy Change-Id: I79dc24f3bf6f8471457544f6bb8562cbcd448d00 Issue-Id: DCAEGEN2-62 Signed-off-by: Alex Shatov <alexs@att.com>
Diffstat (limited to 'dcae-policy/README.md')
-rw-r--r--dcae-policy/README.md31
1 files changed, 31 insertions, 0 deletions
diff --git a/dcae-policy/README.md b/dcae-policy/README.md
new file mode 100644
index 0000000..42fa53b
--- /dev/null
+++ b/dcae-policy/README.md
@@ -0,0 +1,31 @@
+# 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
+
+---
+
+## Usage
+
+import the dcaepolicy-node-type.yaml into your blueprint to use the dcae.nodes.type node
+
+```yaml
+imports:
+ - https://YOUR_NEXUS_RAW_SERVER/type_files/dcaepolicy/1.0.0/node-type.yaml
+```
+
+provide the value for policy_id property
+
+```yaml
+node_templates:
+...
+ host_capacity_policy:
+ type: dcae.nodes.policy
+ properties:
+ policy_id: { get_input: host_capacity_policy_id }
+```
+
+Then the dcaepolicyplugin will bring the latest policy to the dcae.nodes.policy node during the install workflow of cloudify.