fix aptly local repos
diff --git a/linux/system/repo_local/contrail.yml b/linux/system/repo_local/contrail.yml
new file mode 100644
index 0000000..c78e68c
--- /dev/null
+++ b/linux/system/repo_local/contrail.yml
@@ -0,0 +1,13 @@
+parameters:
+  _param:
+    contrail_repo_pin_priority: 200
+  linux:
+    system:
+      repo:
+        contrail:
+          refresh_db: ${_param:linux_repo_refresh_db}
+          source: "deb [arch=amd64] http://${_param:local_repo_url}/contrail trusty main"
+          pin:
+          - pin: 'release l=Local Contrail APT repository'
+            priority: ${_param:contrail_repo_pin_priority}
+            package: '*'
diff --git a/linux/system/repo_local/grafana.yml b/linux/system/repo_local/grafana.yml
new file mode 100644
index 0000000..a94d1be
--- /dev/null
+++ b/linux/system/repo_local/grafana.yml
@@ -0,0 +1,9 @@
+parameters:
+  linux:
+    system:
+      repo:
+        grafana:
+          refresh_db: ${_param:linux_repo_refresh_db}
+          source: "deb [arch=amd64] http://${_param:local_repo_url}/ubuntu-${_param:linux_system_codename}/ nightly grafana"
+          architectures: amd64
+          key_url: "http://${_param:local_repo_url}/public.gpg"
diff --git a/linux/system/repo_local/influxdb.yml b/linux/system/repo_local/influxdb.yml
new file mode 100644
index 0000000..7e3fb93
--- /dev/null
+++ b/linux/system/repo_local/influxdb.yml
@@ -0,0 +1,9 @@
+parameters:
+  linux:
+    system:
+      repo:influxdb
+        grafana:
+          refresh_db: ${_param:linux_repo_refresh_db}
+          source: "deb [arch=amd64] http://${_param:local_repo_url}/ubuntu-${_param:linux_system_codename}/ nightly influxdb"
+          architectures: amd64
+          key_url: "http://${_param:local_repo_url}/public.gpg"
diff --git a/linux/system/repo_local/mos8.yml b/linux/system/repo_local/mos8.yml
new file mode 100644
index 0000000..29c6636
--- /dev/null
+++ b/linux/system/repo_local/mos8.yml
@@ -0,0 +1,53 @@
+parameters:
+  linux:
+    system:
+      repo:
+        mirantis_openstack:
+          source: "deb [arch=amd64] http://${_param:local_repo_url}/mos8/ mos8.0 main"
+          architectures: amd64
+          key_url: "http://${_param:local_repo_url}/public.gpg"
+          pin:
+          - pin: 'release s=mos8.0'
+            priority: 1100
+            package: '*'
+        #mos8_openstack_hotfix:
+        #  source: "deb [arch=amd64] http://${_param:local_repo_url}/mos8/ mos8.0-hotfix main"
+        #  architectures: amd64
+        #  key_url: "http://${_param:local_repo_url}/public.gpg"
+        #  pin:
+        #  - pin: 'release s=mos8.0-hotfix'
+        #    priority: 1100
+        #    package: '*'
+        mos8_openstack_proposed:
+          source: "deb [arch=amd64] http://${_param:local_repo_url}/mos8/ mos8.0-proposed main"
+          architectures: amd64
+          key_url: "http://${_param:local_repo_url}/public.gpg"
+          pin:
+          - pin: 'release s=mos8.0-proposed'
+            priority: 1100
+            package: '*'
+        #mos8_openstack_security:
+        #  source: "deb [arch=amd64] http://${_param:local_repo_url}/mos8/ mos8.0-security main"
+        #  architectures: amd64
+        #  key_url: "http://${_param:local_repo_url}/public.gpg"
+        #  pin:
+        #  - pin: 'release s=mos8.0-security'
+        #    priority: 1100
+        #    package: '*'
+        mos8_openstack_updates:
+          source: "deb [arch=amd64] http://${_param:local_repo_url}/mos8/ mos8.0-updates main"
+          architectures: amd64
+          key_url: "http://${_param:local_repo_url}/public.gpg"
+          pin:
+          - pin: 'release s=mos8.0-updates'
+            priority: 1100
+            package: '*'
+        #mos8_murano:
+        #  refresh_db: ${_param:linux_repo_refresh_db}
+        #  source: "deb [arch=amd64] http://${_param:local_repo_url}/mos8/ mos8.0 murano"
+        #  architectures: amd64
+        #  key_url: "http://${_param:local_repo_url}/public.gpg"
+        #  pin:
+        #  - pin: 'release s=mos8.0-proposed'
+        #    priority: 1100
+        #    package: '*'
\ No newline at end of file
diff --git a/linux/system/repo_local/mos9.yml b/linux/system/repo_local/mos9.yml
new file mode 100644
index 0000000..6886185
--- /dev/null
+++ b/linux/system/repo_local/mos9.yml
@@ -0,0 +1,53 @@
+parameters:
+  linux:
+    system:
+      repo:
+        mos9_openstack:
+          source: "deb [arch=amd64] http://${_param:local_repo_url}/mos9/ mos9.0 main"
+          architectures: amd64
+          key_url: "http://${_param:local_repo_url}/public.gpg"
+          pin:
+          - pin: 'release s=mos9.0'
+            priority: 1100
+            package: '*'
+        mos9_openstack_hotfix:
+          source: "deb [arch=amd64] http://${_param:local_repo_url}/mos9/ mos9.0-hotfix main"
+          architectures: amd64
+          key_url: "http://${_param:local_repo_url}/public.gpg"
+          pin:
+          - pin: 'release s=mos9.0-hotfix'
+            priority: 1100
+            package: '*'
+        mos9_openstack_proposed:
+          source: "deb [arch=amd64] http://${_param:local_repo_url}/mos9/ mos9.0-proposed main"
+          architectures: amd64
+          key_url: "http://${_param:local_repo_url}/public.gpg"
+          pin:
+          - pin: 'release s=mos9.0-proposed'
+            priority: 1100
+            package: '*'
+        mos9_openstack_security:
+          source: "deb [arch=amd64] http://${_param:local_repo_url}/mos9/ mos9.0-security main"
+          architectures: amd64
+          key_url: "http://${_param:local_repo_url}/public.gpg"
+          pin:
+          - pin: 'release s=mos9.0-security'
+            priority: 1100
+            package: '*'
+        mos9_openstack_updates:
+          source: "deb [arch=amd64] http://${_param:local_repo_url}/mos9/ mos9.0-updates main"
+          architectures: amd64
+          key_url: "http://${_param:local_repo_url}/public.gpg"
+          pin:
+          - pin: 'release s=mos9.0-updates'
+            priority: 1100
+            package: '*'
+        mos9_murano:
+          refresh_db: ${_param:linux_repo_refresh_db}
+          source: "deb [arch=amd64] http://${_param:local_repo_url}/mos9/ mos9.0 murano"
+          architectures: amd64
+          key_url: "http://${_param:local_repo_url}/public.gpg"
+          pin:
+          - pin: 'release s=mos8.0-proposed'
+            priority: 1100
+            package: '*'
diff --git a/linux/system/repo_local/opencontrail.yml b/linux/system/repo_local/opencontrail.yml
new file mode 100644
index 0000000..352b925
--- /dev/null
+++ b/linux/system/repo_local/opencontrail.yml
@@ -0,0 +1,10 @@
+parameters:
+  linux:
+    system:
+      repo:
+        tcpcloud_contrail:
+          # oc30 is now by default
+          refresh_db: ${_param:linux_repo_refresh_db}
+          source: "deb [arch=amd64] http://${_param:local_repo_url}/ubuntu-${_param:linux_system_codename}/ nightly tcp-oc30"
+          architectures: amd64
+          key_url: "http://${_param:local_repo_url}/public.gpg"
diff --git a/linux/system/repo_local/openstack.yml b/linux/system/repo_local/openstack.yml
new file mode 100644
index 0000000..4754d12
--- /dev/null
+++ b/linux/system/repo_local/openstack.yml
@@ -0,0 +1,51 @@
+classes:
+- system.linux.system.repo.salt
+parameters:
+  linux:
+    system:
+      repo:
+        mirantis:
+          refresh_db: ${_param:linux_repo_refresh_db}
+          source: "deb [arch=amd64] http://${_param:local_repo_url}/mos8/ mos8.0 main"
+          architectures: amd64
+          key_url: "http://${_param:local_repo_url}/public.gpg"
+          pin:
+          - pin: 'release s=mos8.0'
+            priority: 1000
+            package: '*'
+        mirantis_openstack_hotfix:
+          refresh_db: ${_param:linux_repo_refresh_db}
+          source: "deb [arch=amd64] http://${_param:local_repo_url}/mos8/ mos8.0-hotfix main"
+          architectures: amd64
+          key_url: "http://${_param:local_repo_url}/public.gpg"
+          pin:
+          - pin: 'release s=mos8.0-hotfix'
+            priority: 1000
+            package: '*'
+        mirantis_openstack_proposed:
+          refresh_db: ${_param:linux_repo_refresh_db}
+          source: "deb [arch=amd64] http://${_param:local_repo_url}/mos8/ mos8.0-proposed main"
+          architectures: amd64
+          key_url: "http://${_param:local_repo_url}/public.gpg"
+          pin:
+          - pin: 'release s=mos8.0-proposed'
+            priority: 1000
+            package: '*'
+        mirantis_openstack_security:
+          refresh_db: ${_param:linux_repo_refresh_db}
+          source: "deb [arch=amd64] http://${_param:local_repo_url}/mos8/ mos8.0-security main"
+          architectures: amd64
+          key_url: "http://${_param:local_repo_url}/public.gpg"
+          pin:
+          - pin: 'release s=mos8.0-security'
+            priority: 1000
+            package: '*'
+        mirantis_openstack_updates:
+          refresh_db: ${_param:linux_repo_refresh_db}
+          source: "deb [arch=amd64] http://${_param:local_repo_url}/mos8/ mos8.0-updates main"
+          architectures: amd64
+          key_url: "http://${_param:local_repo_url}/public.gpg"
+          pin:
+          - pin: 'release s=mos8.0-updates'
+            priority: 1000
+            package: '*'
diff --git a/linux/system/repo_local/salt.yml b/linux/system/repo_local/salt.yml
new file mode 100644
index 0000000..83af754
--- /dev/null
+++ b/linux/system/repo_local/salt.yml
@@ -0,0 +1,9 @@
+parameters:
+  linux:
+    system:
+      repo:
+        salt:
+          refresh_db: ${_param:linux_repo_refresh_db}
+          source: "deb [arch=amd64] http://${_param:local_repo_url}/ubuntu-${_param:linux_system_codename}/ nightly salt"
+          architectures: amd64
+          key_url: "http://${_param:local_repo_url}/public.gpg"
diff --git a/linux/system/repo_local/salt_formulas.yml b/linux/system/repo_local/salt_formulas.yml
new file mode 100644
index 0000000..12b1b12
--- /dev/null
+++ b/linux/system/repo_local/salt_formulas.yml
@@ -0,0 +1,8 @@
+parameters:
+  linux:
+    system:
+      repo:
+        salt_formulas:
+          refresh_db: ${_param:linux_repo_refresh_db}
+          source: "deb [arch=amd64] http://${_param:local_repo_url}/ubuntu-${_param:linux_system_codename}/ nightly tcp-salt"
+          architectures: amd64
diff --git a/linux/system/repo_local/sensu.yml b/linux/system/repo_local/sensu.yml
new file mode 100644
index 0000000..df418fd
--- /dev/null
+++ b/linux/system/repo_local/sensu.yml
@@ -0,0 +1,9 @@
+parameters:
+  linux:
+    system:
+      repo:
+        sensu:
+          refresh_db: ${_param:linux_repo_refresh_db}
+          source: "deb [arch=amd64] http://${_param:local_repo_url}/ubuntu-${_param:linux_system_codename}/ nightly sensu"
+          architectures: amd64
+          key_url: "http://${_param:local_repo_url}/public.gpg"
diff --git a/linux/system/repo_local/tcp-elastic.yml b/linux/system/repo_local/tcp-elastic.yml
new file mode 100644
index 0000000..5e1fc64
--- /dev/null
+++ b/linux/system/repo_local/tcp-elastic.yml
@@ -0,0 +1,9 @@
+parameters:
+  linux:
+    system:
+      repo:
+        tcpcloud_elasticsearch:
+          refresh_db: ${_param:linux_repo_refresh_db}
+          source: "deb [arch=amd64] http://${_param:local_repo_url}/ubuntu-${_param:linux_system_codename}/ nightly tcp-elastic"
+          architectures: amd64
+          key_url: "http://${_param:local_repo_url}/public.gpg"
diff --git a/linux/system/repo_local/tcp-extra.yml b/linux/system/repo_local/tcp-extra.yml
new file mode 100644
index 0000000..5d68de8
--- /dev/null
+++ b/linux/system/repo_local/tcp-extra.yml
@@ -0,0 +1,10 @@
+parameters:
+  linux:
+    system:
+      repo:
+        tcpcloud:
+          default: true
+          refresh_db: ${_param:linux_repo_refresh_db}
+          source: "deb [arch=amd64] http://${_param:local_repo_url}/ubuntu-${_param:linux_system_codename}/ nightly tcp-extra"
+          architectures: amd64
+          key_url: "http://${_param:local_repo_url}/public.gpg"
diff --git a/linux/system/repo_local/tcp-liberty.yml b/linux/system/repo_local/tcp-liberty.yml
new file mode 100644
index 0000000..389b976
--- /dev/null
+++ b/linux/system/repo_local/tcp-liberty.yml
@@ -0,0 +1,9 @@
+parameters:
+  linux:
+    system:
+      repo:
+        tcpcloud:
+          refresh_db: ${_param:linux_repo_refresh_db}
+          source: "deb [arch=amd64] http://${_param:local_repo_url}/ubuntu-${_param:linux_system_codename}/ nightly tcp-liberty"
+          architectures: amd64
+          key_url: "http://${_param:local_repo_url}/public.gpg"
diff --git a/linux/system/repo_local/tcp-salt.yml b/linux/system/repo_local/tcp-salt.yml
new file mode 100644
index 0000000..86ef0ac
--- /dev/null
+++ b/linux/system/repo_local/tcp-salt.yml
@@ -0,0 +1,9 @@
+parameters:
+  linux:
+    system:
+      repo:
+        tcpcloud:
+          refresh_db: ${_param:linux_repo_refresh_db}
+          source: "deb [arch=amd64] http://${_param:local_repo_url}/ubuntu-${_param:linux_system_codename}/ nightly tcp-salt"
+          architectures: amd64
+          key_url: "http://${_param:local_repo_url}/public.gpg"
diff --git a/linux/system/repo_local/tcp.yml b/linux/system/repo_local/tcp.yml
new file mode 100644
index 0000000..a84b808
--- /dev/null
+++ b/linux/system/repo_local/tcp.yml
@@ -0,0 +1,10 @@
+parameters:
+  linux:
+    system:
+      repo:
+        tcpcloud_main:
+          default: false
+          refresh_db: ${_param:linux_repo_refresh_db}
+          source: "deb [arch=amd64] http://${_param:local_repo_url}/ubuntu-${_param:linux_system_codename}/ nightly tcp"
+          architectures: amd64
+          key_url: "http://${_param:local_repo_url}/public.gpg"
diff --git a/linux/system/repo_local/ubuntu-liberty.yml b/linux/system/repo_local/ubuntu-liberty.yml
new file mode 100644
index 0000000..9f2c365
--- /dev/null
+++ b/linux/system/repo_local/ubuntu-liberty.yml
@@ -0,0 +1,10 @@
+parameters:
+  linux:
+    system:
+      repo:
+        cloudarchive:
+          refresh_db: ${_param:linux_repo_refresh_db}
+          source: "deb [arch=amd64] http://${_param:local_repo_url}/${_param:linux_system_codename}/ nightly liberty"
+          architectures: amd64
+          default: true
+          key_url: "http://${_param:local_repo_url}/public.gpg"
diff --git a/linux/system/repo_local/ubuntu.yml b/linux/system/repo_local/ubuntu.yml
new file mode 100644
index 0000000..d510183
--- /dev/null
+++ b/linux/system/repo_local/ubuntu.yml
@@ -0,0 +1,23 @@
+parameters:
+  linux:
+    system:
+      repo:
+        ubuntu:
+          refresh_db: ${_param:linux_repo_refresh_db}
+          source: "deb [arch=amd64] http://${_param:local_repo_url}/ubuntu ${_param:linux_system_codename} main universe restricted"
+          architectures: amd64
+          default: true
+          key_url: "http://${_param:local_repo_url}/public.gpg"
+        ubuntu-updates:
+          refresh_db: ${_param:linux_repo_refresh_db}
+          source: "deb [arch=amd64] http://${_param:local_repo_url}/ubuntu ${_param:linux_system_codename}-updates main universe restricted"
+          architectures: amd64
+          default: true
+          key_url: "http://${_param:local_repo_url}/public.gpg"
+        ubuntu-security:
+          refresh_db: ${_param:linux_repo_refresh_db}
+          source: "deb [arch=amd64] http://${_param:local_repo_url}/ubuntu ${_param:linux_system_codename}-security main universe restricted"
+          architectures: amd64
+          default: true
+          key_url: "http://${_param:local_repo_url}/public.gpg"
+