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

Use a drop-in config snippet instead of editing /etc/systemd/journald.conf directly #58

Merged
merged 9 commits into from
Jun 20, 2024

Conversation

jsf9k
Copy link
Member

@jsf9k jsf9k commented May 22, 2024

🗣 Description

This pull request modifies the Ansible role to use a drop-in config snippet instead of editing /etc/systemd/journald.conf directly. It also reworks the molecule test code.

💭 Motivation and context

🧪 Testing

All automated tests pass.

✅ Pre-approval checklist

  • This PR has an informative and human-readable title.
  • Changes are limited to a single goal - eschew scope creep!
  • All future TODOs are captured in issues, which are referenced in code comments.
  • All relevant type-of-change labels have been added.
  • I have read the CONTRIBUTING document.
  • These code changes follow cisagov code standards.
  • Tests have been added and/or modified to cover the changes in this PR.
  • All new and existing tests pass.

@jsf9k jsf9k added improvement This issue or pull request will add or improve functionality, maintainability, or ease of use test This issue or pull request adds or otherwise modifies test code labels May 22, 2024
@jsf9k jsf9k self-assigned this May 22, 2024
jsf9k added a commit to cisagov/freeipa-server-packer that referenced this pull request May 22, 2024
…ch-agent

This is being done for testing purposes and can be reverted once
cisagov/ansible-role-cloudwatch-agent#58 has been merged.
@jsf9k jsf9k added the blocked This issue or pull request is awaiting the outcome of another issue or pull request label May 24, 2024
@jsf9k jsf9k force-pushed the improvement/use-drop-in-conf-file branch from 49a31b1 to bcd1456 Compare June 11, 2024 17:48
@jsf9k jsf9k removed the blocked This issue or pull request is awaiting the outcome of another issue or pull request label Jun 11, 2024
@jsf9k jsf9k force-pushed the improvement/use-drop-in-conf-file branch from 2b7e839 to bddd063 Compare June 12, 2024 16:13
@jsf9k jsf9k mentioned this pull request Jun 17, 2024
6 tasks
… files directly

This is a better way to test that the configuration changes are
actually being utilized by systemd-journald.
All platforms we support use systemd, so we need not use a handler to
call systemctl daemon-reload.
systemd-journald.socket fails to start under QEMU emulation starting
with systemd version 256, so starting with that version the
systemd-journald service cannot be restarted either. Right now we
support this case, but we can't test it until we have native ARM64
runners.

See issue #61 for more details.
@jsf9k jsf9k force-pushed the improvement/use-drop-in-conf-file branch from 04e817b to b0c30a7 Compare June 18, 2024 15:17
@jsf9k jsf9k requested a review from a team June 18, 2024 16:12
@jsf9k jsf9k marked this pull request as ready for review June 18, 2024 16:12
@jsf9k jsf9k enabled auto-merge June 18, 2024 16:12
Copy link
Member

@mcdonnnj mcdonnnj left a comment

Choose a reason for hiding this comment

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

Makes sense. Two small bits of feedback for you but otherwise LGTM ✔

tasks/main.yml Outdated Show resolved Hide resolved
tasks/main.yml Outdated Show resolved Hide resolved
@jsf9k jsf9k force-pushed the improvement/use-drop-in-conf-file branch from 0e7990c to b6766b4 Compare June 18, 2024 17:20
@jsf9k jsf9k merged commit 702a040 into develop Jun 20, 2024
51 checks passed
@jsf9k jsf9k deleted the improvement/use-drop-in-conf-file branch June 20, 2024 15:30
jsf9k added a commit to cisagov/freeipa-server-packer that referenced this pull request Jun 20, 2024
jsf9k added a commit to cisagov/freeipa-server-packer that referenced this pull request Sep 24, 2024
…ch-agent

This is being done for testing purposes and can be reverted once
cisagov/ansible-role-cloudwatch-agent#58 has been merged.
jsf9k added a commit to cisagov/freeipa-server-packer that referenced this pull request Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement This issue or pull request will add or improve functionality, maintainability, or ease of use test This issue or pull request adds or otherwise modifies test code
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants