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

Allow htprod to sudo to stop/start/restart imgsrv #724

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

aelkiss
Copy link
Member

@aelkiss aelkiss commented Oct 10, 2024

This is similar to the sudoers already in place on beeftea-1/2 for managing solr there.

When working on developing/testing imgsrv, it's very useful to be able to manually restart it, especially if it ends up in a strange state.

@aelkiss aelkiss requested a review from rrotter October 10, 2024 20:28
@aelkiss
Copy link
Member Author

aelkiss commented Oct 10, 2024

FYI @mwarin

ensure => 'present',
content => @("SUDOERS")
%htprod ALL=(root) NOPASSWD: /bin/journalctl
%htprod ALL=(root) NOPASSWD: /bin/systemctl start imgsrv,/bin/systemctl stop imgsrv,/bin/systemctl restart imgsrv
Copy link
Member

Choose a reason for hiding this comment

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

Maybe add status too?

This is similar to the sudoers already in place on beeftea-1/2 for
managing solr there.
@aelkiss aelkiss merged commit cbb5528 into production Oct 10, 2024
1 check 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