Refactor apt_mirantis/saltstack
* Default salt_version 2017.7
Partial: PROD-19803 (PROD:19803)
Change-Id: I71d165880d093c7e479861bdbf39d25e2a54e4da
diff --git a/linux/system/repo/keystorage/saltstack_2016_3.yml b/linux/system/repo/keystorage/saltstack.yml
similarity index 100%
rename from linux/system/repo/keystorage/saltstack_2016_3.yml
rename to linux/system/repo/keystorage/saltstack.yml
diff --git a/linux/system/repo/mcp/apt_mirantis/saltstack.yml b/linux/system/repo/mcp/apt_mirantis/saltstack.yml
index ec7d320..22b3bb8 100644
--- a/linux/system/repo/mcp/apt_mirantis/saltstack.yml
+++ b/linux/system/repo/mcp/apt_mirantis/saltstack.yml
@@ -1,18 +1,19 @@
+classes:
+- system.linux.system.repo.keystorage.saltstack
parameters:
_param:
apt_mk_version: stable
- salt_version: 2016.3
- linux_system_repo_mcp_saltstack_version: ${_param:apt_mk_version}
+ salt_version: 2017.7
+ linux_system_repo_url: http://mirror.mirantis.com/${_param:apt_mk_version}/
+ linux_system_repo_mcp_saltstack_url: ${_param:linux_system_repo_url}/saltstack-${_param:salt_version}/
linux:
system:
repo:
mcp_saltstack:
- source: "deb [arch=amd64] http://mirror.mirantis.com/${_param:linux_system_repo_mcp_saltstack_version}/saltstack-${_param:salt_version}/${_param:linux_system_codename}/ ${_param:linux_system_codename} main"
+ source: "deb [arch=amd64] ${_param:linux_system_repo_mcp_saltstack_url}/${_param:linux_system_codename}/ ${_param:linux_system_codename} main"
architectures: amd64
- key_id: 0E08A149DE57BFBE
- key_server: keyserver.ubuntu.com
clean_file: true
pin:
- pin: 'release o=SaltStack'
priority: 1100
- package: '*'
\ No newline at end of file
+ package: '*'
diff --git a/linux/system/repo/mcp/apt_mirantis/saltstack_2016_3.yml b/linux/system/repo/mcp/apt_mirantis/saltstack_2016_3.yml
index c0eabe3..26f1a02 100644
--- a/linux/system/repo/mcp/apt_mirantis/saltstack_2016_3.yml
+++ b/linux/system/repo/mcp/apt_mirantis/saltstack_2016_3.yml
@@ -1,19 +1,6 @@
classes:
-- system.linux.system.repo.keystorage.saltstack_2016_3
+- system.linux.system.repo.keystorage.saltstack
+- system.linux.system.repo.mcp.apt_mirantis.saltstack
parameters:
_param:
- apt_mk_version: stable
salt_version: 2016.3
- linux_system_repo_url: http://mirror.mirantis.com/${_param:apt_mk_version}/
- linux_system_repo_mcp_saltstack_url: ${_param:linux_system_repo_url}/saltstack-2016.3/
- linux:
- system:
- repo:
- mcp_saltstack:
- source: "deb [arch=amd64] ${_param:linux_system_repo_mcp_saltstack_url}/${_param:linux_system_codename}/ ${_param:linux_system_codename} main"
- architectures: amd64
- clean_file: true
- pin:
- - pin: 'release o=SaltStack'
- priority: 1100
- package: '*'
diff --git a/linux/system/repo_local/mcp/apt_mirantis/saltstack.yml b/linux/system/repo_local/mcp/apt_mirantis/saltstack.yml
index 5b2a904..f9c8c50 100644
--- a/linux/system/repo_local/mcp/apt_mirantis/saltstack.yml
+++ b/linux/system/repo_local/mcp/apt_mirantis/saltstack.yml
@@ -1,7 +1,7 @@
parameters:
_param:
apt_mk_version: stable
- salt_version: 2016.3
+ salt_version: 2017.7
linux_system_repo_mcp_saltstack_version: ${_param:apt_mk_version}
linux:
system:
@@ -14,4 +14,4 @@
pin:
- pin: 'release a=${_param:linux_system_repo_mcp_saltstack_version}'
priority: 1100
- package: '*'
\ No newline at end of file
+ package: '*'