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

fix: Fix service files generated on EL7 and workaround the tests for containers #276

Merged
merged 2 commits into from
Feb 15, 2024

Conversation

Jakuje
Copy link
Collaborator

@Jakuje Jakuje commented Feb 6, 2024

Enhancement: The service files on EL7 are generated with original content.

Reason: The centos7 containers report ansible_facts["service_mgr"] = "sysvinit" which lead to skipping this test in the upstream CI. The CentOS7 is also the only OS that defines the environment file as a mandatory (missing the - sign in front of the filename), which caused the downstream tests executed against VMs to fail. But only in the main sshd.service. The minus sign is present in the instantiated [email protected] to add even more confusion

Result: The role should generate original service files.

Issue Tracker Tickets (Jira or BZ if any): -

The diff in the generated sshd.service file before this change should be limited to the following change:

-EnvironmentFile=/etc/sysconfig/sshd
+EnvironmentFile=-/etc/sysconfig/sshd

note, that this is not the case for the instantiated, which is in sync
with everything else.

Signed-off-by: Jakub Jelen <[email protected]>
Copy link
Collaborator

@richm richm left a comment

Choose a reason for hiding this comment

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

Must be a problem with the centos-7 container image - qcow2/qemu works fine

@Jakuje Jakuje merged commit ec0f975 into willshersystems:main Feb 15, 2024
17 checks passed
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.

2 participants