description: 'Debian-mirror: A Debian or Ubuntu mirror in the cloud'
parameters:
  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
  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
resources:
  debianMirrorConfig:
    type: AWS::AutoScaling::LaunchConfiguration
    metadata:
      debian-mirror:
        mirror:
          get_param: DebianMirrorMirror
        suites:
          get_param: DebianMirrorSuites
        architectures:
          get_param: DebianMirrorArchitectures
        components:
          get_param: DebianMirrorComponents