Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
exphost-helms
exphost-services
Commits
321519e3
Unverified
Commit
321519e3
authored
3 years ago
by
torgiren
Browse files
Options
Download
Email Patches
Plain Diff
add mail support to gitlab - closes #107
Signed-off-by:
Marcin Fabrykowski
<
git@fabrykowski.pl
>
parent
dfe8f878
Pipeline
#768
passed with stages
in 38 seconds
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+1
-0
.gitlab-ci.yml
chart/templates/gitlab.yml
+24
-0
chart/templates/gitlab.yml
chart/templates/openldap/ldap_mail_gitlab.yml
+54
-0
chart/templates/openldap/ldap_mail_gitlab.yml
with
79 additions
and
0 deletions
+79
-0
.gitlab-ci.yml
+
1
-
0
View file @
321519e3
...
...
@@ -17,3 +17,4 @@ deploy-to-dev:
repo
:
git@gitlab.exphost.pl:exphost/tenant-exphost-services-home-lab.git
yamlfile
:
exphost-services.yml
waitapp
:
tenant-exphost-services-exphost-services
refreshapp
:
tenant-exphost-services
This diff is collapsed.
Click to expand it.
chart/templates/gitlab.yml
+
24
-
0
View file @
321519e3
...
...
@@ -40,6 +40,30 @@ spec:
providers:
- secret: gitlab-providers-dex
key: provider
incomingEmail:
enabled: true
address: gitlab@{{ .Values.domain }}
host: imap.{{ .Values.domain }}
port: 143
ssl: false
startTls: true
user: gitlab@{{ .Values.domain }}
password:
secret: password-password-mail-gitlab-from-tenant-exphost-services
key: password
smtp:
enabled: true
address: smtp.{{ .Values.domain }}
port: 587
user_name: gitlab@{{ .Values.domain }}
password:
secret: password-password-mail-gitlab-from-tenant-exphost-services
key: password
starttls_auto: true
authentication: "login"
email:
from: gitlab@{{ .Values.domain }}
gitlab:
webservice:
...
...
This diff is collapsed.
Click to expand it.
chart/templates/openldap/ldap_mail_gitlab.yml
0 → 100644
+
54
-
0
View file @
321519e3
apiVersion
:
exphost.pl/v1
kind
:
Password
metadata
:
name
:
password-mail-gitlab
spec
:
name
:
password-mail-gitlab
types
:
-
sha512
---
apiVersion
:
batch/v1
kind
:
Job
metadata
:
name
:
create-ldap-mail-gitlab
annotations
:
argocd.argoproj.io/sync-wave
:
"
4"
spec
:
template
:
spec
:
restartPolicy
:
OnFailure
containers
:
-
name
:
ldap
image
:
bitnami/openldap:2.5
command
:
-
/bin/bash
-
-c
-
'
echo
-e
"
dn:
maildrop=gitlab@{{
.Values.domain
}},ou=mails,{{
include
"ldap.dc"
.
}}\n
changetype:
add\n
maildrop:
gitlab@{{
.Values.domain
}}\n
objectClass:
person\n
objectClass:
postfixUser\n
objectClass:
top\n
cn:
gitlab\n
sn:
mail\n
mailacceptinggeneralid:
gitlab@{{
.Values.domain
}}\n
userPassword::
$(echo
-n
{crypt}$PASSWORD|base64
-w0)
"|sed
-e
"s/^
//"
>/tmp/ldif.ldif
;
echo
"qweqwe";
cat
/tmp/ldif.ldif;
ldapmodify
-a
-x
-H
ldap://openldap
-D
cn=admin,{{
include
"ldap.dc"
.
}}
-w
$ADMINPASSWORD
-f
/tmp/ldif.ldif;
echo
$?
'
env
:
-
name
:
PASSWORD
valueFrom
:
secretKeyRef
:
name
:
password-password-mail-gitlab-from-tenant-exphost-services
key
:
sha512
-
name
:
ADMINPASSWORD
valueFrom
:
secretKeyRef
:
name
:
password-password-ldap-admin-from-tenant-exphost-services
key
:
password
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment