Skip to content

Latest commit

 

History

History
219 lines (123 loc) · 3.13 KB

REFERENCE.md

File metadata and controls

219 lines (123 loc) · 3.13 KB

Reference

Table of Contents

Classes

  • rhsm: Subscribe the node to RHSM

Classes

rhsm

rhsm

Subscribe the node to RHSM

Copyright 2014 Ger Apeldoorn, unless otherwise noted.

Examples

include rhsm
# Hierafile:
---
rhsm::rh_user: myuser
rhsm::rh_password: mypassword

Parameters

The following parameters are available in the rhsm class.

rh_user

Data type: String

User for the Customer Portal. You need to specify either (rh_user and rh_password) or (org and activationkey)

Default value: undef

rh_password

Data type: String

Password for the rh_user account

Default value: undef

org

Data type: String

Organization to use

Default value: undef

activationkey

Data type: String

Activationkey to use

Default value: undef

servername

Data type: String

Servername, default provided Used directly in rhsm.conf template

Default value: 'subscription.rhsm.redhat.com'

serverprefix

Data type: String

server.prefix to use Used directly in rhsm.conf template /rhsm for Satellite 6 /subscription for RHSM

Default value: '/subscription'

serverport

Data type: Integer

server.port to use Used directly in rhsm.conf template

Default value: 443

ca_cert_dir

Data type: String

Server CA certificate location

Default value: '/etc/rhsm/ca/'

repo_ca_cert_filename

Data type: String

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'

repo_ca_cert_source

Data type: String

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

manage_repos

Data type: Integer

1 if subscription manager should manage yum repos file or 0 if the subscription is only used for tracking purposes

Default value: 1

full_refresh_on_yum

Data type: Integer

rhsm.full_refresh_on_yum Used directly in rhsm.conf template 1 for Satellite 6 0 for RHSM

Default value: 0

proxy_hostname

Data type: String

Proxy hostname

Default value: undef

proxy_port

Data type: Integer

Proxy port

Default value: undef

proxy_user

Data type: String

Proxy user

Default value: undef

proxy_password

Data type: String

Proxy password

Default value: undef

baseurl

Data type: String

Base URL for rhsm, default provided

Default value: 'https://cdn.redhat.com'

package_ensure

Data type: String

Whether to install subscription-manager

Default value: 'installed'

enabled_repo_ids

Data type: Optional[Array[String]]

nabled_repo_ids [Array[String] A listing of the Repo IDs to provide to the subscription-manager repo --enable command.

Default value: []

Copyright 2014 Ger Apeldoorn, unless otherwise noted.

Examples

rh_repo { "rhel-${::operatingsystemmajrelease}-server-extras-rpms":
  ensure => present,
}