Oracle Linux 6 and 7

Hello there!

I’m testing foreman + katello to replace my spacewalk server.

I have a lot of Oracle Linux 6/7 and it’s not clear to me how to register these.
There are not subscription-manager rpm in Oracle official repos.

It’s possible manager Oracle Linux with foreman + katello?
What is the correct way?

Regards,

Rodrigo

1 Like

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].

[0] Foreman :: Plugin Manuals
[1] Registering hosts at docs.theforeman.org

1 Like

It’s absolutely possible to provision/manage host running Oracle Linux. Have a look at the orcharhino documentation Managing Oracle Linux Hosts. For the initial host registration, see Attaching hosts > Oracle Linux.

3 Likes

Hi !

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

Regards,

Have you tried using subscription-manager from CentOS 7 on Oracle Linux 7? This should work just fine.

I think we had to disable some packages from oracle that explicitly conflict with subscription-manager though…

For OL7 you need to filter the following packages in your content view:

rhn-check
rhn-client-tools
rhn-setup
rhn-setup-gnome
rhnlib
rhnsd
yum-rhn-plugin
yum-plugin-ulinfo