Install RHEL 8.6
# subscription-manager register
# subscription-manager list --all --available
...
Subscription Name: Red Hat Enterprise Linux
...
Pool ID: XXX
...
# subscription-manager attach --pool=XXX
# cat /etc/os-release
NAME="Red Hat Enterprise Linux"
VERSION="8.6 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.6"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.6 (Ootpa)"
...
Install vim and bash-completion
RH Satellite 6.11 System Requirements
https://access.redhat.com/documentation/en-us/red_hat_satellite/6.11/html-single/installing_satellite_server_in_a_disconnected_network_environment/index#system-requirements_satelliteThe following requirements apply to the networked base operating system:
- x86_64 architecture
- The latest version of Red Hat Enterprise Linux 8 or Red Hat Enterprise Linux 7 Server
- 4-core 2.0 GHz CPU at a minimum
- A minimum of 20 GB RAM is required for Satellite Server to function. In addition, a minimum of 4 GB RAM of swap space is also recommended. Satellite running with less RAM than the minimum value might not operate correctly.
- A unique host name, which can contain lower-case letters, numbers, dots (.) and hyphens (-)
- A current Red Hat Satellite subscription
- Administrative user (root) access
- A system umask of 0022
- Full forward and reverse DNS resolution using a fully-qualified domain name
# getenforce
Enforcing
# hostnamectl status
Static hostname: satellite.mkk.se
...
Operating System: Red Hat Enterprise Linux 8.6 (Ootpa)
...
Architecture: x86-64
# echo '192.168.122.22 satellite.mkk.se satellite' >> /etc/hosts
# ping -c 1 localhost
# ping -c 1 $(hostname -s)
# ping -c 1 $(hostname -f)
# dnf install bind-utils -y
# dig -x 192.168.122.22
...
;; ANSWER SECTION:
22.122.168.192.in-addr.arpa. 0 IN PTR satellite.
...
# systemctl status firewalld.service
● firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2022-10-27 14:54:36 CEST; 25min ago
# firewall-cmd --get-services | grep -i satellite
RH-Satellite-6 RH-Satellite-6-capsule ...
# firewall-cmd --info-service=RH-Satellite-6
RH-Satellite-6
ports: 5000/tcp 5646-5647/tcp 5671/tcp 8000/tcp 8080/tcp 9090/tcp
protocols:
source-ports:
modules:
destination:
includes: foreman
helpers:
# firewall-cmd --permanent --add-service=RH-Satellite-6
# firewall-cmd --reload
# free -g
Install Satellite 6.11
https://access.redhat.com/documentation/en-us/red_hat_satellite/6.11/html-single/installing_satellite_server_in_a_connected_network_environment/index#attaching-infrastructure-subscription_satellite# subscription-manager list --all --available
...
Subscription Name: Red Hat Satellite
...
Pool ID: XXX
...
# subscription-manager attach --pool=XXX
# dnf update
# systemctl reboot
https://access.redhat.com/documentation/en-us/red_hat_satellite/6.11/html-single/installing_satellite_server_in_a_connected_network_environment/index#anchor_xml_id_repositories_rhel_8_xreflabel_repositories_rhel_8_red_hat_enterprise_linux_8
# subscription-manager repos --disable "*"
# subscription-manager repos --enable=rhel-8-for-x86_64-baseos-rpms \
--enable=rhel-8-for-x86_64-appstream-rpms \
--enable=satellite-6.11-for-rhel-8-x86_64-rpms \
--enable=satellite-maintenance-6.11-for-rhel-8-x86_64-rpms
# dnf module enable satellite:el8
# dnf repolist
Updating Subscription Management repositories.
repo id repo name
rhel-8-for-x86_64-appstream-rpms Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
rhel-8-for-x86_64-baseos-rpms Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)
satellite-6.11-for-rhel-8-x86_64-rpms Red Hat Satellite 6.11 for RHEL 8 x86_64 (RPMs)
satellite-maintenance-6.11-for-rhel-8-x86_64-rpms Red Hat Satellite Maintenance 6.11 for RHEL 8 x86_64 (RPMs)
# dnf module list
...
Red Hat Satellite 6.11 for RHEL 8 x86_64 (RPMs)
Name Stream Profiles Summary
satellite el8 [e] Satellite module
# dnf install satellite
Configure Satellite Installation
https://access.redhat.com/documentation/en-us/red_hat_satellite/6.11/html-single/installing_satellite_server_in_a_connected_network_environment/index#Configuring_Installation_satellite# dnf install chrony -y
# systemctl enable --now chronyd
# systemctl status chronyd.service
● chronyd.service - NTP client/server
Loaded: loaded (/usr/lib/systemd/system/chronyd.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2022-10-27 15:12:21 CEST; 17s ago
...
# dnf install sos
# satellite-installer --list-scenarios
Available scenarios
Capsule (use: --scenario capsule)
Install a stand-alone Satellite Capsule.
Satellite (use: --scenario satellite)
Install Satellite server
# satellite-installer --scenario satellite --help
# satellite-installer --scenario satellite \
--foreman-initial-organization "MKK" \
--foreman-initial-location "Stockholm" \
--foreman-initial-admin-username admin \
--foreman-initial-admin-password redhat123
...
Success!
* Satellite is running at https://satellite.mkk.se
Initial credentials are admin / redhat123
* To install an additional Capsule on separate machine continue by running:
capsule-certs-generate --foreman-proxy-fqdn "$CAPSULE" --certs-tar "/root/$CAPSULE-certs.tar"
* Capsule is running at https://satellite.mkk.se:9090
The full log is at /var/log/foreman-installer/satellite.log
Package versions are being locked.
Validate a Satellite Server Installation
[root@satellite ~]# satellite-maintain --help
# satellite-maintain health check
Running ForemanMaintain::Scenario::FilteredScenario
================================================================================
Check number of fact names in database: [OK]
--------------------------------------------------------------------------------
Check whether all services are running: [OK]
--------------------------------------------------------------------------------
Check whether all services are running using the ping call: [OK]
--------------------------------------------------------------------------------
Check for paused tasks: [OK]
--------------------------------------------------------------------------------
Check whether system is self-registered or not: [OK]
--------------------------------------------------------------------------------
[root@satellite ~]# satellite-maintain service list
Running Service List
================================================================================
List applicable services:
dynflow-sidekiq@.service indirect
foreman-proxy.service enabled
foreman.service enabled
httpd.service enabled
postgresql.service enabled
pulpcore-api.service enabled
pulpcore-content.service enabled
pulpcore-worker@.service indirect
redis.service enabled
tomcat.service enabled
All services listed [OK]
--------------------------------------------------------------------------------
[root@satellite ~]# cat .hammer/cli.modules.d/foreman.yml
:foreman:
# Credentials. You'll be asked for the interactively if you leave them blank here
:username: 'admin'
:password: 'redhat123'
[root@satellite ~]# hammer ping
database:
Status: ok
Server Response: Duration: 1ms
candlepin:
Status: ok
Server Response: Duration: 38ms
candlepin_auth:
Status: ok
Server Response: Duration: 24ms
candlepin_events:
Status: ok
message: 0 Processed, 0 Failed
Server Response: Duration: 0ms
katello_events:
Status: ok
message: 0 Processed, 0 Failed
Server Response: Duration: 0ms
pulp3:
Status: ok
Server Response: Duration: 75ms
pulp3_content:
Status: ok
Server Response: Duration: 59ms
foreman_tasks:
Status: ok
Server Response: Duration: 4ms
# hammer organization list
---|-------|------|-------------|------
ID | TITLE | NAME | DESCRIPTION | LABEL
---|-------|------|-------------|------
1 | MKK | MKK | | MKK
---|-------|------|-------------|------
# hammer location list
---|-----------|-----------|------------
ID | TITLE | NAME | DESCRIPTION
---|-----------|-----------|------------
2 | Stockholm | Stockholm |
---|-----------|-----------|------------
Open https://satellite.mkk.se in browser and login as admin with password redhat123.
No comments:
Post a Comment