File tree 1 file changed +10
-3
lines changed
test/integration/repo/controls
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
3
3
case platform . family
4
- when 'redhat' , 'fedora'
5
- repo_file = '/etc/yum.repos.d/pgdg13.repo'
4
+ when 'redhat' , 'fedora' , 'suse'
5
+ os_name_repo_file = {
6
+ 'opensuse' => '/etc/zypp/repos.d/pgdg-sles-13.repo'
7
+ }
8
+ os_name_repo_file . default = '/etc/yum.repos.d/pgdg13.repo'
9
+
6
10
os_name_repo_url = {
7
11
'amazon' => 'https://download.postgresql.org/pub/repos/yum/13/redhat/rhel-7-$basearch' ,
8
12
'fedora' => 'https://download.postgresql.org/pub/repos/yum/13/fedora/fedora-$releasever-$basearch' ,
9
- 'default ' => 'https://download.postgresql.org/pub/repos/yum /13/redhat/rhel -$releasever-$basearch'
13
+ 'opensuse ' => 'https://download.postgresql.org/pub/repos/zypp /13/suse/sles -$releasever-$basearch'
10
14
}
15
+ os_name_repo_url . default = 'https://download.postgresql.org/pub/repos/yum/13/redhat/rhel-$releasever-$basearch'
16
+
11
17
repo_url = os_name_repo_url [ platform . name ]
18
+ repo_file = os_name_repo_file [ platform . name ]
12
19
13
20
when 'debian'
14
21
# Inspec does not provide a `codename` matcher, so we add ours
You can’t perform that action at this time.
0 commit comments