Extract Entity Config Override example to YAML file

Project: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/commit/ca1cd3f6
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/tree/ca1cd3f6
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/diff/ca1cd3f6

Branch: refs/heads/master
Commit: ca1cd3f6f52d752ec5cdf92af714050d14d8e4a0
Parents: 37d8433
Author: Paul Campbell <paul.campb...@cloudsoft.io>
Authored: Fri Aug 24 15:53:45 2018 +0100
Committer: Paul Campbell <paul.campb...@cloudsoft.io>
Committed: Fri Aug 24 15:53:45 2018 +0100

----------------------------------------------------------------------
 guide/blueprints/entity-configuration.md                 | 11 +----------
 .../example_yaml/entity-config-override-app.yaml         |  8 ++++++++
 2 files changed, 9 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-docs/blob/ca1cd3f6/guide/blueprints/entity-configuration.md
----------------------------------------------------------------------
diff --git a/guide/blueprints/entity-configuration.md 
b/guide/blueprints/entity-configuration.md
index 96885ca..1b623c6 100644
--- a/guide/blueprints/entity-configuration.md
+++ b/guide/blueprints/entity-configuration.md
@@ -103,16 +103,7 @@ consider the `entity-config-example` added to the catalog 
in the section
 [Configuration in a Catalog Item](#configuration-in-a-catalog-item).
 We can override these values. If not overridden, then the existing values from 
the super-type will be used:
 
-```yaml
-location: aws-ec2:us-east-1
-services:
-- type: entity-config-example
-  brooklyn.config:
-    custom.message: Goodbye
-    launch.command: |
-      echo "Sub-type launch command: $MESSAGE"
-```
-
+!CODEFILE "example_yaml/entity-config-override-app.yaml"
 
 
 In this example, the `custom.message` overrides the default defined on the 
config key.

http://git-wip-us.apache.org/repos/asf/brooklyn-docs/blob/ca1cd3f6/guide/blueprints/example_yaml/entity-config-override-app.yaml
----------------------------------------------------------------------
diff --git a/guide/blueprints/example_yaml/entity-config-override-app.yaml 
b/guide/blueprints/example_yaml/entity-config-override-app.yaml
new file mode 100644
index 0000000..a1481f0
--- /dev/null
+++ b/guide/blueprints/example_yaml/entity-config-override-app.yaml
@@ -0,0 +1,8 @@
+location: aws-ec2:us-east-1
+name: entity-config-override-example
+services:
+- type: entity-config-example
+  brooklyn.config:
+    custom.message: Goodbye
+    launch.command: |
+      echo "Sub-type launch command: $MESSAGE"

Reply via email to