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
Add openrc support to service_facts #76373
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ansibot
added
affects_2.13
core_review
In order to be merged, this PR must follow the core review workflow.
feature
This issue/PR relates to a feature request.
module
This issue/PR relates to a module.
needs_triage
Needs a first human triage before being processed.
new_contributor
This PR is the first contribution by a new community member.
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
labels
Nov 26, 2021
bcoca
requested changes
Nov 30, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A changelog is required, I'm not going to ask for tests since most of our images won't run openrc
ansibot
added
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
and removed
core_review
In order to be merged, this PR must follow the core review workflow.
labels
Nov 30, 2021
clementmartin
pushed a commit
to clementmartin/ansible
that referenced
this pull request
Nov 30, 2021
clementmartin
force-pushed
the
service-facts-openrc
branch
from
November 30, 2021 22:21
fcb746f
to
902ed3a
Compare
ansibot
added
the
needs_ci
This PR requires CI testing to be performed. Please close and re-open this PR to trigger CI.
label
Nov 30, 2021
The test
The test
|
ansibot
removed
the
needs_ci
This PR requires CI testing to be performed. Please close and re-open this PR to trigger CI.
label
Nov 30, 2021
ansibot
added
core_review
In order to be merged, this PR must follow the core review workflow.
and removed
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
labels
Nov 30, 2021
ansibot
added
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
and removed
core_review
In order to be merged, this PR must follow the core review workflow.
labels
Nov 30, 2021
bcoca
approved these changes
Dec 1, 2021
ansibot
added
core_review
In order to be merged, this PR must follow the core review workflow.
and removed
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
labels
Dec 1, 2021
nitzmahone
added
P3
Priority 3 - Approved, No Time Limitation
and removed
needs_triage
Needs a first human triage before being processed.
labels
Dec 2, 2021
bcoca
pushed a commit
to bcoca/ansible
that referenced
this pull request
Dec 15, 2021
* Add openrc support to service_facts Co-authored-by: Clément Martin <clement.martin@onespan.com>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
affects_2.13
core_review
In order to be merged, this PR must follow the core review workflow.
feature
This issue/PR relates to a feature request.
module
This issue/PR relates to a module.
new_contributor
This PR is the first contribution by a new community member.
P3
Priority 3 - Approved, No Time Limitation
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SUMMARY
Add openrc support to
service_facts
module.The
service
module supports openrc, but theservice_facts
doesn't, making it unusable on for example alpine linux.As in openrc, services are configured by runlevels, instead of using status enabled/disabled, I chose to include the configure runlevels, or
None
if there isn't any reported.Services can be added to multiple runlevels, so this is reported as an array.
ISSUE TYPE
COMPONENT NAME
service_facts
ADDITIONAL INFORMATION
Using the following playbook:
Before:
After: