rhsm
: Subscribe the node to RHSM
rh_repo
: Manage Red Hat subscriptionsrh_subscription
: Manage Red Hat subscriptions
rhsm
Subscribe the node to RHSM
Copyright 2014 Ger Apeldoorn, unless otherwise noted.
include rhsm
# Hierafile:
---
rhsm::rh_user: myuser
rhsm::rh_password: mypassword
The following parameters are available in the rhsm
class:
rh_user
rh_password
org
activationkey
servername
serverprefix
serverport
ca_cert_dir
repo_ca_cert_filename
repo_ca_cert_source
manage_repos
full_refresh_on_yum
proxy_hostname
proxy_scheme
proxy_port
proxy_user
proxy_password
no_proxy
baseurl
package_ensure
enabled_repo_ids
server_timeout
inotify
process_timeout
repo_filename
plugin_settings
package_profile_on_trans
Data type: Optional[String[1]]
User for the Customer Portal. You need to specify either (rh_user and rh_password) or (org and activationkey)
Default value: undef
Data type: Optional[String[1]]
Password for the rh_user account
Default value: undef
Data type: Optional[String[1]]
Organization to use
Default value: undef
Data type: Optional[String[1]]
Activationkey to use
Default value: undef
Data type: Stdlib::Fqdn
Servername, default provided Used directly in rhsm.conf template
Default value: 'subscription.rhsm.redhat.com'
Data type: Stdlib::Absolutepath
server.prefix to use Used directly in rhsm.conf template /rhsm for Satellite 6 /subscription for RHSM
Default value: '/subscription'
Data type: Stdlib::Port
server.port to use Used directly in rhsm.conf template
Default value: 443
Data type: Stdlib::Absolutepath
Server CA certificate location
Default value: '/etc/rhsm/ca/'
Data type: String[1]
File containting the CA cert to use when generating yum repo configs katello-server-ca.pem for Satellite 6 redhat-uep.pem for RHSM
Default value: 'redhat-uep.pem'
Data type: Optional[String[1]]
URI, if set the content is used for CA file resource ${ca_cert_dir}/${repo_ca_cert_filename} Possible values are puppet:, file: and http:
Default value: undef
Data type: Integer[0,1]
1 if subscription manager should manage yum repos file or 0 if the subscription is only used for tracking purposes
Default value: 1
Data type: Integer[0,1]
rhsm.full_refresh_on_yum Used directly in rhsm.conf template 1 for Satellite 6 0 for RHSM
Default value: 0
Data type: Optional[Stdlib::Fqdn]
Proxy hostname
Default value: undef
Data type: Enum['http', 'https']
Proxy scheme
Default value: 'http'
Data type: Optional[Stdlib::Port]
Proxy port
Default value: undef
Data type: Optional[String[1]]
Proxy user
Default value: undef
Data type: Optional[String[1]]
Proxy password
Default value: undef
Data type: Optional[String[1]]
no_proxy definition
Default value: undef
Data type: Stdlib::Httpurl
Base URL for rhsm, default provided
Default value: 'https://cdn.redhat.com'
Data type: String[1]
Whether to install subscription-manager, directly passed to the ensure
param of the package.
Default value: 'installed'
Data type: Array[String[1]]
A listing of the Repo IDs to provide to the subscription-manager repo --enable command.
Default value: []
Data type: Integer[0]
HTTP timeout in seconds
Default value: 180
Data type: Integer[0,1]
Inotify is used for monitoring changes in directories with certificates. When this directory is mounted using a network file system without inotify notification support (e.g. NFS), then disabling inotify is strongly recommended.
Default value: 1
Data type: Integer[0]
The time in seconds we will allow the rhsmd cron job to run before terminating the process.
Default value: 300
Data type: Stdlib::Absolutepath
The name of the repo file subscription-manager uses.
Default value: '/etc/yum.repos.d/redhat.repo'
Data type: Hash
Hash of {section => {key => value } } for the yum/dnf plugin.
Default value: { 'main' => { 'enabled' => 1 } }
Data type: Integer[0,1]
Run the package profile on each yum/dnf transaction
Default value: 0
Manage Red Hat subscriptions
The following properties are available in the rh_repo
type.
Valid values: present
, enabled
, absent
, disabled
Aliases: "enabled"=>"present", "disabled"=>"absent"
The basic property that the resource should be in.
The following parameters are available in the rh_repo
type.
namevar
The specific backend to use for this rh_repo
resource. You will seldom need to specify this --- Puppet will usually
discover the appropriate provider for your platform.
Manage Red Hat subscriptions
The following properties are available in the rh_subscription
type.
Valid values: present
, absent
The basic property that the resource should be in.
Default value: present
The following parameters are available in the rh_subscription
type.
namevar
The specific backend to use for this rh_subscription
resource. You will seldom need to specify this --- Puppet will
usually discover the appropriate provider for your platform.