Giter Site home page Giter Site logo

ubellavance / puppet-rhsm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from voxpupuli/puppet-rhsm

0.0 2.0 0.0 129 KB

Puppet module for registering systems with RedHat.

Home Page: https://forge.puppet.com/puppet/rhsm

License: Apache License 2.0

Ruby 54.19% Puppet 33.73% HTML 12.08%

puppet-rhsm's Introduction

rhsm

Overview

This module registers your systems with RedHat Subscription Management.

Setup

Just declare the module with parameters, or load the data from Hiera.

Usage

class { 'rhsm':
  rh_user     => 'myuser',
  rh_password => 'mypassword',
}

To attach the system to a specific pool (can be found on a registered system with subscription-manager list --available):

class { 'rhsm':
  rh_user     => 'myuser',
  rh_password => 'mypassword',
  pool        => 'the_pool_id'
}

Hiera (recommended)

include rhsm

Hierafile:

rhsm::rh_user: myuser
rhsm::rh_password: mypassword

Proxy

If the RedHat node must use a proxy to access the internet, you'll have to provide at least the hostname and TCP port.

class { 'rhsm':
  proxy_hostname => 'my.proxy.net',
  proxy_port     => 8080
  rh_user        => 'myuser',
  rh_password    => 'mypassword',
}

You shouldn't specify the protocol, subscription-manager will use HTTP. For proxies with authentication, specify the proxy_user and proxy_password values.

The proxy settings will be used to register the system and as connection option for all the YUM repositories generated in /etc/yum.repos.d/redhat.repo

Satellite 6

Registering with Red Hat Satellite 6 needs some additional settings.

class { 'rhsm':
  activationkey         => 'act-lce-rhel-7,act-product',
  org                   => 'satellite_organization',
  servername            => 'satellite.example.com',
  serverprefix          => '/rhsm',
  repo_ca_cert_filename => 'katello-server-ca.pem',
  repo_ca_cert_source   => 'puppet:///modules/profile/katello-server-ca.crt',
  full_refresh_on_yum   => 1,
  baseurl               => 'https://satellite.example.com/pulp/repos',
}
  • You need to specify either (rh_user and rh_password) or (org and activationkey).
  • Multiple Activationkeys might be provided, separated by comma.
  • Download the corresponding certificate from your Satellite (https://satellite.example.com/pub/katelllo-server-ca.crt) and publish it, e.g. with a (profile) module.

Limitations

Well, only RedHat is supported :)

puppet-rhsm's People

Contributors

alexjfisher avatar bastelfreak avatar bbriggs avatar cohdjn avatar dhollinger avatar dhoppe avatar ekohl avatar electrical avatar gerapeldoorn avatar igalic avatar juniorsysadmin avatar jyaworski avatar kallies avatar llowder avatar nibalizer avatar rnelson0 avatar roidelapluie avatar treydock avatar ubellavance avatar veriskpuppet avatar vinzent avatar wyardley avatar yastupin avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.