summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/source2.yaml4
-rw-r--r--examples/source2_lib_result.yaml16
-rw-r--r--examples/source_include_subkey.yaml10
-rw-r--r--examples/source_include_subkey_result.yaml14
4 files changed, 44 insertions, 0 deletions
diff --git a/examples/source2.yaml b/examples/source2.yaml
new file mode 100644
index 00000000..f59f85ef
--- /dev/null
+++ b/examples/source2.yaml
@@ -0,0 +1,4 @@
+__include__:
+ path: examples/lib.yaml
+ params:
+ ImportantValue: Foo
diff --git a/examples/source2_lib_result.yaml b/examples/source2_lib_result.yaml
new file mode 100644
index 00000000..d4b19768
--- /dev/null
+++ b/examples/source2_lib_result.yaml
@@ -0,0 +1,16 @@
+Description: examples/source2.yaml
+HeatTemplateFormatVersion: '2012-12-12'
+Parameters:
+ GenericBImage:
+ Type: String
+ ImportantValue:
+ Default: a_default
+ Type: String
+Resources:
+ GenericB:
+ Metadata:
+ my_meta: Foo
+ Properties:
+ image:
+ Ref: GenericBImage
+ Type: OS::Nova::Server
diff --git a/examples/source_include_subkey.yaml b/examples/source_include_subkey.yaml
new file mode 100644
index 00000000..be344cd8
--- /dev/null
+++ b/examples/source_include_subkey.yaml
@@ -0,0 +1,10 @@
+Parameters:
+ Foo:
+ Type: String
+Resources:
+ __include__:
+ path: examples/lib.yaml
+ subkey: Resources
+ params:
+ BImage:
+ Ref: Foo
diff --git a/examples/source_include_subkey_result.yaml b/examples/source_include_subkey_result.yaml
new file mode 100644
index 00000000..f5ff80ea
--- /dev/null
+++ b/examples/source_include_subkey_result.yaml
@@ -0,0 +1,14 @@
+Description: examples/source_include_subkey.yaml
+HeatTemplateFormatVersion: '2012-12-12'
+Parameters:
+ GenericBImage:
+ Type: String
+Resources:
+ GenericB:
+ Metadata:
+ my_meta:
+ Ref: ImportantValue
+ Properties:
+ image:
+ Ref: GenericBImage
+ Type: OS::Nova::Server