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

feat(HMS-4049): enable ipa-hcc-auto-enrollment.service via preset #1

Closed
wants to merge 1 commit into from

Conversation

pvoborni
Copy link
Contributor

@pvoborni pvoborni commented May 2, 2024

Add preset file to enable ipa-hcc-auto-enrollment.service automatically.

This will help avoiding the need to enable the service manually, e.g. in use cases where the ipa-hcc-client is part of a pre-built image.

Add preset file to enable ipa-hcc-auto-enrollment.service automatically.

This will help avoiding the need to enable the service manually, e.g.
in use cases where the ipa-hcc-client is part of a pre-built image.

Signed-off-by: Petr Vobornik <[email protected]>
@pvoborni pvoborni marked this pull request as ready for review May 3, 2024 11:56
@pvoborni
Copy link
Contributor Author

pvoborni commented May 3, 2024

I've tested this manually as the CI is not configured well yet.

The package was built in COPR with this branch: https://copr.fedorainfracloud.org/coprs/pvoborni/ipa-hcc/build/7400782/

Tried on RHEL 9.4 host. Looks to work well.

[root@client94 cloud-user]# rpm -q ipa-hcc-client
ipa-hcc-client-0.0.git.377.7d26dd9a-1.el9.noarch
[root@client94 cloud-user]# 
[root@client94 cloud-user]# systemctl status ipa-hcc-auto-enrollment.service
○ ipa-hcc-auto-enrollment.service - IPA Hybrid Cloud Console client auto-enrollment service
     Loaded: loaded (/usr/lib/systemd/system/ipa-hcc-auto-enrollment.service; enabled; preset: enabled)
     Active: inactive (dead)
       Docs: man:ipa-client-install(1)
[root@client94 cloud-user]# 
[root@client94 cloud-user]# systemctl list-unit-files | grep ipa-hcc-auto-enrollment | grep 'enabled\s\+enabled'
ipa-hcc-auto-enrollment.service            enabled         enabled
[root@client94 cloud-user]# 
[root@client94 cloud-user]# ls /usr/lib/systemd/system-preset | grep 80-ipa-hcc-auto-enrollment.preset
80-ipa-hcc-auto-enrollment.preset
[root@client94 cloud-user]# 
[root@client94 cloud-user]# cat /usr/lib/systemd/system-preset/80-ipa-hcc-auto-enrollment.preset 
enable ipa-hcc-auto-enrollment.service

@pvoborni pvoborni closed this May 3, 2024
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.

1 participant