Skip to content

Commit

Permalink
Add missing package needed for managing mail
Browse files Browse the repository at this point in the history
CentOS has a nginx-mod-mail package which should help when configuring
nginx as a mail relay.
  • Loading branch information
smortex committed Oct 1, 2021
1 parent 1232c18 commit 5b3d115
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions manifests/package/redhat.pp
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,10 @@
ensure => $package_ensure,
name => $package_name,
}

if $nginx::mail {
package { 'nginx-mod-mail':
ensure => installed,
}
}
}
3 changes: 3 additions & 0 deletions templates/conf.d/nginx.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ load_module "<%= mod_item -%>";
load_module "modules/<%= mod_item -%>.so";
<%- end -%>
<%- end -%>
<%- if @mail -%>
load_module "modules/ngx_mail_module.so";
<%- end -%>
<% if @daemon -%>
daemon <%= @daemon %>;
<% end -%>
Expand Down

0 comments on commit 5b3d115

Please sign in to comment.