Classes
yum
: Manage yum (client, server, and key management)yum::server
: Manage a yum repository serviceyum::updatesd
: Manage yum-updatesd which is available on EL5, though not EL6 This is defaulted to being disabled.
Defined types
yum::repo
: Manage individual yum repo files in /etc/yum.repos.d This was usedyum::rpm_gpg_key
: Downloads a public gpg key for a yum repo and installs the key Uses wget and rpimport commands
Manage yum (client, server, and key management)
include ::yum
The following parameters are available in the yum
class.
Data type: Stdlib::Absolutepath
Set the path to the yum.conf file, representing a fully qualified name.
Default value: '/etc/yum.conf'
Data type: String
Set owner access to the yum.conf file, representing a user.
Default value: 'root'
Data type: String
Set group access to the yum.conf file, representing a group.
Default value: 'root'
Data type: Stdlib::Filemode
Set access permissions for the yum.conf file, in numeric notation.
Default value: '0644'
Data type: Boolean
Trigger if files in /etc/yum.repos.d should get managed by Puppet exclusivly. If set to true, all unmanged files in /etc/yum.repos.d (and below) will get removed.
Default value: false
Data type: String
Set owner access to the /etc/yum.repos.d directory, representing a user.
Default value: 'root'
Data type: String
Set group access to the /etc/yum.repos.d directory, representing a group.
Default value: 'root'
Data type: Stdlib::Filemode
Set access permissions for the /etc/yum.repos.d directory, in numeric notation.
Default value: '0755'
Data type: Boolean
Trigger to merge all found instances of yum::repos in Hiera. This is useful for specifying repositories at different levels of the hierarchy and having them all included in the catalog.
Default value: true
Data type: Boolean
Trigger to merge all found instances of yum::rpm_gpg_keys in Hiera. This is useful for specifying repositories at different levels of the hierarchy and having them all included in the catalog.
Default value: true
Data type: Optional[Hash]
Hash of repos to pass to yum::repo. See yum::repo for more details.
Default value: undef
Data type: Optional[Hash]
Hash of repos to pass to yum::rpm_gpg_keys. See yum::rpm_gpg_key for more details.
Default value: undef
Data type: Boolean
Trigger to merge all found instances of yum::exclude in Hiera. This is useful for specifying repositories at different levels of the hierarchy and having them all included in the catalog.
Default value: false
Data type: Array
color_list_available_downgrade setting in the main section of yum.conf. Valid values are: 'bg:black', 'bg:blue', 'bg:cyan', 'bg:green', 'bg:magenta', 'bg:red', 'bg:white', 'bg:yellow', 'blink', 'bold', 'dim', 'fg:black', 'fg:blue', 'fg:cyan', 'fg:green', 'fg:magenta', 'fg:red', 'fg:white', 'fg:yellow', 'reverse', 'underline', When empty, it will not be present in yum.conf.
Default value: []
Data type: Array
color_list_available_install setting in the main section of yum.conf. Valid values are: 'bg:black', 'bg:blue', 'bg:cyan', 'bg:green', 'bg:magenta', 'bg:red', 'bg:white', 'bg:yellow', 'blink', 'bold', 'dim', 'fg:black', 'fg:blue', 'fg:cyan', 'fg:green', 'fg:magenta', 'fg:red', 'fg:white', 'fg:yellow', 'reverse', 'underline', When empty, it will not be present in yum.conf.
Default value: []
Data type: Array
color_list_available_reinstall setting in the main section of yum.conf. Valid values are: 'bg:black', 'bg:blue', 'bg:cyan', 'bg:green', 'bg:magenta', 'bg:red', 'bg:white', 'bg:yellow', 'blink', 'bold', 'dim', 'fg:black', 'fg:blue', 'fg:cyan', 'fg:green', 'fg:magenta', 'fg:red', 'fg:white', 'fg:yellow', 'reverse', 'underline', When empty, it will not be present in yum.conf.
Default value: []
Data type: Array
color_list_available_upgrade setting in the main section of yum.conf. Valid values are: 'bg:black', 'bg:blue', 'bg:cyan', 'bg:green', 'bg:magenta', 'bg:red', 'bg:white', 'bg:yellow', 'blink', 'bold', 'dim', 'fg:black', 'fg:blue', 'fg:cyan', 'fg:green', 'fg:magenta', 'fg:red', 'fg:white', 'fg:yellow', 'reverse', 'underline', When empty, it will not be present in yum.conf.
Default value: []
Data type: Array
color_list_installed_extra setting in the main section of yum.conf. Valid values are: 'bg:black', 'bg:blue', 'bg:cyan', 'bg:green', 'bg:magenta', 'bg:red', 'bg:white', 'bg:yellow', 'blink', 'bold', 'dim', 'fg:black', 'fg:blue', 'fg:cyan', 'fg:green', 'fg:magenta', 'fg:red', 'fg:white', 'fg:yellow', 'reverse', 'underline', When empty, it will not be present in yum.conf.
Default value: []
Data type: Array
color_list_installed_newer setting in the main section of yum.conf. Valid values are: 'bg:black', 'bg:blue', 'bg:cyan', 'bg:green', 'bg:magenta', 'bg:red', 'bg:white', 'bg:yellow', 'blink', 'bold', 'dim', 'fg:black', 'fg:blue', 'fg:cyan', 'fg:green', 'fg:magenta', 'fg:red', 'fg:white', 'fg:yellow', 'reverse', 'underline', When empty, it will not be present in yum.conf.
Default value: []
Data type: Array
color_list_installed_older setting in the main section of yum.conf. Valid values are: 'bg:black', 'bg:blue', 'bg:cyan', 'bg:green', 'bg:magenta', 'bg:red', 'bg:white', 'bg:yellow', 'blink', 'bold', 'dim', 'fg:black', 'fg:blue', 'fg:cyan', 'fg:green', 'fg:magenta', 'fg:red', 'fg:white', 'fg:yellow', 'reverse', 'underline', When empty, it will not be present in yum.conf.
Default value: []
Data type: Array
color_list_installed_reinstall setting in the main section of yum.conf. Valid values are: 'bg:black', 'bg:blue', 'bg:cyan', 'bg:green', 'bg:magenta', 'bg:red', 'bg:white', 'bg:yellow', 'blink', 'bold', 'dim', 'fg:black', 'fg:blue', 'fg:cyan', 'fg:green', 'fg:magenta', 'fg:red', 'fg:white', 'fg:yellow', 'reverse', 'underline', When empty, it will not be present in yum.conf.
Default value: []
Data type: Array
color_search_match setting in the main section of yum.conf. Valid values are: 'bg:black', 'bg:blue', 'bg:cyan', 'bg:green', 'bg:magenta', 'bg:red', 'bg:white', 'bg:yellow', 'blink', 'bold', 'dim', 'fg:black', 'fg:blue', 'fg:cyan', 'fg:green', 'fg:magenta', 'fg:red', 'fg:white', 'fg:yellow', 'reverse', 'underline', When empty, it will not be present in yum.conf.
Default value: []
Data type: Array
color_update_installed setting in the main section of yum.conf. Valid values are: 'bg:black', 'bg:blue', 'bg:cyan', 'bg:green', 'bg:magenta', 'bg:red', 'bg:white', 'bg:yellow', 'blink', 'bold', 'dim', 'fg:black', 'fg:blue', 'fg:cyan', 'fg:green', 'fg:magenta', 'fg:red', 'fg:white', 'fg:yellow', 'reverse', 'underline', When empty, it will not be present in yum.conf.
Default value: []
Data type: Array
color_update_local setting in the main section of yum.conf. Valid values are: 'bg:black', 'bg:blue', 'bg:cyan', 'bg:green', 'bg:magenta', 'bg:red', 'bg:white', 'bg:yellow', 'blink', 'bold', 'dim', 'fg:black', 'fg:blue', 'fg:cyan', 'fg:green', 'fg:magenta', 'fg:red', 'fg:white', 'fg:yellow', 'reverse', 'underline', When empty, it will not be present in yum.conf.
Default value: []
Data type: Array
color_update_remote setting in the main section of yum.conf. Valid values are: 'bg:black', 'bg:blue', 'bg:cyan', 'bg:green', 'bg:magenta', 'bg:red', 'bg:white', 'bg:yellow', 'blink', 'bold', 'dim', 'fg:black', 'fg:blue', 'fg:cyan', 'fg:green', 'fg:magenta', 'fg:red', 'fg:white', 'fg:yellow', 'reverse', 'underline', When empty, it will not be present in yum.conf.
Default value: []
Data type: Array
commands setting in the main section of yum.conf. When empty, it will not be present in yum.conf.
Default value: []
Data type: Array
exclude setting in the main section of yum.conf. When empty, it will not be present in yum.conf.
Default value: []
Data type: Array
group_package_types setting in the main section of yum.conf. Valid values are: , 'default', 'mandatory', and 'optional'. When empty, it will not be present in yum.conf.
Default value: []
Data type: Array
history_record_packages setting in the main section of yum.conf. When empty, it will not be present in yum.conf.
Default value: []
Data type: Array
installonlypkgs setting in the main section of yum.conf. When empty, it will not be present in yum.conf.
Default value: []
Data type: Array
kernelpkgnames setting in the main section of yum.conf. When empty, it will not be present in yum.conf.
Default value: []
Data type: Array
protected_packages setting in the main section of yum.conf. When empty, it will not be present in yum.conf.
Default value: []
Data type: Array
tsflags setting in the main section of yum.conf. Valid values are: , 'justdb', 'nocontexts', 'nodocs', 'noscripts', 'notriggers', 'repackage', and 'test' When empty, it will not be present in yum.conf.
Default value: []
Data type: Array[Stdlib::Absolutepath]
reposdir setting in the main section of yum.conf. Takes a list of one or more absolute paths. When empty, it will not be present in yum.conf.
Default value: []
Data type: Optional[Variant[Boolean,String]]
distroverpkg setting in the main section of yum.conf. Will use the format distroverpk=$::operatingsystem-release (downcase) if true. Alternatively you can also specify a free string text instead. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Boolean]
alwaysprompt setting in the main section of yum.conf. True enables, false disables this feature. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Boolean]
assumeyes setting in the main section of yum.conf. True enables, false disables this feature. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Boolean]
clean_requirements_on_remove setting in the main section of yum.conf. True enables, false disables this feature. When clean, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Boolean]
color setting in the main section of yum.conf. True enables, false disables this feature. When clean, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Boolean]
diskspacecheck setting in the main section of yum.conf. True enables, false disables this feature. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Boolean]
enable_group_conditionals setting in the main section of yum.conf. True enables, false disables this feature. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Boolean]
exactarch setting in the main section of yum.conf. True enables, false disables this feature. When undef, it will not be present in yum.conf.
Default value: true
Data type: Optional[Boolean]
gpgcheck setting in the main section of yum.conf. True enables, false disables this feature. When undef, it will not be present in yum.conf.
Default value: false
Data type: Optional[Boolean]
groupremove_leaf_only setting in the main section of yum.conf. True enables, false disables this feature. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Boolean]
history_record setting in the main section of yum.conf. True enables, false disables this feature. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Boolean]
keepalive setting in the main section of yum.conf. True enables, false disables this feature. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Boolean]
keepcache setting in the main section of yum.conf. True enables, false disables this feature. When undef, it will not be present in yum.conf.
Default value: true
Data type: Optional[Boolean]
localpkg_gpgcheck setting in the main section of yum.conf. True enables, false disables this feature. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Boolean]
obsoletes setting in the main section of yum.conf. True enables, false disables this feature. When undef, it will not be present in yum.conf.
Default value: true
Data type: Optional[Boolean]
overwrite_groups setting in the main section of yum.conf. True enables, false disables this feature. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Boolean]
plugins setting in the main section of yum.conf. True enables, false disables this feature. When undef, it will not be present in yum.conf.
Default value: false
Data type: Optional[Boolean]
protected_multilib setting in the main section of yum.conf. True enables, false disables this feature. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Boolean]
repo_gpgcheck setting in the main section of yum.conf. True enables, false disables this feature. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Boolean]
reset_nice setting in the main section of yum.conf. True enables, false disables this feature. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Boolean]
showdupesfromrepos setting in the main section of yum.conf. True enables, false disables this feature. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Boolean]
skip_broken setting in the main section of yum.conf. True enables, false disables this feature. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Boolean]
ssl_check_cert_permissions setting in the main section of yum.conf. True enables, false disables this feature. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Boolean]
sslverify setting in the main section of yum.conf. True enables, false disables this feature. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Boolean]
tolerant setting in the main section of yum.conf. True enables, false disables this feature. When undef, it will not be present in yum.conf.
Default value: false
Data type: Optional[Integer[0, 10]]
debuglevel setting in the main section of yum.conf. Takes any integer between 0 and 10. When undef, it will not be present in yum.conf.
Default value: 2
Data type: Optional[Integer[0, 10]]
errorlevel setting in the main section of yum.conf. Takes any integer between 0 and 10. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Integer]
bandwidth setting in the main section of yum.conf. Takes any integer. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Integer]
installonly_limit setting in the main section of yum.conf. Takes any integer. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Integer]
mirrorlist_expire setting in the main section of yum.conf. Takes any integer. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Integer]
recent setting in the main section of yum.conf. Takes any integer. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Integer]
retries setting in the main section of yum.conf. Takes any integer. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Integer]
timeout setting in the main section of yum.conf. Takes any integer. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Stdlib::Absolutepath]
cachedir setting in the main section of yum.conf. When undef, it will not be present in yum.conf.
Default value: '/var/cache/yum/$basearch/$releasever'
Data type: Optional[Stdlib::Absolutepath]
installroot setting in the main section of yum.conf. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Stdlib::Absolutepath]
logfile setting in the main section of yum.conf. When undef, it will not be present in yum.conf.
Default value: '/var/log/yum.log'
Data type: Optional[Stdlib::Absolutepath]
persistdir setting in the main section of yum.conf. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Stdlib::Absolutepath]
pluginconfpath setting in the main section of yum.conf. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Stdlib::Absolutepath]
pluginpath setting in the main section of yum.conf. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Stdlib::Absolutepath]
sslcacert setting in the main section of yum.conf. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Stdlib::Absolutepath]
sslclientcert setting in the main section of yum.conf. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Stdlib::Absolutepath]
sslclientkey setting in the main section of yum.conf. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Stdlib::Httpurl]
bugtracker_url setting in the main section of yum.conf. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Stdlib::Httpurl]
proxy setting in the main section of yum.conf. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[String]
password setting in the main section of yum.conf. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[String]
proxy_password setting in the main section of yum.conf. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[String]
proxy_username setting in the main section of yum.conf. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[String]
syslog_device setting in the main section of yum.conf. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[String]
syslog_facility setting in the main section of yum.conf. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[String]
syslog_ident setting in the main section of yum.conf. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[String]
username setting in the main section of yum.conf. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Variant[Integer,Float,Pattern[/^\d+(.\d+|)(k|M|G)*$/]]]
throttle setting in the main section of yum.conf. Rate in bytes/sec, allows a suffix of k, M, or G to be appended. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Variant[Integer,Pattern[/^(\d+(m|h|d)*|never|)$/]]]
metadata_expire setting in the main section of yum.conf. Time in seconds, allows a suffix of m, h, or d to specify minutes, hours, or days. Alternatively you can also specify the word never instead. When undef, it will not be present in yum.conf.
Default value: '6h'
Data type: Optional[Enum['cmds','commands','default','single-user-commands','users']]
history_list_view setting in the main section of yum.conf. Valid values are: 'cmds', 'commands', 'default', 'single-user-commands', or 'users'. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Enum['group:all','group:main','group:primary','group:small','instant']]
mdpolicy setting in the main section of yum.conf. Valid values are: 'group:all', 'group:main', 'group:primary', 'group:small', or 'instant'. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Enum['critical','debug','emergency','error','info','warn']]
rpmverbosity setting in the main section of yum.conf. Valid values are: 'critical', 'debug', 'emergency', 'error', 'info', or 'warn'. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Enum['all','none','packages']]
http_caching setting in the main section of yum.conf. Valid values are: 'all', 'none', or 'packages'. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Enum['all','best']]
multilib_policy setting in the main section of yum.conf. Valid values are: 'all' or 'best'. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Enum['last', 'newest']]
pkgpolicy setting in the main section of yum.conf. Valid values are: 'last' or 'newest'. When undef, it will not be present in yum.conf.
Default value: undef
Manage a yum repository service
The following parameters are available in the yum::server
class.
Data type: String
Set email address for server administration contact. Will be used for ServerAdmin in Apache vhost configuration.
Default value: 'root@localhost'
Data type: Stdlib::Absolutepath
Set absolute path to document root. Will be used for DocumentRoot Apache vhost configuration.
Default value: '/opt/repos'
Data type: String
Set relative path to GPG keys directory which will be in $docroot directory. $docroot/$gpg_keys_path will be created and used.
Default value: 'keys'
Data type: String
Set user who signs the packages. Will be used as %_gpg_name in /root/.rpmmacros.
Default value: 'Root'
Data type: String
Set servername for yum repository. Will be used for ServerName in Apache vhost configuration.
Default value: 'yum'
Data type: Array[String, 1]
Set serveraliases for yum repository. Will be used for ServerAlias Apache vhost configuration.
Default value: [
Data type: Stdlib::IP::Address::Nosubnet
Set listen IP for yum repository server. Will be used for VirtualHost in Apache vhost configuration.
Default value: $::ipaddress
Manage yum-updatesd which is available on EL5, though not EL6 This is defaulted to being disabled.
The following parameters are available in the yum::updatesd
class.
Data type: String
Specify name of yum updatesd package.
Default value: 'yum-updatesd'
Data type: String
Set ensure attribute for package resource. Valid values are: 'present', 'absent', 'latest', and 'purged'.
Default value: 'absent'
Data type: String
Specify name of yum updatesd service.
Default value: 'yum-updatesd'
Data type: Stdlib::Ensure::Service
Set ensure attribute for service resource. Valid values are: 'running' and 'stopped'.
Default value: 'stopped'
Data type: Variant[String,Boolean]
Set enable attribute for service resource. Valid values are: 'true', 'false', 'manual', and 'mark'.
Default value: false
in favor of the yumrepo type, which cannot manage files in that directory.
yum::repo { 'redhat-base':
gpgcheck => true,
}
The following parameters are available in the yum::repo
defined type.
Data type: Enum['absent', 'present']
Set to "present" or "absent". When absent, removes the repository configuration file from the node modeled on the behavior of the File type's ensure parameter.
Default value: 'present'
Data type: Stdlib::Filemode
Set the file mode of the repository configuration file.
Default value: '0400'
Data type: Stdlib::Absolutepath
Specify the path of the directory for yum repository files.
Default value: '/etc/yum.repos.d'
Data type: Optional[Boolean]
enabled setting in the repository file. True enables, false disables this feature. When undef, it will not be present.
Default value: true
Data type: Optional[Boolean]
enablegroups setting in the repository file. True enables, false disables this feature. When undef, it will not be present.
Default value: undef
Data type: Optional[Boolean]
gpgcheck setting in the repository file. True enables, false disables this feature. When undef, it will not be present.
Default value: false
Data type: Optional[Boolean]
keepalive setting in the repository file. True enables, false disables this feature. When undef, it will not be present.
Default value: undef
Data type: Optional[Boolean]
repo_gpgcheck setting in the repository file. True enables, false disables this feature. When undef, it will not be present.
Default value: undef
Data type: Optional[Boolean]
skip_if_unavailable setting in the repository file. True enables, false disables this feature. When undef, it will not be present.
Default value: undef
Data type: Optional[Boolean]
ssl_check_cert_permissions setting in the repository file. True enables, false disables this feature. When undef, it will not be present.
Default value: undef
Data type: Optional[Boolean]
sslverify setting in the repository file. True enables, false disables this feature. When undef, it will not be present.
Default value: undef
Data type: Optional[Integer]
bandwidth setting in the repository file. Takes any integer. When undef, it will not be present.
Default value: undef
Data type: Optional[Integer]
cost setting in the repository file. Takes any integer. When undef, it will not be present.
Default value: undef
Data type: Optional[Integer]
mirrorlist_expire setting in the repository file. Takes any integer. When undef, it will not be present.
Default value: undef
Data type: Optional[Integer]
retries setting in the repository file. Takes any integer. When undef, it will not be present.
Default value: undef
Data type: Optional[Integer]
timeout settingg in the repository file. Takes any integer. When undef, it will not be present.
Default value: undef
Data type: Optional[String]
name setting in the repository file. Defaults to the name of the defined type. When undef, it will not be present.
Default value: $name
Data type: Optional[String]
password setting in the repository file. When undef, it will not be present.
Default value: undef
Data type: Optional[String]
proxy_password setting in the repository file. When undef, it will not be present.
Default value: undef
Data type: Optional[String]
proxy_username setting in the repository file. When undef, it will not be present.
Default value: undef
Data type: Optional[String]
repositoryid setting in the repository file. When undef, it will not be present.
Default value: undef
Data type: Optional[String]
username setting in the repository file. When undef, it will not be present.
Default value: undef
Data type: Array[Variant[Stdlib::Httpurl,Pattern[/^(file|ftp):\/\//]]]
baseurl setting in the repository file. Accepts HTTP/HTTPS/FTP/FILE URLs. When undef, it will not be present.
Default value: []
Data type: Optional[Stdlib::Httpurl]
gpgcakey setting in the repository file. Accepts HTTP/HTTPS URLs. When undef, it will not be present.
Default value: undef
Data type: Array[Variant[Stdlib::Httpurl,Pattern[/^(file|ftp):\/\//]]]
gpgkey setting in the repository file. Accepts HTTP/HTTPS/FTP/FILE URLs. When undef, it will not be present.
Default value: []
Data type: Optional[Stdlib::Httpurl]
metalink setting in the repository file. Accepts HTTP/HTTPS URLs. When undef, it will not be present.
Default value: undef
Data type: Optional[Stdlib::Httpurl]
mirrorlist setting in the repository file. Accepts HTTP/HTTPS URLs. When undef, it will not be present.
Default value: undef
Data type: Optional[Variant[Stdlib::Httpurl,Enum['_none_']]]
proxy setting in the repository file. Accepts HTTP/HTTPS URLs and 'none'. When undef, it will not be present.
Default value: undef
Data type: Optional[Enum['priority','roundrobin']]
failovermethod setting in the repository file. Valid values are: 'priority' or 'roundrobin'. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Enum['all','none','packages']]
http_caching setting in the repository file. Valid values are: 'all', 'none', or 'packages'. When undef, it will not be present in yum.conf.
Default value: undef
Data type: Optional[Variant[Integer,Float,Pattern[/^\d+(.\d+|)(k|M|G)*$/]]]
throttle setting in the repository file. Rate in bytes/sec, allows a suffix of k, M, or G to be appended. When undef, it will not be present.
Default value: undef
Data type: Optional[Variant[Integer,Pattern[/^(\d+(m|h|d)*|never|)$/]]]
metadata_expire setting in the repository file. Time in seconds, allows a suffix of m, h, or d to specify minutes, hours, or days. Alternatively you can also specify the word never instead. When undef, it will not be present.
Default value: undef
Data type: Optional[Stdlib::Absolutepath]
sslcacert setting in the repository file. When undef, it will not be present.
Default value: undef
Data type: Optional[Stdlib::Absolutepath]
sslclientcert setting in the repository file. When undef, it will not be present.
Default value: undef
Data type: Optional[Stdlib::Absolutepath]
sslclientkey setting in the repository file. When undef, it will not be present.
Default value: undef
Data type: Array
exclude setting in the repository file. When empty, it will not be present.
Default value: []
Data type: Array
includepkgs setting in the repository file. When empty, it will not be present.
Default value: []
Downloads a public gpg key for a yum repo and installs the key Uses wget and rpimport commands
The following parameters are available in the yum::rpm_gpg_key
defined type.
Data type: Stdlib::Httpurl
Specify the source URL for the GPG key to download from.
Data type: Stdlib::Absolutepath
Specify the fully qualified destination file name for the GPG key to save to.
Data type: String
Specify the path parameter to be used for the wget command.
Default value: '/bin:/usr/bin:/sbin:/usr/sbin'
Data type: String
Specify the path parameter to be used for the rpm command.
Default value: '/bin:/usr/bin:/sbin:/usr/sbin'