Collapse Mirantis apt pining opts
* Include 'system.linux.system.repo.mcp.apt_mirantis.mirantis_pining'
to all nodes
Prod-related: PROD-25786 (PROD:25786)
Change-Id: I3e8fb9aed212efc70de3aadbd7c0bd39bdac0ef3
(cherry picked from commit 20b8a4c550ad16aaa1eecefd635ea43624b434d6)
diff --git a/linux/system/repo/mcp/apt_mirantis/ceph.yml b/linux/system/repo/mcp/apt_mirantis/ceph.yml
index 6c578a9..0ab91fe 100644
--- a/linux/system/repo/mcp/apt_mirantis/ceph.yml
+++ b/linux/system/repo/mcp/apt_mirantis/ceph.yml
@@ -9,10 +9,6 @@
key: ${_param:linux_system_repo_mirror_mirantis_key}
architectures: amd64
clean_file: true
- pin:
- - pin: 'release o=Mirantis'
- priority: 1100
- package: '*'
# Deprecated since 2018.11+
#parameters:
# _param:
diff --git a/linux/system/repo/mcp/apt_mirantis/extra.yml b/linux/system/repo/mcp/apt_mirantis/extra.yml
index 94c1d14..94a47dd 100644
--- a/linux/system/repo/mcp/apt_mirantis/extra.yml
+++ b/linux/system/repo/mcp/apt_mirantis/extra.yml
@@ -9,7 +9,3 @@
key: ${_param:linux_system_repo_mirror_mirantis_key}
architectures: ${_param:linux_system_architecture}
clean_file: true
- pin:
- - pin: 'release o=Mirantis'
- priority: 1100
- package: '*'
diff --git a/linux/system/repo/mcp/apt_mirantis/hotfix/openstack.yml b/linux/system/repo/mcp/apt_mirantis/hotfix/openstack.yml
index 7f1f668..055cbf4 100644
--- a/linux/system/repo/mcp/apt_mirantis/hotfix/openstack.yml
+++ b/linux/system/repo/mcp/apt_mirantis/hotfix/openstack.yml
@@ -9,7 +9,3 @@
key: ${_param:linux_system_repo_mirror_mirantis_key}
architectures: ${_param:linux_system_architecture}
clean_file: true
- pin:
- - pin: 'release o=Mirantis'
- priority: 1100
- package: '*'
diff --git a/linux/system/repo/mcp/apt_mirantis/hotfix/salt-formulas.yml b/linux/system/repo/mcp/apt_mirantis/hotfix/salt-formulas.yml
index f4219ca..850eece 100644
--- a/linux/system/repo/mcp/apt_mirantis/hotfix/salt-formulas.yml
+++ b/linux/system/repo/mcp/apt_mirantis/hotfix/salt-formulas.yml
@@ -9,7 +9,3 @@
key: ${_param:linux_system_repo_mirror_mirantis_key}
architectures: amd64
clean_file: true
- pin:
- - pin: 'release o=Mirantis'
- priority: 1100
- package: '*'
diff --git a/linux/system/repo/mcp/apt_mirantis/mirantis_pining.yml b/linux/system/repo/mcp/apt_mirantis/mirantis_pining.yml
new file mode 100644
index 0000000..cfa9e3c
--- /dev/null
+++ b/linux/system/repo/mcp/apt_mirantis/mirantis_pining.yml
@@ -0,0 +1,16 @@
+# This is global pin rule for all packages, provided by Mirantis.
+# Quoting official man of apt:
+# `Preferences are a strong power in the hands of a system administrator but they can become also their biggest nightmare if used without care!`
+# aka, don't change and dont' add any new rules, w\o extra neccecity.
+parameters:
+ linux:
+ system:
+ apt:
+ preferences:
+ enabled: true
+ 100:
+ enabled: true
+ name: 'Mirantis origin'
+ pin: 'release o=Mirantis'
+ priority: 1100
+ package: '*'
diff --git a/linux/system/repo/mcp/apt_mirantis/openstack.yml b/linux/system/repo/mcp/apt_mirantis/openstack.yml
index 381e37b..f9140a7 100644
--- a/linux/system/repo/mcp/apt_mirantis/openstack.yml
+++ b/linux/system/repo/mcp/apt_mirantis/openstack.yml
@@ -9,10 +9,6 @@
key: ${_param:linux_system_repo_mirror_mirantis_key}
architectures: ${_param:linux_system_architecture}
clean_file: true
- pin:
- - pin: 'release o=Mirantis'
- priority: 1100
- package: '*'
# DEPRECATED since 2018.10+ release.
#parameters:
# _param:
diff --git a/linux/system/repo/mcp/apt_mirantis/salt-formulas.yml b/linux/system/repo/mcp/apt_mirantis/salt-formulas.yml
index 289e15c..df9fbeb 100644
--- a/linux/system/repo/mcp/apt_mirantis/salt-formulas.yml
+++ b/linux/system/repo/mcp/apt_mirantis/salt-formulas.yml
@@ -9,7 +9,3 @@
key: ${_param:linux_system_repo_mirror_mirantis_key}
architectures: amd64
clean_file: true
- pin:
- - pin: 'release o=Mirantis'
- priority: 1100
- package: '*'
diff --git a/linux/system/repo/mcp/apt_mirantis/update/openstack.yml b/linux/system/repo/mcp/apt_mirantis/update/openstack.yml
index 199873e..924f73f 100644
--- a/linux/system/repo/mcp/apt_mirantis/update/openstack.yml
+++ b/linux/system/repo/mcp/apt_mirantis/update/openstack.yml
@@ -9,7 +9,3 @@
key: ${_param:linux_system_repo_mirror_mirantis_key}
architectures: ${_param:linux_system_architecture}
clean_file: true
- pin:
- - pin: 'release o=Mirantis'
- priority: 1100
- package: '*'
diff --git a/linux/system/repo/mcp/apt_mirantis/update/salt-formulas.yml b/linux/system/repo/mcp/apt_mirantis/update/salt-formulas.yml
index ab9e05a..74868d5 100644
--- a/linux/system/repo/mcp/apt_mirantis/update/salt-formulas.yml
+++ b/linux/system/repo/mcp/apt_mirantis/update/salt-formulas.yml
@@ -9,7 +9,3 @@
key: ${_param:linux_system_repo_mirror_mirantis_key}
architectures: amd64
clean_file: true
- pin:
- - pin: 'release o=Mirantis'
- priority: 1100
- package: '*'
diff --git a/linux/system/single/mcp.yml b/linux/system/single/mcp.yml
index 850a7ac..a77459d 100644
--- a/linux/system/single/mcp.yml
+++ b/linux/system/single/mcp.yml
@@ -1,5 +1,6 @@
classes:
- system.linux.system.single.simple
+- system.linux.system.repo.mcp.apt_mirantis.mirantis_pining
parameters:
linux:
system: