Skip to content

Commit

Permalink
Allow htprod to sudo to stop/start/restart imgsrv
Browse files Browse the repository at this point in the history
This is similar to the sudoers already in place on beeftea-1/2 for
managing solr there.
  • Loading branch information
aelkiss committed Oct 10, 2024
1 parent e30bcd6 commit bf7d82b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions manifests/role/webhost/htvm/test.pp
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,12 @@
include nebula::role::webhost::htvm
include nebula::profile::hathitrust::apache::test

file { '/etc/sudoers.d/htprod-systemctl-imgsrv':
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
| SUDOERS
}

}

0 comments on commit bf7d82b

Please sign in to comment.