RedHatGov.content
Content
This role sets up and configures a RHEL Local Content Server (which includes Repositories, Registry, and NFS).
Requirements
- You need a basic RHEL system to set up the server on.
- You must have a Red Hat Network account with a RHEL subscription (to synchronize content).
Role Variables
Variable | Required | Default | Description |
---|---|---|---|
versions |
No | see defaults/main.yml |
List of Red Hat product versions |
disconnected |
No | false | Indicates if the server is in a disconnected environment |
domain |
No | hattrick.lab |
The domain for your environment |
dns_server_public |
No | 1.1.1.1 |
Default upstream DNS server to use |
content_hostname |
Yes | Short hostname for the content server | |
content_ssh_user |
No | root |
Default SSH username |
content_ssh_pwd |
No | p@ssw0rd |
Default password for SSH access (you should change this!) |
content_public_ip |
Yes | Public IP address that's reachable | |
content_base_img |
Yes | Name of the base image in /var/lib/libvirt/images on the KVM hypervisor | |
content_vcpus |
No | 1 |
Number of virtual CPUs needed |
content_ram |
No | 1024 |
Amount of RAM required in megabytes |
content_os_disk_name |
No | {{ idm_hostname }} |
Name of the OS disk in /var/lib/libvirt/images |
content_os_disk_size |
No | 110G |
Size of the OS disk |
content_nics |
Yes | see example playbook |
List of Network Interface Cards (NICs) to create |
content_ht_git_repo |
No | https://github.com/redhat-kejones/ht.git |
Location of the Project Hat Trick repository |
content_sync_repos |
No | true | Whether to synchronize Red Hat repositories |
content_repos |
No | see defaults/main.yml |
List of repositories to enable |
content_packages |
No | see defaults/main.yml |
List of packages |
content_sync_satellite |
No | false | Whether to sync repositories for Satellite (requires a Satellite subscription) |
content_sync_registry |
No | true | Whether to sync container images to the local registry |
content_ocp_tag |
No | v3.11.43 |
Tag for getting versions of OpenShift container platform images |
content_rh_registry_username |
Yes | Service account username from Red Hat terms-based registry | |
content_rh_registry_token |
Yes | Service account token from Red Hat terms-based registry | |
content_ocp_images |
No | see defaults/main.yml |
List of OpenShift container images to sync |
Dependencies
- RedHatGov.rhsm
Example Playbook
---
- hosts: content
vars:
domain: "example.com"
dns_server_public: 1.1.1.1
content_hostname: content #Short hostname
content_ssh_user: root
content_ssh_pwd: p@ssw0rd
content_public_ip: "192.168.122.8"
content_base_img: rhel-guest-image-7.qcow2
content_vcpus: 1
content_ram: 1024
content_os_disk_name: "{{ content_hostname }}"
content_os_disk_size: 110G
content_nics:
- name: eth0
bootproto: static
onboot: yes
ip: "{{ content_public_ip }}"
prefix: "24"
gateway: "192.168.122.1"
dns_server: "{{ dns_server_public }}"
config: "--type network --source default --model virtio"
#NOTE: Create/Get username/token from Red Hat terms-based registry
content_rh_registry_username: "1234567|rhnserviceaccount"
content_rh_registry_token: "..."
tasks:
- name: Install content server
include_role:
name: RedHatGov.content
License
GPLv3
Author Information
Informazioni sul progetto
Deploy RHEL Local Content Server (Repos, Registry, NFS)
Installa
ansible-galaxy install RedHatGov.content
Licenza
gpl-3.0
Download
118
Proprietario
Code contributions from Red Hat's Public Sector practice