1CDIST-TYPE__ZYPPER_REPO(7) cdist CDIST-TYPE__ZYPPER_REPO(7)
2
3
4
6 cdist-type__zypper_repo - Repository management with zypper
7
9 zypper is usually used on the SuSE distribution to manage repositories.
10
12 None
13
15 state Either "present" or "absent" or "enabled" or "disabled", de‐
16 faults to "present"
17
18 • present - make sure that the repo is available, needs uri and
19 repo_desc for all following states, the repo can be searched
20 via repo_id or uri
21
22 • absent - drop the repo if found +
23
24 • enabled - a repo can have state disabled if installed via
25 zypper service (ris), in this case, you can enable the repo
26
27 • disabled - instead of absent (drop), a repo can also set to
28 disabled, which makes it inaccessible
29
30 uri If supplied, use the uri and not the object id as repo uri.
31
32 repo_desc
33 If supplied, use the description and not the object id as repo
34 description, only used if the state is present and the repo has
35 to be created
36
37 repo_id
38 If supplied, use the id and not the object id as repo id, can be
39 used with state absent, enabled and disabled
40
42 # Ensure testrepo in installed
43 __zypper_repo testrepo --state present --uri http://url.to.your.repo/with/path
44
45 # Drop repo by repo uri
46 __zypper_repo testrepo --state absent --uri http://url.to.your.repo/with/path
47
48 # Drop repo by id number (attention: repos are always numbered from 1 to max)
49 __zypper_repo testrepo --state absent --repo_id 1
50
51 # enable repo by id
52 __zypper_repo testrepo2 --state enabled --repo_id 2
53
54 # enable repo by uri
55 __zypper_repo testrepo3 --state enabled --uri http://url.to.your.repo/with/path
56
57 # disable a repo works like enabling it
58 __zypper_repo testrepo4 --state disabled --repo_id 4
59
61 Daniel Heule <hda--@--sfs.biz>
62
64 Copyright (C) 2013 Daniel Heule. You can redistribute it and/or modify
65 it under the terms of the GNU General Public License as published by
66 the Free Software Foundation, either version 3 of the License, or (at
67 your option) any later version.
68
70 ungleich GmbH 2021
71
72
73
74
757.0.0 Jul 31, 2022 CDIST-TYPE__ZYPPER_REPO(7)