Skip to content

Commit

Permalink
Fix Apache user for Ubuntu and Debian
Browse files Browse the repository at this point in the history
Replaces #148
  • Loading branch information
treydock committed Jan 25, 2024
1 parent bf37c95 commit 5e5f625
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions data/os/Debian.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
openondemand::repo_baseurl_prefix: https://apt.osc.edu/ondemand
openondemand::repo_gpgkey: https://apt.osc.edu/ondemand/DEB-GPG-KEY-ondemand
openondemand::apache_user: www-data
openondemand::logroot: /var/log/apache2
3 changes: 3 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
# Hash of apps to install, passed to ondemand::install::app
# @param declare_apache
# Boolean that determines if apache is declared or included
# @param apache_user
# Name of the Apache user
# @param apache_scls
# SCLs to load when starting Apache service
# @param generator_insecure
Expand Down Expand Up @@ -253,6 +255,7 @@

# Apache
Boolean $declare_apache = true,
String[1] $apache_user = 'apache',
String $apache_scls = 'httpd24',

# ood_portal.yml
Expand Down
6 changes: 3 additions & 3 deletions templates/sudo.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Defaults:apache !requiretty, !authenticate
Defaults:apache env_keep += "NGINX_STAGE_* OOD_*"
apache ALL=(ALL) NOPASSWD: <%= scope['openondemand::nginx_stage_cmd'] %>
Defaults:<%= scope['openondemand::apache_user'] %> !requiretty, !authenticate
Defaults:<%= scope['openondemand::apache_user'] %> env_keep += "NGINX_STAGE_* OOD_*"
<%= scope['openondemand::apache_user'] %> ALL=(ALL) NOPASSWD: <%= scope['openondemand::nginx_stage_cmd'] %>
Cmnd_Alias KUBECTL = <%= scope['openondemand::kubectl_path'] %>
Defaults!KUBECTL !syslog

0 comments on commit 5e5f625

Please sign in to comment.