File tree Expand file tree Collapse file tree 8 files changed +25
-11
lines changed
zypper.ZypperRepositories Expand file tree Collapse file tree 8 files changed +25
-11
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,15 @@ class DnfRepositories(FactBase):
16
16
17
17
[
18
18
{
19
- "name ": "CentOS-$releasever - Apps ",
20
- "baseurl ": "http://mirror.centos.org/$contentdir/$ releasever/Apps/$basearch/os/ ",
21
- "gpgcheck ": "1 ",
19
+ "repoid ": "baseos ",
20
+ "name ": "AlmaLinux $ releasever - BaseOS ",
21
+ "mirrorlist ": "https://mirrors.almalinux.org/mirrorlist/$releasever/baseos ",
22
22
"enabled": "1",
23
- "gpgkey": "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial",
23
+ "gpgcheck": "1",
24
+ "countme": "1",
25
+ "gpgkey": "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9",
26
+ "metadata_expire": "86400",
27
+ "enabled_metadata": "1"
24
28
},
25
29
]
26
30
"""
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ def _parse_yum_or_zypper_repositories(output):
32
32
repos .append (current_repo )
33
33
current_repo = {}
34
34
35
+ current_repo ["repoid" ] = line [1 :- 1 ]
35
36
current_repo ["name" ] = line [1 :- 1 ]
36
37
37
38
if current_repo and "=" in line :
Original file line number Diff line number Diff line change @@ -16,11 +16,15 @@ class YumRepositories(FactBase):
16
16
17
17
[
18
18
{
19
- "name ": "CentOS-$releasever - Apps ",
20
- "baseurl ": "http://mirror.centos.org/$contentdir/$ releasever/Apps/$basearch/os/ ",
21
- "gpgcheck ": "1 ",
19
+ "repoid ": "baseos ",
20
+ "name ": "AlmaLinux $ releasever - BaseOS ",
21
+ "mirrorlist ": "https://mirrors.almalinux.org/mirrorlist/$releasever/baseos ",
22
22
"enabled": "1",
23
- "gpgkey": "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial",
23
+ "gpgcheck": "1",
24
+ "countme": "1",
25
+ "gpgkey": "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9",
26
+ "metadata_expire": "86400",
27
+ "enabled_metadata": "1"
24
28
},
25
29
]
26
30
"""
Original file line number Diff line number Diff line change @@ -16,11 +16,11 @@ class ZypperRepositories(FactBase):
16
16
17
17
[
18
18
{
19
+ "repoid": "repo-oss",
19
20
"name": "Main Repository",
20
21
"enabled": "1",
21
- "autorefresh": "0",
22
- "baseurl": "http://download.opensuse.org/distribution/leap/$releasever/repo/oss/",
23
- "type": "rpm-md",
22
+ "autorefresh": "1",
23
+ "baseurl": "http://download.opensuse.org/distribution/leap/$releasever/repo/oss/"
24
24
},
25
25
]
26
26
"""
Original file line number Diff line number Diff line change 7
7
],
8
8
"fact" : [
9
9
{
10
+ "repoid" : " rhel-atomic-7-cdk-3.6-source-rpms" ,
10
11
"name" : " Red Hat Container Development Kit 3.6 /(Source RPMs)"
11
12
}
12
13
]
Original file line number Diff line number Diff line change 10
10
],
11
11
"fact" : [
12
12
{
13
+ "repoid" : " somerepo" ,
13
14
"name" : " somerepo" ,
14
15
"baseurl" : " abc"
15
16
},
16
17
{
18
+ "repoid" : " anotherrepo" ,
17
19
"name" : " anotherrepo"
18
20
}
19
21
]
Original file line number Diff line number Diff line change 10
10
],
11
11
"fact" : [
12
12
{
13
+ "repoid" : " somerepo" ,
13
14
"name" : " somerepo" ,
14
15
"baseurl" : " abc"
15
16
}
Original file line number Diff line number Diff line change 10
10
],
11
11
"fact" : [
12
12
{
13
+ "repoid" : " somerepo" ,
13
14
"name" : " somerepo" ,
14
15
"baseurl" : " abc"
15
16
}
You can’t perform that action at this time.
0 commit comments