summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/launchconfig1.yaml23
-rw-r--r--examples/launchconfig2.yaml19
-rw-r--r--examples/launchconfig_result.yaml43
3 files changed, 85 insertions, 0 deletions
diff --git a/examples/launchconfig1.yaml b/examples/launchconfig1.yaml
new file mode 100644
index 00000000..9127eab9
--- /dev/null
+++ b/examples/launchconfig1.yaml
@@ -0,0 +1,23 @@
+Parameters:
+ A:
+ Type: String
+ Default: test1
+ B:
+ Type: String
+ Default: test2
+ resource1Image:
+ Type: String
+ Default: resource1
+Resources:
+ notcomputeConfigBase:
+ Type: AWS::AutoScaling::LaunchConfiguration
+ Metadata:
+ OpenStack::Role: notcomputeConfig
+ a: {Ref: A}
+ b: {Ref: B}
+ resource1:
+ Type: OS::Nova::Server
+ Properties:
+ flavor: test_flavor
+ image: {Ref: resource1Image}
+ key_name: test_key
diff --git a/examples/launchconfig2.yaml b/examples/launchconfig2.yaml
new file mode 100644
index 00000000..1681637b
--- /dev/null
+++ b/examples/launchconfig2.yaml
@@ -0,0 +1,19 @@
+Parameters:
+ C:
+ Type: String
+ Default: test3
+ resource2Image:
+ Type: String
+ Default: resource2
+Resources:
+ notcomputeConfigMixin:
+ Type: AWS::AutoScaling::LaunchConfiguration
+ Metadata:
+ OpenStack::Role: notcomputeConfig
+ c: {Ref: C}
+ resource2:
+ Type: OS::Nova::Server
+ Properties:
+ flavor: test_flavor
+ image: {Ref: resource2Image}
+ key_name: test_key
diff --git a/examples/launchconfig_result.yaml b/examples/launchconfig_result.yaml
new file mode 100644
index 00000000..76c12b84
--- /dev/null
+++ b/examples/launchconfig_result.yaml
@@ -0,0 +1,43 @@
+Description: examples/launchconfig1.yaml,examples/launchconfig2.yaml
+HeatTemplateFormatVersion: '2012-12-12'
+Parameters:
+ A:
+ Default: test1
+ Type: String
+ B:
+ Default: test2
+ Type: String
+ C:
+ Default: test3
+ Type: String
+ resource1Image:
+ Default: resource1
+ Type: String
+ resource2Image:
+ Default: resource2
+ Type: String
+Resources:
+ notcomputeConfig:
+ Metadata:
+ OpenStack::Role: notcomputeConfig
+ a:
+ Ref: A
+ b:
+ Ref: B
+ c:
+ Ref: C
+ Type: AWS::AutoScaling::LaunchConfiguration
+ resource1:
+ Properties:
+ flavor: test_flavor
+ image:
+ Ref: resource1Image
+ key_name: test_key
+ Type: OS::Nova::Server
+ resource2:
+ Properties:
+ flavor: test_flavor
+ image:
+ Ref: resource2Image
+ key_name: test_key
+ Type: OS::Nova::Server