2
0

test(pkgs_spec): update for CVE releases 3000.2 & 2019.2.4

* https://docs.saltstack.com/en/latest/topics/releases/3000.2.html
* https://docs.saltstack.com/en/latest/topics/releases/2019.2.4.html
This commit is contained in:
Imran Iqbal 2020-05-01 03:16:09 +01:00
parent 7f19796517
commit 965588b108
No known key found for this signature in database
GPG Key ID: 6D8629439D2B7819
3 changed files with 45 additions and 19 deletions

View File

@ -1,11 +1,23 @@
# frozen_string_literal: true # frozen_string_literal: true
# Prepare platform "finger"
platform_finger = "#{platform[:name]}-#{platform[:release].split('.')[0]}"
version = version =
case platform[:family] case platform[:family]
when 'redhat'
'2019.2.3-1.el7'
when 'debian' when 'debian'
'2019.2.3+ds-1' '2019.2.4+ds-1'
when 'redhat'
case platform_finger
when 'centos-7'
'2019.2.4-1.el7'
when 'centos-6'
'2019.2.4-1.el6'
when 'amazon-2'
'2019.2.4-1.amzn2'
when 'amazon-2018'
'2019.2.4-1.amzn1'
end
end end
control 'salt packages' do control 'salt packages' do

View File

@ -1,20 +1,27 @@
# frozen_string_literal: true # frozen_string_literal: true
# Prepare platform "finger"
platform_finger = "#{platform[:name]}-#{platform[:release].split('.')[0]}"
version = version =
case platform[:family] case platform[:family]
when 'debian'
'2019.2.4+ds-1'
when 'redhat' when 'redhat'
case platform[:name] case platform_finger
when 'amazon' when 'centos-8'
'2019.2.3-1.amzn2' '2019.2.4-1.el8'
when 'centos' when 'centos-7'
'2019.2.3-1.el8' '2019.2.4-1.el7'
when 'amazon-2'
'2019.2.4-1.amzn2'
end end
when 'fedora' when 'fedora'
'2019.2.1rc0-3.fc31' # Issue in the upstream repo, should be `3000.2`
'3000.1-1.fc31'
when 'suse' when 'suse'
# Issue in the upstream repo, should be `2019.2.4`
'2019.2.0-lp151.28.1' '2019.2.0-lp151.28.1'
when 'debian'
'2019.2.3+ds-1'
end end
control 'salt packages' do control 'salt packages' do

View File

@ -1,20 +1,27 @@
# frozen_string_literal: true # frozen_string_literal: true
# Prepare platform "finger"
platform_finger = "#{platform[:name]}-#{platform[:release].split('.')[0]}"
version = version =
case platform[:family] case platform[:family]
when 'debian'
'3000.2+ds-1'
when 'redhat' when 'redhat'
case platform[:name] case platform_finger
when 'amazon' when 'centos-8'
'3000.1-1.amzn2' '3000.2-1.el8'
when 'centos' when 'centos-7'
'3000.1-1.el8' '3000.2-1.el7'
when 'amazon-2'
'3000.2-1.amzn2'
end end
when 'fedora' when 'fedora'
# Issue in the upstream repo, should be `3000.2`
'3000.1-1.fc31' '3000.1-1.fc31'
when 'suse' when 'suse'
'3000-lp151.28.1' # Issue in the upstream repo, should be `3000.2`
when 'debian' '2019.2.0-lp151.28.1'
'3000.1+ds-1'
end end
control 'salt packages' do control 'salt packages' do