ldomb.sat6register

sat6register

This role helps you register bare metal, virtual, and cloud instances that are running Red Hat Enterprise Linux versions 5, 6, or 7 with a Red Hat Satellite 6 server. You can choose to register your hosts with or without Puppet as a tool for managing configurations. Additionally, you have the option to update your hosts to the latest software patches during the registration process. If you use Puppet, you can specify a host group, and Ansible will apply your Puppet classes to that group during registration.

Requirements

  • You need Ansible version 2.1 or higher.

  • You must have a working Red Hat Satellite 6 server with an activation key to register with it.

  • Make sure to add the following YUM repositories to your activation key:

    • rhel-7-server-rpms
    • rhel-7-server-satellite-tools-6.2-rpms

Role Variables

Here are the available variables and their default values:

  • sat6_fqdn: https://sat6ldo.rdu.salab.redhat.com
  • admin_user: admin
  • org: redhat
  • loc: nyc
  • hostgroup: rhel7base or "false" if none
  • activationkey: ak-Reg_To_Library_soe_no_puppet or "false" if none
  • updatehost: "true" or "false"

Dependencies

To set the admin password, you need to create a vault_admin_pass variable and place this line
admin_pass: "{{ vault_admin_pass }}" in the group_vars/all/vars file.
This configuration tells Ansible to look for the encrypted vault_admin_pass variable in the encrypted group_vars/all/vault file.

If you're running this from a roles/ directory, ensure that the path to the vars and vault files is specified in the playbook where you call the sat6register role.

vars_files:  
    - "roles/sat6register/group_vars/all/vars"  
    - "roles/sat6register/group_vars/all/vault"  

Example Playbook

An example of how to use your role (with parameters passed in as variables) can be helpful:

- hosts: all
  roles:
     - { role: sat6register, sat6_fqdn: https://sat6ldo.rdu.salab.redhat.com }

License

GPLv3

Author Information

This role was created in 2016 by Laurent Domb.

Informazioni sul progetto

Register with Satellite 6

Installa
ansible-galaxy install ldomb.sat6register
Licenza
Unknown
Download
125
Proprietario
Chief Technologist Federal Financial Services @ AWSCloud