Module mikeknox/zypprepo 0.0.1
| Download |
|
Module description
Create zypp/yast repo files for SuSE/openSuSE etc.
Release notes for version 0.0.1
zypprepo type, similiar to/derived from yumrepo.
Derived by Michael Knox (mike at sysam.com.au) from the yumrepo type from puppet 0.25.5
This script is free software; 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 2 of the License, or any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
Usage: zypprepo {“repo_name”: descr => “Test repo for packages”, autorefresh => 0, type => “yast2”, path => “/”, keeppackages => 0, baseurl => “http://somehost/somerepo", enabled => 1, }
Types
zypprepo
Description
The client-side description of a yast repository. Repository configurations are found by parsing /etc/zpp/zypp.conf and the files indicated by reposdir in that file (see zypp.conf(5) for details)
Most parameters are identical to the ones documented in zypp.conf(5)
Continuation lines that zypp supports for example for the baseurl are not supported. No attempt is made to access files included with the **include** directive
Parameters
- name
The name of the repository. This corresponds to the repositoryid parameter in zypp.conf(5).
Properties
- descr
A human readable description of the repository. This corresponds to the name parameter in zypp.conf(5). Set this to ‘absent’ to remove it from the file completely Valid values are
absent. Values can match/.*/.
- mirrorlist
The URL that holds the list of mirrors for this repository. Set this to ‘absent’ to remove it from the file completely Valid values are
absent. Values can match/.*/.
- baseurl
The URL for this repository. Set this to ‘absent’ to remove it from the file completely Valid values are
absent. Values can match/.*/.
- enabled
Whether this repository is enabled or disabled. Possible values are ‘0’, and ‘1’. Set this to ‘absent’ to remove it from the file completely Valid values are
absent. Values can match/(0|1)/.
- gpgcheck
Whether to check the GPG signature on packages installed from this repository. Possible values are ‘0’, and ‘1’.
Set this to ‘absent’ to remove it from the file completely Valid values are
absent. Values can match/(0|1)/.
- gpgkey
The URL for the GPG key with which packages from this repository are signed. Set this to ‘absent’ to remove it from the file completely Valid values are
absent. Values can match/.*/.
- include
A URL from which to include the config. Set this to ‘absent’ to remove it from the file completely Valid values are
absent. Values can match/.*/.
- exclude
List of shell globs. Matching packages will never be considered in updates or installs for this repo. Set this to ‘absent’ to remove it from the file completely Valid values are
absent. Values can match/.*/.
- includepkgs
List of shell globs. If this is set, only packages matching one of the globs will be considered for update or install. Set this to ‘absent’ to remove it from the file completely Valid values are
absent. Values can match/.*/.
- enablegroups
Determines whether zypp will allow the use of package groups for this repository. Possible values are ‘0’, and ‘1’. Set this to ‘absent’ to remove it from the file completely Valid values are
absent. Values can match/(0|1)/.
- failovermethod
Either ‘roundrobin’ or ‘priority’. Set this to ‘absent’ to remove it from the file completely Valid values are
absent. Values can match/roundrobin|priority/.
- keepalive
Either ‘1’ or ‘0’. This tells zypp whether or not HTTP/1.1 keepalive should be used with this repository. Set this to ‘absent’ to remove it from the file completely Valid values are
absent. Values can match/(0|1)/.
- timeout
Number of seconds to wait for a connection before timing out. Set this to ‘absent’ to remove it from the file completely Valid values are
absent. Values can match/[0-9]+/.
- metadata_expire
Number of seconds after which the metadata will expire. Set this to ‘absent’ to remove it from the file completely Valid values are
absent. Values can match/[0-9]+/.
- protect
Enable or disable protection for this repository. Requires that the protectbase plugin is installed and enabled. Set this to ‘absent’ to remove it from the file completely Valid values are
absent. Values can match/(0|1)/.
- priority
Priority of this repository from 1-99. Requires that the priorities plugin is installed and enabled. Set this to ‘absent’ to remove it from the file completely Valid values are
absent. Values can match/[1-9][0-9]?/.
- proxy
URL to the proxy server for this repository. Set this to ‘absent’ to remove it from the file completely Valid values are
absent. Values can match/.*/.
- proxy_username
Username for this proxy. Set this to ‘absent’ to remove it from the file completely Valid values are
absent. Values can match/.*/.
- proxy_password
Password for this proxy. Set this to ‘absent’ to remove it from the file completely Valid values are
absent. Values can match/.*/.
- type
Type for this repository. Set this to ‘absent’ to remove it from the file completely Valid values are
absent. Values can match/.*/.
- autorefresh
Enable or disable autorefresh for this repository.Set this to ‘absent’ to remove it from the file completely Valid values are
absent. Values can match/(0|1)/.
- path
Path for this repository. Set this to ‘absent’ to remove it from the file completely Valid values are
absent. Values can match/.*/.
- keeppackages
Enable RPM caching this repository.Set this to ‘absent’ to remove it from the file completely Valid values are
absent. Values can match/(0|1)/.