.\" Man page generated from reStructuredText. . .TH "CDIST-TYPE__ZYPPER_REPO" "7" "Feb 16, 2019" "4.10.6" "cdist" . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .SH NAME .sp cdist\-type__zypper_repo \- Repository management with zypper .SH DESCRIPTION .sp zypper is usually used on the SuSE distribution to manage repositories. .SH REQUIRED PARAMETERS .sp None .SH OPTIONAL PARAMETERS .INDENT 0.0 .TP .B state Either "present" or "absent" or "enabled" or "disabled", defaults to "present" .INDENT 7.0 .IP \(bu 2 \fBpresent\fP \- make sure that the repo is available, needs uri and repo_desc for all following states, the repo can be searched via repo_id or uri .IP \(bu 2 \fBabsent\fP \- drop the repo if found + .IP \(bu 2 \fBenabled\fP \- a repo can have state disabled if installed via zypper service (ris), in this case, you can enable the repo .IP \(bu 2 \fBdisabled\fP \- instead of absent (drop), a repo can also set to disabled, which makes it inaccessible .UNINDENT .TP .B uri If supplied, use the uri and not the object id as repo uri. .TP .B repo_desc If supplied, use the description and not the object id as repo description, only used if the state is present and the repo has to be created .TP .B repo_id If supplied, use the id and not the object id as repo id, can be used with state absent, enabled and disabled .UNINDENT .SH EXAMPLES .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C # Ensure testrepo in installed __zypper_repo testrepo \-\-state present \-\-uri http://url.to.your.repo/with/path # Drop repo by repo uri __zypper_repo testrepo \-\-state absent \-\-uri http://url.to.your.repo/with/path # Drop repo by id number (attention: repos are always numbered from 1 to max) __zypper_repo testrepo \-\-state absent \-\-repo_id 1 # enable repo by id __zypper_repo testrepo2 \-\-state enabled \-\-repo_id 2 # enable repo by uri __zypper_repo testrepo3 \-\-state enabled \-\-uri http://url.to.your.repo/with/path # disable a repo works like enabling it __zypper_repo testrepo4 \-\-state disabled \-\-repo_id 4 .ft P .fi .UNINDENT .UNINDENT .SH AUTHORS .sp Daniel Heule <\fI\%hda\-\-@\-\-sfs.biz\fP> .SH COPYING .sp Copyright (C) 2013 Daniel Heule. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. .\" Generated by docutils manpage writer. .