Add a debian-mirror heat template
authorSteve Kowalik <steven@wedontsleep.org>
Thu, 23 Jan 2014 02:01:02 +0000 (13:01 +1100)
committerSteve Kowalik <steven@wedontsleep.org>
Fri, 31 Jan 2014 05:57:14 +0000 (16:57 +1100)
Populate defaults for the debian-mirror image-element using a heat
template.

Change-Id: I28de1d04be7292dad1bc448ff8bbde634cebd6f3

debian-mirror.yaml [new file with mode: 0644]

diff --git a/debian-mirror.yaml b/debian-mirror.yaml
new file mode 100644 (file)
index 0000000..f9e7699
--- /dev/null
@@ -0,0 +1,31 @@
+Description: 'Debian-mirror: A Debian or Ubuntu mirror in the cloud'
+Parameters:
+  DebianMirrorMirror:
+    Default: http://archive.ubuntu.com/ubuntu
+    Description: The mirror that is to be used as the source
+    Type: String
+  DebianMirrorSuites:
+    Default: ["saucy", "saucy-updates", "saucy-security"]
+    Description: The suites to be mirrored
+    Type: JSON
+  DebianMirrorArchitectures:
+    Default: [{"arch": "amd64"}]
+    Description: The architectures to be mirrored
+    Type: JSON
+  DebianMirrorComponents:
+    Default: ["main", "restricted", "universe", "multiverse"]
+    Description: The components to be mirrored
+    Type: JSON
+Resources:
+  debianMirrorConfig:
+    Type: AWS::AutoScaling::LaunchConfiguration
+    Metadata:
+      debian-mirror:
+        mirror:
+          Ref: DebianMirrorMirror
+        suites:
+          Ref: DebianMirrorSuites
+        architectures:
+          Ref: DebianMirrorArchitectures
+        components:
+          Ref: DebianMirrorComponents