Hi,
there isn’t “correct way”, it’s up to you what method you choose.
Two methods I can think about right now - Ansible & manual registration.
You can use Ansible [0] with configured callback to Foreman, so host will be created from reported facts or register hosts manually with Foreman’s registration feature [1].
I don’t have subscription-manager in Oracle Linux 7 Repo or Epel Repo.
I need to install the subscription-manager package from the another repo? where can I find?
[root@srv-3135 ~]# yum install -y subscription-manager
Loaded plugins: rhnplugin, ulninfo
This system is receiving updates from ULN.
No package subscription-manager available.
Error: Nothing to do
[root@srv-3135 ~]#
[root@srv-3135 ~]# cat /etc/os-release
NAME="Oracle Linux Server"
VERSION="7.9"
ID="ol"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.9"
PRETTY_NAME="Oracle Linux Server 7.9"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:7:9:server"
HOME_URL="https://linux.oracle.com/"
BUG_REPORT_URL="https://bugzilla.oracle.com/"
ORACLE_BUGZILLA_PRODUCT="Oracle Linux 7"
ORACLE_BUGZILLA_PRODUCT_VERSION=7.9
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION=7.9