Aptly server with mirror definitions
diff --git a/aptly/server/mirror/ubuntu/trusty/ceph.yml b/aptly/server/mirror/ubuntu/trusty/ceph.yml
new file mode 100644
index 0000000..0b4d7c3
--- /dev/null
+++ b/aptly/server/mirror/ubuntu/trusty/ceph.yml
@@ -0,0 +1,15 @@
+parameters:
+  aptly:
+    server:
+      mirror:
+        ceph-trusty:
+          source: http://download.ceph.com/debian-hammer
+          distribution: trusty
+          components: main
+          architectures: amd64
+          gpgkeys:
+            - 460F3994
+          publisher:
+            component: extra
+            distributions:
+              - nightly/trusty
diff --git a/aptly/server/mirror/ubuntu/trusty/docker.yml b/aptly/server/mirror/ubuntu/trusty/docker.yml
new file mode 100644
index 0000000..5fc2a76
--- /dev/null
+++ b/aptly/server/mirror/ubuntu/trusty/docker.yml
@@ -0,0 +1,15 @@
+parameters:
+  aptly:
+    server:
+      mirror:
+        docker-trusty:
+          source: https://apt.dockerproject.org/repo
+          distribution: ubuntu-trusty
+          components: main
+          architectures: amd64
+          gpgkeys:
+            - 58118E89F3A912897C070ADBF76221572C52609D
+          publisher:
+            component: extra
+            distributions:
+              - nightly/trusty
diff --git a/aptly/server/mirror/ubuntu/trusty/erlang.yml b/aptly/server/mirror/ubuntu/trusty/erlang.yml
new file mode 100644
index 0000000..aba5e03
--- /dev/null
+++ b/aptly/server/mirror/ubuntu/trusty/erlang.yml
@@ -0,0 +1,15 @@
+parameters:
+  aptly:
+    server:
+      mirror:
+        erlang-trusty:
+          source: http://packages.erlang-solutions.com/ubuntu
+          distribution: trusty
+          components: contrib
+          architectures: amd64
+          gpgkeys:
+            - A14F4FCA
+          publisher:
+            component: extra
+            distributions:
+              - nightly/trusty
diff --git a/aptly/server/mirror/ubuntu/trusty/foreman.yml b/aptly/server/mirror/ubuntu/trusty/foreman.yml
new file mode 100644
index 0000000..fa9658b
--- /dev/null
+++ b/aptly/server/mirror/ubuntu/trusty/foreman.yml
@@ -0,0 +1,26 @@
+parameters:
+  aptly:
+    server:
+      mirror:
+        foreman-trusty:
+          source: http://deb.theforeman.org
+          distribution: trusty
+          components: stable
+          architectures: amd64
+          gpgkeys:
+            - 1AA043B8
+          publisher:
+            component: extra
+            distributions:
+              - nightly/trusty
+        foreman-plugins-trusty:
+          source: http://deb.theforeman.org
+          distribution: plugins
+          components: stable
+          architectures: amd64
+          gpgkeys:
+            - 1AA043B8
+          publisher:
+            component: extra
+            distributions:
+              - nightly/trusty
diff --git a/aptly/server/mirror/ubuntu/trusty/galera.yml b/aptly/server/mirror/ubuntu/trusty/galera.yml
new file mode 100644
index 0000000..d4686e1
--- /dev/null
+++ b/aptly/server/mirror/ubuntu/trusty/galera.yml
@@ -0,0 +1,15 @@
+parameters:
+  aptly:
+    server:
+      mirror:
+        galera-trusty:
+          source: http://releases.galeracluster.com/ubuntu/
+          distribution: trusty
+          components: main
+          architectures: amd64
+          gpgkeys:
+            - BC19DDBA
+          publisher:
+            component: extra
+            distributions:
+              - nightly/trusty
diff --git a/aptly/server/mirror/ubuntu/trusty/grafana.yml b/aptly/server/mirror/ubuntu/trusty/grafana.yml
new file mode 100644
index 0000000..65afab9
--- /dev/null
+++ b/aptly/server/mirror/ubuntu/trusty/grafana.yml
@@ -0,0 +1,15 @@
+parameters:
+  aptly:
+    server:
+      mirror:
+        grafana-trusty:
+          source: https://packagecloud.io/grafana/stable/debian/
+          distribution: wheezy
+          components: main
+          architectures: amd64
+          gpgkeys:
+            - D59097AB
+          publisher:
+            component: extra
+            distributions:
+              - nightly/trusty
diff --git a/aptly/server/mirror/ubuntu/trusty/haproxy.yml b/aptly/server/mirror/ubuntu/trusty/haproxy.yml
new file mode 100644
index 0000000..e69fa20
--- /dev/null
+++ b/aptly/server/mirror/ubuntu/trusty/haproxy.yml
@@ -0,0 +1,15 @@
+parameters:
+  aptly:
+    server:
+      mirror:
+        haproxy-trusty:
+          source: http://ppa.launchpad.net/vbernat/haproxy-1.5/ubuntu
+          distribution: trusty
+          components: main
+          architectures: amd64
+          gpgkeys:
+            - 1C61B9CD
+          publisher:
+            component: extra
+            distributions:
+              - nightly/trusty
diff --git a/aptly/server/mirror/ubuntu/trusty/init.yml b/aptly/server/mirror/ubuntu/trusty/init.yml
new file mode 100644
index 0000000..fa56313
--- /dev/null
+++ b/aptly/server/mirror/ubuntu/trusty/init.yml
@@ -0,0 +1,12 @@
+## Ubuntu trusty
+classes:
+- system.aptly.server.mirror.ubuntu.trusty.grafana
+- system.aptly.server.mirror.ubuntu.trusty.haproxy
+- system.aptly.server.mirror.ubuntu.trusty.salt
+- system.aptly.server.mirror.ubuntu.trusty.sssd
+- system.aptly.server.mirror.ubuntu.trusty.ubuntucloud
+- system.aptly.server.mirror.ubuntu.trusty.ubuntu
+- system.aptly.server.mirror.ubuntu.trusty.erlang
+- system.aptly.server.mirror.ubuntu.trusty.docker
+- system.aptly.server.mirror.ubuntu.trusty.ceph
+- system.aptly.server.mirror.ubuntu.trusty.rabbitmq
diff --git a/aptly/server/mirror/ubuntu/trusty/mos8.yml b/aptly/server/mirror/ubuntu/trusty/mos8.yml
new file mode 100644
index 0000000..7c9fe1a
--- /dev/null
+++ b/aptly/server/mirror/ubuntu/trusty/mos8.yml
@@ -0,0 +1,65 @@
+parameters:
+  aptly:
+    server:
+      mirror:
+        mirantis-openstack-8.0-trusty:
+          source: http://mirror.fuel-infra.org/mos-repos/ubuntu/8.0-mu-3/
+          distribution: mos8.0
+          components: main restricted
+          architectures: amd64
+          gpgkeys:
+            - EC4926EA
+          publisher:
+            component: main
+            distributions:
+              - mos8.0
+        mirantis-openstack-8.0-trusty:
+          source: http://mirror.fuel-infra.org/mos-repos/ubuntu/8.0-mu-3/
+          distribution: mos8.0
+          components: main restricted
+          architectures: amd64
+          key_url: "http://mirror.fuel-infra.org/mos-repos/ubuntu/8.0-mu-3/archive-mos8.0.key"
+          publisher:
+            component: main
+            distributions:
+              - mos8.0
+        mirantis-openstack-8.0-hotfix-trusty:
+          source: http://mirror.fuel-infra.org/mos-repos/ubuntu/8.0-mu-3/
+          distribution: mos8.0-hotfix
+          components: main restricted
+          architectures: amd64
+          key_url: "http://mirror.fuel-infra.org/mos-repos/ubuntu/8.0-mu-3/archive-mos8.0.key"
+          publisher:
+            component: main
+            distributions:
+              - mos8.0-hotfix
+        mirantis-openstack-8.0-proposed-trusty:
+          source: http://mirror.fuel-infra.org/mos-repos/ubuntu/8.0-mu-3/
+          distribution: mos8.0-proposed
+          components: main restricted
+          architectures: amd64
+          key_url: "http://mirror.fuel-infra.org/mos-repos/ubuntu/8.0-mu-3/archive-mos8.0.key"
+          publisher:
+            component: main
+            distributions:
+              - mos8.0-proposed
+        mirantis-openstack-8.0-security-trusty:
+          source: http://mirror.fuel-infra.org/mos-repos/ubuntu/8.0-mu-3/
+          distribution: mos8.0-security
+          components: main restricted
+          architectures: amd64
+          key_url: "http://mirror.fuel-infra.org/mos-repos/ubuntu/8.0-mu-3/archive-mos8.0.key"
+          publisher:
+            component: main
+            distributions:
+              - mos8.0-security
+        mirantis-openstack-8.0-updates-trusty:
+          source: http://mirror.fuel-infra.org/mos-repos/ubuntu/8.0-mu-3/
+          distribution: mos8.0-updates
+          components: main restricted
+          architectures: amd64
+          key_url: "http://mirror.fuel-infra.org/mos-repos/ubuntu/8.0-mu-3/archive-mos8.0.key"
+          publisher:
+            component: main
+            distributions:
+              - mos8.0-updates
diff --git a/aptly/server/mirror/ubuntu/trusty/mos9.yml b/aptly/server/mirror/ubuntu/trusty/mos9.yml
new file mode 100644
index 0000000..e9aeddb
--- /dev/null
+++ b/aptly/server/mirror/ubuntu/trusty/mos9.yml
@@ -0,0 +1,65 @@
+parameters:
+  aptly:
+    server:
+      mirror:
+        mirantis-openstack-9.0-trusty:
+          source: http://mirror.fuel-infra.org/mos-repos/ubuntu/9.0/
+          distribution: mos9.0
+          components: main restricted
+          architectures: amd64
+          gpgkeys:
+            - EC4926EA
+          publisher:
+            component: main
+            distributions:
+              - mos9.0
+        mirantis-openstack-9.0-trusty:
+          source: http://mirror.fuel-infra.org/mos-repos/ubuntu/9.0/
+          distribution: mos9.0
+          components: main restricted
+          architectures: amd64
+          key_url: "http://mirror.fuel-infra.org/mos-repos/ubuntu/9.0/archive-mos9.0.key"
+          publisher:
+            component: main
+            distributions:
+              - mos9.0
+        mirantis-openstack-9.0-hotfix-trusty:
+          source: http://mirror.fuel-infra.org/mos-repos/ubuntu/9.0/
+          distribution: mos9.0-hotfix
+          components: main restricted
+          architectures: amd64
+          key_url: "http://mirror.fuel-infra.org/mos-repos/ubuntu/9.0/archive-mos9.0.key"
+          publisher:
+            component: main
+            distributions:
+              - mos9.0-hotfix
+        mirantis-openstack-9.0-proposed-trusty:
+          source: http://mirror.fuel-infra.org/mos-repos/ubuntu/9.0/
+          distribution: mos9.0-proposed
+          components: main restricted
+          architectures: amd64
+          key_url: "http://mirror.fuel-infra.org/mos-repos/ubuntu/9.0/archive-mos9.0.key"
+          publisher:
+            component: main
+            distributions:
+              - mos9.0-proposed
+        mirantis-openstack-9.0-security-trusty:
+          source: http://mirror.fuel-infra.org/mos-repos/ubuntu/9.0/
+          distribution: mos9.0-security
+          components: main restricted
+          architectures: amd64
+          key_url: "http://mirror.fuel-infra.org/mos-repos/ubuntu/9.0/archive-mos9.0.key"
+          publisher:
+            component: main
+            distributions:
+              - mos9.0-security
+        mirantis-openstack-9.0-updates-trusty:
+          source: http://mirror.fuel-infra.org/mos-repos/ubuntu/9.0/
+          distribution: mos9.0-updates
+          components: main restricted
+          architectures: amd64
+          key_url: "http://mirror.fuel-infra.org/mos-repos/ubuntu/9.0/archive-mos9.0.key"
+          publisher:
+            component: main
+            distributions:
+              - mos9.0-updates
diff --git a/aptly/server/mirror/ubuntu/trusty/rabbitmq.yml b/aptly/server/mirror/ubuntu/trusty/rabbitmq.yml
new file mode 100644
index 0000000..17b0f07
--- /dev/null
+++ b/aptly/server/mirror/ubuntu/trusty/rabbitmq.yml
@@ -0,0 +1,15 @@
+parameters:
+  aptly:
+    server:
+      mirror:
+        rabbitmq-testing-trusty:
+          source: http://www.rabbitmq.com/debian/
+          distribution: testing
+          components: main
+          architectures: amd64
+          gpgkeys:
+            - 056E8E56
+          publisher:
+            component: extra
+            distributions:
+              - nightly/trusty
diff --git a/aptly/server/mirror/ubuntu/trusty/salt.yml b/aptly/server/mirror/ubuntu/trusty/salt.yml
new file mode 100644
index 0000000..8c46007
--- /dev/null
+++ b/aptly/server/mirror/ubuntu/trusty/salt.yml
@@ -0,0 +1,15 @@
+parameters:
+  aptly:
+    server:
+      mirror:
+        salt-2015.8-trusty:
+          source: http://repo.saltstack.com/apt/ubuntu/ubuntu14/2015.8/
+          distribution: trusty
+          components: main
+          architectures: amd64
+          gpgkeys:
+            - DE57BFBE
+          publisher:
+            component: extra
+            distributions:
+              - nightly/trusty
diff --git a/aptly/server/mirror/ubuntu/trusty/sssd.yml b/aptly/server/mirror/ubuntu/trusty/sssd.yml
new file mode 100644
index 0000000..06e17d7
--- /dev/null
+++ b/aptly/server/mirror/ubuntu/trusty/sssd.yml
@@ -0,0 +1,15 @@
+parameters:
+  aptly:
+    server:
+      mirror:
+        sssd-trusty:
+          source: http://ppa.launchpad.net/sssd/updates/ubuntu
+          distribution: trusty
+          components: main
+          architectures: amd64
+          gpgkeys:
+            - CA45F42B
+          publisher:
+            component: extra
+            distributions:
+              - nightly/trusty
diff --git a/aptly/server/mirror/ubuntu/trusty/ubuntu.yml b/aptly/server/mirror/ubuntu/trusty/ubuntu.yml
new file mode 100644
index 0000000..d4e9ba5
--- /dev/null
+++ b/aptly/server/mirror/ubuntu/trusty/ubuntu.yml
@@ -0,0 +1,69 @@
+parameters:
+  aptly:
+    server:
+      mirror:
+        trusty-main:
+          source: http://cz.archive.ubuntu.com/ubuntu/
+          distribution: trusty
+          components: main
+          architectures: amd64
+          gpgkeys:
+            - 40976EAF437D05B5
+            - 437D05B5
+            - C0B21F32
+          publisher:
+            component: main
+            distributions:
+              - nightly/trusty
+        trusty-universe:
+          source: http://cz.archive.ubuntu.com/ubuntu/
+          distribution: trusty
+          components: universe
+          architectures: amd64
+          gpgkeys:
+            - 40976EAF437D05B5
+            - 437D05B5
+            - C0B21F32
+          publisher:
+            component: main
+            distributions:
+              - nightly/trusty
+        trusty-updates:
+          source: http://cz.archive.ubuntu.com/ubuntu/
+          distribution: trusty-updates
+          components: main
+          architectures: amd64
+          gpgkeys:
+            - 40976EAF437D05B5
+            - 437D05B5
+            - C0B21F32
+          publisher:
+            component: main
+            distributions:
+              - nightly/trusty
+        trusty-updates-universe:
+          source: http://cz.archive.ubuntu.com/ubuntu/
+          distribution: trusty-updates
+          components: universe
+          architectures: amd64
+          gpgkeys:
+            - 40976EAF437D05B5
+            - 437D05B5
+            - C0B21F32
+          publisher:
+            component: main
+            distributions:
+              - nightly/trusty
+        trusty-security:
+          source: http://cz.archive.ubuntu.com/ubuntu/
+          distribution: trusty-security
+          components: main
+          architectures: amd64
+          gpgkeys:
+            - 40976EAF437D05B5
+            - 437D05B5
+            - C0B21F32
+          publisher:
+            component: security
+            distributions:
+              - nightly/trusty
diff --git a/aptly/server/mirror/ubuntu/trusty/ubuntucloud.yml b/aptly/server/mirror/ubuntu/trusty/ubuntucloud.yml
new file mode 100644
index 0000000..2fefde0
--- /dev/null
+++ b/aptly/server/mirror/ubuntu/trusty/ubuntucloud.yml
@@ -0,0 +1,48 @@
+parameters:
+  aptly:
+    server:
+      mirror:
+        trusty-updates-juno:
+          source: http://ubuntu-cloud.archive.canonical.com/ubuntu/
+          distribution: trusty-updates/juno
+          components: main
+          architectures: amd64
+          gpgkeys:
+            - EC4926EA
+          publisher:
+            component: juno
+            distributions:
+              - nightly/trusty
+        trusty-updates-kilo:
+          source: http://ubuntu-cloud.archive.canonical.com/ubuntu/
+          distribution: trusty-updates/kilo
+          components: main
+          architectures: amd64
+          gpgkeys:
+            - EC4926EA
+          publisher:
+            component: kilo
+            distributions:
+              - nightly/trusty
+        trusty-updates-liberty:
+          source: http://ubuntu-cloud.archive.canonical.com/ubuntu/
+          distribution: trusty-updates/liberty
+          components: main
+          architectures: amd64
+          gpgkeys:
+            - EC4926EA
+          publisher:
+            component: liberty
+            distributions:
+              - nightly/trusty
+        trusty-updates-mitaka:
+          source: http://ubuntu-cloud.archive.canonical.com/ubuntu/
+          distribution: trusty-updates/mitaka
+          components: main
+          architectures: amd64
+          gpgkeys:
+            - EC4926EA
+          publisher:
+            component: mitaka
+            distributions:
+              - nightly/trusty
diff --git a/aptly/server/mirror/ubuntu/xenial/ceph.yml b/aptly/server/mirror/ubuntu/xenial/ceph.yml
new file mode 100644
index 0000000..53d2ae8
--- /dev/null
+++ b/aptly/server/mirror/ubuntu/xenial/ceph.yml
@@ -0,0 +1,15 @@
+parameters:
+  aptly:
+    server:
+      mirror:
+        ceph-xenial:
+          source: http://download.ceph.com/debian-hammer
+          distribution: xenial
+          components: main
+          architectures: amd64
+          gpgkeys:
+            - 460F3994
+          publisher:
+            component: extra
+            distributions:
+              - nightly/xenial
diff --git a/aptly/server/mirror/ubuntu/xenial/docker.yml b/aptly/server/mirror/ubuntu/xenial/docker.yml
new file mode 100644
index 0000000..64bf728
--- /dev/null
+++ b/aptly/server/mirror/ubuntu/xenial/docker.yml
@@ -0,0 +1,15 @@
+parameters:
+  aptly:
+    server:
+      mirror:
+        docker-xenial:
+          source: https://apt.dockerproject.org/repo
+          distribution: ubuntu-xenial
+          components: main
+          architectures: amd64
+          gpgkeys:
+            - 58118E89F3A912897C070ADBF76221572C52609D
+          publisher:
+            component: extra
+            distributions:
+              - nightly/xenial
diff --git a/aptly/server/mirror/ubuntu/xenial/grafana.yml b/aptly/server/mirror/ubuntu/xenial/grafana.yml
new file mode 100644
index 0000000..ffee38c
--- /dev/null
+++ b/aptly/server/mirror/ubuntu/xenial/grafana.yml
@@ -0,0 +1,15 @@
+parameters:
+  aptly:
+    server:
+      mirror:
+        grafana-xenial:
+          source: https://packagecloud.io/grafana/stable/debian/
+          distribution: jessie
+          components: main
+          architectures: amd64
+          gpgkeys:
+            - D59097AB
+          publisher:
+            component: extra
+            distributions:
+              - nightly/xenial
diff --git a/aptly/server/mirror/ubuntu/xenial/init.yml b/aptly/server/mirror/ubuntu/xenial/init.yml
new file mode 100644
index 0000000..e6805b3
--- /dev/null
+++ b/aptly/server/mirror/ubuntu/xenial/init.yml
@@ -0,0 +1,7 @@
+## Ubuntu xenial
+classes:
+- system.aptly.server.mirror.ubuntu.xenial.ceph
+- system.aptly.server.mirror.ubuntu.xenial.docker
+- system.aptly.server.mirror.ubuntu.xenial.grafana
+- system.aptly.server.mirror.ubuntu.xenial.ubuntu
+- system.aptly.server.mirror.ubuntu.xenial.salt
diff --git a/aptly/server/mirror/ubuntu/xenial/salt.yml b/aptly/server/mirror/ubuntu/xenial/salt.yml
new file mode 100644
index 0000000..e41459f
--- /dev/null
+++ b/aptly/server/mirror/ubuntu/xenial/salt.yml
@@ -0,0 +1,15 @@
+parameters:
+  aptly:
+    server:
+      mirror:
+        salt-2016.3-xenial:
+          source: http://repo.saltstack.com/apt/ubuntu/16.04/amd64/2016.3/
+          distribution: xenial
+          components: main
+          architectures: amd64
+          gpgkeys:
+            - DE57BFBE
+          publisher:
+            component: extra
+            distributions:
+              - nightly/xenial
diff --git a/aptly/server/mirror/ubuntu/xenial/ubuntu.yml b/aptly/server/mirror/ubuntu/xenial/ubuntu.yml
new file mode 100644
index 0000000..b202450
--- /dev/null
+++ b/aptly/server/mirror/ubuntu/xenial/ubuntu.yml
@@ -0,0 +1,69 @@
+parameters:
+  aptly:
+    server:
+      mirror:
+        xenial-main:
+          source: http://cz.archive.ubuntu.com/ubuntu/
+          distribution: xenial
+          components: main
+          architectures: amd64
+          gpgkeys:
+            - 40976EAF437D05B5
+            - 437D05B5
+            - C0B21F32
+          publisher:
+            component: main
+            distributions:
+              - nightly/xenial
+        xenial-universe:
+          source: http://cz.archive.ubuntu.com/ubuntu/
+          distribution: xenial
+          components: universe
+          architectures: amd64
+          gpgkeys:
+            - 40976EAF437D05B5
+            - 437D05B5
+            - C0B21F32
+          publisher:
+            component: main
+            distributions:
+              - nightly/xenial
+        xenial-updates:
+          source: http://cz.archive.ubuntu.com/ubuntu/
+          distribution: xenial-updates
+          components: main
+          architectures: amd64
+          gpgkeys:
+            - 40976EAF437D05B5
+            - 437D05B5
+            - C0B21F32
+          publisher:
+            component: main
+            distributions:
+              - nightly/xenial
+        xenial-updates-universe:
+          source: http://cz.archive.ubuntu.com/ubuntu/
+          distribution: xenial-updates
+          components: universe
+          architectures: amd64
+          gpgkeys:
+            - 40976EAF437D05B5
+            - 437D05B5
+            - C0B21F32
+          publisher:
+            component: main
+            distributions:
+              - nightly/xenial
+        xenial-security:
+          source: http://cz.archive.ubuntu.com/ubuntu/
+          distribution: xenial-security
+          components: main
+          architectures: amd64
+          gpgkeys:
+            - 40976EAF437D05B5
+            - 437D05B5
+            - C0B21F32
+          publisher:
+            component: security
+            distributions:
+              - nightly/xenial