pescobar.katello_client
pescobar.katello_client
This project helps you register a server (node) with Katello.
Important: This setup will only turn off the default yum repositories in CentOS. It hasn't been tested with RedHat.
Role Variables
Here are the variables you can configure:
katello_client_katello_server_hostname: katello.example.com # The hostname of your Katello server
katello_client_activationkey: compute_nodes_production # The activation key for your nodes
katello_client_org_id: sciCORE # The organization ID in Katello
katello_client_rhsm_baseurl: "https://{{ katello_client_katello_server_hostname }}/pulp/repos" # Base URL for the repository
katello_client_force_register: false # Set to true to force registration
katello_client_extra_packages: # Additional packages to install
- katello-host-tools
- katello-host-tools-tracer
- katello-host-tools-fact-plugin
katello_client_install_agent: false # Don't install katello-agent as it is outdated
# Set this to true if you want to use upstream repos for katello-client
# Usually not needed, as your Katello instance already provides this
katello_client_yum_repo_add: false
katello_client_yum_repo_rpm: https://yum.theforeman.org/client/2.4/el7/x86_64/foreman-client-release.rpm
katello_client_disable_yum_fastest_mirror_plugin: true # Disable the fastest mirror plugin
# List of upstream repositories that will be disabled in the Katello client
katello_client_repos_to_update:
- name: base
file: CentOS-Base
description: default base yum repo
mirrorlist: http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
gpgcheck: true
gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
enabled: false
- name: updates
file: CentOS-Base
description: default updates yum repo
mirrorlist: http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
gpgcheck: true
gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
enabled: false
- name: extras
file: CentOS-Base
description: default extras yum repo
mirrorlist: http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
gpgcheck: true
gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
enabled: false
- name: epel
file: epel
description: epel
metalink: https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
gpgcheck: 1
gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
enabled: false
Example Playbook
Here’s a sample playbook to use this role:
- hosts: servers
roles:
- { role: pescobar.katello_agent }
License
This project is licensed under GPLv3.
Molecule Tests
The repository has some tests using Molecule to check the node registration process. After setting the required variables, you can run molecule test
to ensure it works. Note that Travis-CI only checks for syntax in GitHub.
Author Information
Pablo Escobar Lopez
Installa
ansible-galaxy install pescobar.katello_client
Licenza
Unknown
Download
60.6k
Proprietario
Systems engineer. Linux/HPC/Cloud/BioInfo