AlmaLinux / cloud-images

Packer templates and other tools for building AlmaLinux images for various cloud platforms.
MIT License
146 stars 48 forks source link

OracleCloud: Re-support oracle-cloud-agent #153

Open kteruya29 opened 1 year ago

kteruya29 commented 1 year ago

Hello. I want to use instance monitoring on Oracle Cloud, but I need to run oracle-cloud-agent.

I found that we can install it from the official repository used in Oracle Linux image. Installing on AlmaLinux 9 (x86_64) was succeeded.

# /etc/yum.repos.d/oci-included-ol9.repo

[ol9_oci_included]
name=Oracle Linux $releasever OCI Included Packages ($basearch)
baseurl=https://yum-phx.oracle.com/repo/OracleLinux/OL9/oci/included/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1

Is it possible to support it again with cloud images?

LKHN commented 1 year ago

Hi @kteruya29, Thanks for the contribution.

When they removed the public download links and replace it with this text:

To obtain the Oracle Cloud Agent installation file, contact support. Save the Oracle Cloud Agent installation file to the instance.

We opened a ticket get these Oracle Cloud Agent RPMs for EL8,9 on x86_64, AArch64.

Although, they provided these RPMs they didn't answer our questions about whether we can include them in our OCI images or not.

Seems like the URL in your repo config is OCI internal, have tried to open it outside of OCI?

https://yum-phx.oracle.com/repo/OracleLinux/OL9/oci/included/x86_64

kteruya29 commented 1 year ago

@LKHN

Seems like the URL in your repo config is OCI internal, have tried to open it outside of OCI?

I tried but it doesn't work. Unfortunately it is only accessible within OCI. It could be available if we build inside OCI instances but the situation may not fit.

Or, we have only way to include pre-downloaded RPMs. The license "UPL version 1.0" seems to allow redistributions. Are there any licensing or legal issues?

LKHN commented 12 months ago

We do have the latest version of RPMs for AlmaLinux OS 8, 9 on x86_64, AArch64. The only blocker we don't have any answer to the any legal and/or licensing issues yet. I will try to open a ticket for this matter and let you know soon.

Or, we have only way to include pre-downloaded RPMs. The license "UPL version 1.0" seems to allow redistributions. Are there any licensing or legal issues?