Class: Ansible::Ruby::Modules::Yum_repository
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Yum_repository
- Defined in:
- lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb
Instance Method Summary collapse
-
#async ⇒ :yes, ...
If set to C(yes) Yum will download packages and metadata from this repo in parallel, if possible.
-
#bandwidth ⇒ Integer?
Maximum available network bandwidth in bytes/second.
-
#baseurl ⇒ String?
URL to the directory where the yum repository’s ‘repodata’ directory lives.,This or the I(mirrorlist) parameter is required if I(state) is set to C(present).
-
#cost ⇒ Integer?
Relative cost of accessing this repository.
-
#deltarpm_metadata_percentage ⇒ Integer?
When the relative size of deltarpm metadata vs pkgs is larger than this, deltarpm metadata is not downloaded from the repo.
-
#deltarpm_percentage ⇒ Integer?
When the relative size of delta vs pkg is larger than this, delta is not used.
-
#description ⇒ String?
A human readable string describing the repository.,This parameter is only required if I(state) is set to C(present).
-
#enabled ⇒ :yes, ...
This tells yum whether or not use this repository.
-
#enablegroups ⇒ :yes, ...
Determines whether yum will allow the use of package groups for this repository.
-
#exclude ⇒ Object?
List of packages to exclude from updates or installs.
-
#failovermethod ⇒ :roundrobin, ...
C(roundrobin) randomly selects a URL out of the list of URLs to start with and proceeds through each of them as it encounters a failure contacting the host.,C(priority) starts from the first I(baseurl) listed and reads through them sequentially.
-
#file ⇒ String?
File to use to save the repo in.
-
#gpgcakey ⇒ Object?
A URL pointing to the ASCII-armored CA key file for the repository.
-
#gpgcheck ⇒ :yes, ...
Tells yum whether or not it should perform a GPG signature check on packages.
-
#gpgkey ⇒ String?
A URL pointing to the ASCII-armored GPG key file for the repository.
-
#http_caching ⇒ :all, ...
Determines how upstream HTTP caches are instructed to handle any HTTP downloads that Yum does.,C(all) means that all HTTP downloads should be cached.,C(packages) means that only RPM package downloads should be cached (but not repository metadata downloads).,C(none) means that no HTTP downloads should be cached.
-
#include ⇒ Object?
Include external configuration file.
-
#includepkgs ⇒ Object?
List of packages you want to only use from a repository.
-
#ip_resolve ⇒ 4, ...
Determines how yum resolves host names.,C(4) or C(IPv4) - resolve to IPv4 addresses only.,C(6) or C(IPv6) - resolve to IPv6 addresses only.
-
#keepalive ⇒ :yes, ...
This tells yum whether or not HTTP/1.1 keepalive should be used with this repository.
-
#keepcache ⇒ 0, ...
Either C(1) or C(0).
-
#metadata_expire ⇒ Integer?
Time (in seconds) after which the metadata will expire.,Default value is 6 hours.
-
#metadata_expire_filter ⇒ :never, ...
Filter the I(metadata_expire) time, allowing a trade of speed for accuracy if a command doesn’t require it.
-
#metalink ⇒ Object?
Specifies a URL to a metalink file for the repomd.xml, a list of mirrors for the entire repository are generated by converting the mirrors for the repomd.xml file to a I(baseurl).
-
#mirrorlist ⇒ String?
Specifies a URL to a file containing a list of baseurls.,This or the I(baseurl) parameter is required if I(state) is set to C(present).
-
#mirrorlist_expire ⇒ Integer?
Time (in seconds) after which the mirrorlist locally cached will expire.,Default value is 6 hours.
-
#name ⇒ String
Unique repository ID.,This parameter is only required if I(state) is set to C(present) or C(absent).
-
#params ⇒ String?
Option used to allow the user to overwrite any of the other options.
-
#password ⇒ Object?
Password to use with the username for basic authentication.
-
#priority ⇒ Integer?
Enforce ordered protection of repositories.
-
#protect ⇒ :yes, ...
Protect packages from updates from other repositories.
-
#proxy ⇒ Object?
URL to the proxy server that yum should use.
-
#proxy_password ⇒ Object?
Username to use for proxy.
-
#proxy_username ⇒ Object?
Password for this proxy.
-
#repo_gpgcheck ⇒ :yes, ...
This tells yum whether or not it should perform a GPG signature check on the repodata from this repository.
-
#reposdir ⇒ String?
Directory where the C(.repo) files will be stored.
-
#retries ⇒ Integer?
Set the number of times any attempt to retrieve a file should retry before returning an error.
-
#s3_enabled ⇒ :yes, ...
Enables support for S3 repositories.,This option only works if the YUM S3 plugin is installed.
-
#skip_if_unavailable ⇒ :yes, ...
If set to C(yes) yum will continue running if this repository cannot be contacted for any reason.
-
#ssl_check_cert_permissions ⇒ :yes, ...
Whether yum should check the permissions on the paths for the certificates on the repository (both remote and local).,If we can’t read any of the files then yum will force I(skip_if_unavailable) to be C(yes).
-
#sslcacert ⇒ Object?
Path to the directory containing the databases of the certificate authorities yum should use to verify SSL certificates.
-
#sslclientcert ⇒ Object?
Path to the SSL client certificate yum should use to connect to repos/remote sites.
-
#sslclientkey ⇒ Object?
Path to the SSL client key yum should use to connect to repos/remote sites.
-
#sslverify ⇒ :yes, ...
Defines whether yum should verify SSL certificates/hosts at all.
-
#state ⇒ :absent, ...
State of the repo file.
-
#throttle ⇒ Object?
Enable bandwidth throttling for downloads.,This option can be expressed as a absolute data rate in bytes/sec.
-
#timeout ⇒ Integer?
Number of seconds to wait for a connection before timing out.
-
#ui_repoid_vars ⇒ String?
When a repository id is displayed, append these yum variables to the string if they are used in the I(baseurl)/etc.
-
#username ⇒ Object?
Username to use for basic authentication to a repo or really any url.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_options, attribute, #initialize, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#async ⇒ :yes, ...
Returns If set to C(yes) Yum will download packages and metadata from this repo in parallel, if possible.
10 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 10 attribute :async |
#bandwidth ⇒ Integer?
Returns Maximum available network bandwidth in bytes/second. Used with the I(throttle) option.,If I(throttle) is a percentage and bandwidth is C(0) then bandwidth throttling will be disabled. If I(throttle) is expressed as a data rate (bytes/sec) then this option is ignored. Default is C(0) (no bandwidth throttling).
14 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 14 attribute :bandwidth |
#baseurl ⇒ String?
Returns URL to the directory where the yum repository’s ‘repodata’ directory lives.,This or the I(mirrorlist) parameter is required if I(state) is set to C(present).
18 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 18 attribute :baseurl |
#cost ⇒ Integer?
Returns Relative cost of accessing this repository. Useful for weighing one repo’s packages as greater/less than any other.
22 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 22 attribute :cost |
#deltarpm_metadata_percentage ⇒ Integer?
Returns When the relative size of deltarpm metadata vs pkgs is larger than this, deltarpm metadata is not downloaded from the repo. Note that you can give values over C(100), so C(200) means that the metadata is required to be half the size of the packages. Use C(0) to turn off this check, and always download metadata.
26 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 26 attribute :deltarpm_metadata_percentage |
#deltarpm_percentage ⇒ Integer?
Returns When the relative size of delta vs pkg is larger than this, delta is not used. Use C(0) to turn off delta rpm processing. Local repositories (with file:// I(baseurl)) have delta rpms turned off by default.
30 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 30 attribute :deltarpm_percentage |
#description ⇒ String?
Returns A human readable string describing the repository.,This parameter is only required if I(state) is set to C(present).
34 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 34 attribute :description |
#enabled ⇒ :yes, ...
Returns This tells yum whether or not use this repository.
38 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 38 attribute :enabled |
#enablegroups ⇒ :yes, ...
Returns Determines whether yum will allow the use of package groups for this repository.
42 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 42 attribute :enablegroups |
#exclude ⇒ Object?
Returns List of packages to exclude from updates or installs. This should be a space separated list. Shell globs using wildcards (eg. C(*) and C(?)) are allowed.,The list can also be a regular YAML array.
46 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 46 attribute :exclude |
#failovermethod ⇒ :roundrobin, ...
Returns C(roundrobin) randomly selects a URL out of the list of URLs to start with and proceeds through each of them as it encounters a failure contacting the host.,C(priority) starts from the first I(baseurl) listed and reads through them sequentially.
49 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 49 attribute :failovermethod |
#file ⇒ String?
Returns File to use to save the repo in. Defaults to the value of I(name).
53 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 53 attribute :file |
#gpgcakey ⇒ Object?
Returns A URL pointing to the ASCII-armored CA key file for the repository.
57 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 57 attribute :gpgcakey |
#gpgcheck ⇒ :yes, ...
Returns Tells yum whether or not it should perform a GPG signature check on packages.
60 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 60 attribute :gpgcheck |
#gpgkey ⇒ String?
Returns A URL pointing to the ASCII-armored GPG key file for the repository.
64 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 64 attribute :gpgkey |
#http_caching ⇒ :all, ...
Returns Determines how upstream HTTP caches are instructed to handle any HTTP downloads that Yum does.,C(all) means that all HTTP downloads should be cached.,C(packages) means that only RPM package downloads should be cached (but not repository metadata downloads).,C(none) means that no HTTP downloads should be cached.
68 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 68 attribute :http_caching |
#include ⇒ Object?
Returns Include external configuration file. Both, local path and URL is supported. Configuration file will be inserted at the position of the I(include=) line. Included files may contain further include lines. Yum will abort with an error if an inclusion loop is detected.
72 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 72 attribute :include |
#includepkgs ⇒ Object?
Returns List of packages you want to only use from a repository. This should be a space separated list. Shell globs using wildcards (eg. C(*) and C(?)) are allowed. Substitution variables (e.g. C($releasever)) are honored here.,The list can also be a regular YAML array.
75 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 75 attribute :includepkgs |
#ip_resolve ⇒ 4, ...
Returns Determines how yum resolves host names.,C(4) or C(IPv4) - resolve to IPv4 addresses only.,C(6) or C(IPv6) - resolve to IPv6 addresses only.
78 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 78 attribute :ip_resolve |
#keepalive ⇒ :yes, ...
Returns This tells yum whether or not HTTP/1.1 keepalive should be used with this repository. This can improve transfer speeds by using one connection when downloading multiple files from a repository.
82 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 82 attribute :keepalive |
#keepcache ⇒ 0, ...
Returns Either C(1) or C(0). Determines whether or not yum keeps the cache of headers and packages after successful installation.
86 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 86 attribute :keepcache |
#metadata_expire ⇒ Integer?
Returns Time (in seconds) after which the metadata will expire.,Default value is 6 hours.
90 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 90 attribute :metadata_expire |
#metadata_expire_filter ⇒ :never, ...
Returns Filter the I(metadata_expire) time, allowing a trade of speed for accuracy if a command doesn’t require it. Each yum command can specify that it requires a certain level of timeliness quality from the remote repos. from “I’m about to install/upgrade, so this better be current” to “Anything that’s available is good enough”.,C(never) - Nothing is filtered, always obey I(metadata_expire).,C(read-only:past) - Commands that only care about past information are filtered from metadata expiring. Eg. I(yum history) info (if history needs to lookup anything about a previous transaction, then by definition the remote package was available in the past).,C(read-only:present) - Commands that are balanced between past and future. Eg. I(yum list yum).,C(read-only:future) - Commands that are likely to result in running other commands which will require the latest metadata. Eg. I(yum check-update).,Note that this option does not override “yum clean expire-cache”.
94 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 94 attribute :metadata_expire_filter |
#metalink ⇒ Object?
Returns Specifies a URL to a metalink file for the repomd.xml, a list of mirrors for the entire repository are generated by converting the mirrors for the repomd.xml file to a I(baseurl).
98 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 98 attribute :metalink |
#mirrorlist ⇒ String?
Returns Specifies a URL to a file containing a list of baseurls.,This or the I(baseurl) parameter is required if I(state) is set to C(present).
101 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 101 attribute :mirrorlist |
#mirrorlist_expire ⇒ Integer?
Returns Time (in seconds) after which the mirrorlist locally cached will expire.,Default value is 6 hours.
105 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 105 attribute :mirrorlist_expire |
#name ⇒ String
Returns Unique repository ID.,This parameter is only required if I(state) is set to C(present) or C(absent).
109 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 109 attribute :name |
#params ⇒ String?
Returns Option used to allow the user to overwrite any of the other options. To remove an option, set the value of the option to C(null).
113 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 113 attribute :params |
#password ⇒ Object?
Returns Password to use with the username for basic authentication.
117 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 117 attribute :password |
#priority ⇒ Integer?
Returns Enforce ordered protection of repositories. The value is an integer from 1 to 99.,This option only works if the YUM Priorities plugin is installed.
120 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 120 attribute :priority |
#protect ⇒ :yes, ...
Returns Protect packages from updates from other repositories.
124 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 124 attribute :protect |
#proxy ⇒ Object?
Returns URL to the proxy server that yum should use. Set to C(none) to disable the global proxy setting.
128 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 128 attribute :proxy |
#proxy_password ⇒ Object?
Returns Username to use for proxy.
131 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 131 attribute :proxy_password |
#proxy_username ⇒ Object?
Returns Password for this proxy.
134 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 134 attribute :proxy_username |
#repo_gpgcheck ⇒ :yes, ...
Returns This tells yum whether or not it should perform a GPG signature check on the repodata from this repository.
137 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 137 attribute :repo_gpgcheck |
#reposdir ⇒ String?
Returns Directory where the C(.repo) files will be stored.
141 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 141 attribute :reposdir |
#retries ⇒ Integer?
Returns Set the number of times any attempt to retrieve a file should retry before returning an error. Setting this to C(0) makes yum try forever.
145 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 145 attribute :retries |
#s3_enabled ⇒ :yes, ...
Returns Enables support for S3 repositories.,This option only works if the YUM S3 plugin is installed.
149 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 149 attribute :s3_enabled |
#skip_if_unavailable ⇒ :yes, ...
Returns If set to C(yes) yum will continue running if this repository cannot be contacted for any reason. This should be set carefully as all repos are consulted for any given command.
153 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 153 attribute :skip_if_unavailable |
#ssl_check_cert_permissions ⇒ :yes, ...
Returns Whether yum should check the permissions on the paths for the certificates on the repository (both remote and local).,If we can’t read any of the files then yum will force I(skip_if_unavailable) to be C(yes). This is most useful for non-root processes which use yum on repos that have client cert files which are readable only by root.
157 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 157 attribute :ssl_check_cert_permissions |
#sslcacert ⇒ Object?
Returns Path to the directory containing the databases of the certificate authorities yum should use to verify SSL certificates.
161 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 161 attribute :sslcacert |
#sslclientcert ⇒ Object?
Returns Path to the SSL client certificate yum should use to connect to repos/remote sites.
164 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 164 attribute :sslclientcert |
#sslclientkey ⇒ Object?
Returns Path to the SSL client key yum should use to connect to repos/remote sites.
167 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 167 attribute :sslclientkey |
#sslverify ⇒ :yes, ...
Returns Defines whether yum should verify SSL certificates/hosts at all.
170 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 170 attribute :sslverify |
#state ⇒ :absent, ...
Returns State of the repo file.
174 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 174 attribute :state |
#throttle ⇒ Object?
Returns Enable bandwidth throttling for downloads.,This option can be expressed as a absolute data rate in bytes/sec. An SI prefix (k, M or G) may be appended to the bandwidth value.
178 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 178 attribute :throttle |
#timeout ⇒ Integer?
Returns Number of seconds to wait for a connection before timing out.
181 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 181 attribute :timeout |
#ui_repoid_vars ⇒ String?
Returns When a repository id is displayed, append these yum variables to the string if they are used in the I(baseurl)/etc. Variables are appended in the order listed (and found).
185 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 185 attribute :ui_repoid_vars |
#username ⇒ Object?
Returns Username to use for basic authentication to a repo or really any url.
189 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb', line 189 attribute :username |