Skip to content
Snippets Groups Projects
Commit e766ab43 authored by Dimitra Chatzichrysou's avatar Dimitra Chatzichrysou
Browse files

Merge branch 'deployment-el9-fix-mail' into 'master'

Fix mailx config for el9

See merge request !57
parents 1cc95425 993ed4d6
No related branches found
No related tags found
1 merge request!57Fix mailx config for el9
......@@ -62,7 +62,7 @@ spec:
checksum/php-config: {{ include (print $.Template.BasePath "/php-configmap.yaml") . | sha256sum }}
checksum/php-fpm-config: {{ include (print $.Template.BasePath "/php-fpm-configmap.yaml") . | sha256sum }}
checksum/php-fpm-config: {{ include (print $.Template.BasePath "/php-fpm-pool-configmap.yaml") . | sha256sum }}
checksum/mailrc-config: {{ include (print $.Template.BasePath "/mailrc-configmap.yaml") . | sha256sum }}
checksum/mail-config: {{ include (print $.Template.BasePath "/mail-configmap.yaml") . | sha256sum }}
spec:
{{- if .Values.nodeSelector }}
nodeSelector: {{- .Values.nodeSelector | toYaml | nindent 8 }}
......@@ -151,9 +151,10 @@ spec:
# mount only `httpd.conf`, to avoid hiding other files installed by the image
# inside `/etc/httpd/conf/`
subPath: httpd.conf
- name: mailrc-config
mountPath: /etc/mail.rc
subPath: mail.rc
- name: mail-config
mountPath: /etc/s-nail.rc
subPath: s-nail.rc
readOnly: true
# emptyDir for OIDC cache
- name: oidc-cache
mountPath: /var/cache/httpd/mod_auth_openidc/cache
......@@ -191,9 +192,10 @@ spec:
- name: php-fpm-pool-config
mountPath: /etc/php-fpm.d/www.conf
subPath: www.conf
- name: mailrc-config
mountPath: /etc/mail.rc
subPath: mail.rc
- name: mail-config
mountPath: /etc/s-nail.rc
subPath: s-nail.rc
readOnly: true
# emptyDir for php-fpm socket
- name: php-fpm-socket
mountPath: /var/run/php-fpm
......@@ -326,9 +328,9 @@ spec:
- name: php-fpm-pool-config
configMap:
name: php-fpm-pool-config-{{ .Release.Name}}
- name: mailrc-config
- name: mail-config
configMap:
name: mailrc-config-{{ .Release.Name}}
name: mail-config-{{ .Release.Name}}
# We put OIDC cache in an emptyDir rather than in the container's filesystem in order to make it persistent
# between the restarts of the httpd container (in the same pod), e.g. if httpd runs OOM or crashes or node reboots unexpectedly.
- name: oidc-cache
......
kind: ConfigMap
apiVersion: v1
metadata:
name: mailrc-config-{{ .Release.Name }}
name: mail-config-{{ .Release.Name }}
data:
# configures mailx to send email via SMTP to cernmx.cern.ch
# This allows CGI scripts to use the POSIX mailx command to send email.
# PHP can also be configured to send email via mailx (see php.ini, sendmail_path).
mail.rc: |
s-nail.rc: |
# This is the configuration file for Heirloom mailx (formerly
# known under the name "nail".
# See mailx(1) for further options.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment