Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sap_general_preconfigure: Use the role sap_maintain_etc_hosts - RHEL systems #660

Merged
merged 5 commits into from
Feb 29, 2024

Conversation

berndfinger
Copy link
Member

@berndfinger berndfinger commented Feb 16, 2024

We want to use a central role for all /etc/hosts related manipulation (it is part of this collection already), so let's start with sap_general_preconfigure.

At the same time, we can use new role variables which include the role prefix, replacing the previous "global" variables sap_ip, sap_hostname, and sap_domain in defaults/main.yml (while still being compatible).

I expect merge conflicts with #653 but it should not be too difficult to solve them, just annoying.

Avoids the violation of the 'var-naming[no-role-prefix]' ansible-lint
rule.

Relates to sap-linuxlab#658.

Signed-off-by: Bernd Finger <[email protected]>
Copy link
Member

@rhmk rhmk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@berndfinger berndfinger marked this pull request as ready for review February 22, 2024 16:57
@berndfinger
Copy link
Member Author

The following issue needs to be fixed soon after: #662

@sean-freeman sean-freeman removed their request for review February 28, 2024 12:31
Copy link
Contributor

@rainerleber rainerleber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm - in the next step we should do the same for sles

@berndfinger berndfinger changed the title sap_general_preconfigure: Use the role sap_maintain_etc_hosts sap_general_preconfigure: Use the role sap_maintain_etc_hosts - RHEL systems Feb 29, 2024
@berndfinger berndfinger merged commit 1c6348e into sap-linuxlab:dev Feb 29, 2024
4 checks passed
@berndfinger berndfinger deleted the use_sap_maintain_etc_hosts branch February 29, 2024 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants