Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Role is not recognizing cloud eus/e4s repositories #56

Closed
Klaas- opened this issue Oct 15, 2019 · 3 comments
Closed

Role is not recognizing cloud eus/e4s repositories #56

Klaas- opened this issue Oct 15, 2019 · 3 comments

Comments

@Klaas-
Copy link
Contributor

Klaas- commented Oct 15, 2019

- name: Check for EUS or E4S repository
shell: |
yum repolist | awk '
BEGIN {a=0}
/rhel-{{ ansible_distribution_major_version }}-server-e[4u]s-rpms/ {a++}
/rhel-sap-hana-for-rhel-{{ ansible_distribution_major_version }}-server-e[4u]s-rpms/ {a++}
END {print a}'
register: sap_hana_preconfigure_register_eus
changed_when: false

repos are named like this:
rhui-rhel-7-server-rhui-eus-rpms
rhel-sap-for-rhel-7-server-eus-rhui-rpms
rhui-sap-hana-for-rhel-7-server-eus-rpms

Klaas- added a commit to Klaas-/sap-hana-preconfigure that referenced this issue Oct 15, 2019
@rhmk
Copy link
Contributor

rhmk commented Oct 15, 2019

Thanks, the role just prints an error, but ignores it. So it safe to use it. Thanks for pointing that out.
We do not do a hard check for the repositories, as some customers even do a reposync and name it completely different.
So we can add this for Azure (and other CCSPs for checking as well)

@berndfinger
Copy link
Collaborator

The role now has four user variables in defaults/main.yml which can be used to define required repos for RHEL 7 and RHEL 8. Please let me know if this covers your request.

@berndfinger
Copy link
Collaborator

Development and maintenance of this software has stopped. The role sap_hana_preconfigure replaces it. I am closing this issue now as per my last reply. Feel free to create a new issue if my proposal and reply did not solve your issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants