From a3693103ba3648e21c023048ac72750873dd7cc1 Mon Sep 17 00:00:00 2001 From: Marius Ensrud Date: Tue, 10 May 2022 14:28:26 +0200 Subject: [PATCH] 0.2.2 --- charts/guacamole/.gitignore | 1 + charts/guacamole/.helmignore | 23 +++ charts/guacamole/0.2.2/Chart.yaml | 11 ++ charts/guacamole/0.2.2/templates/NOTES.txt | 21 +++ charts/guacamole/0.2.2/templates/_helpers.tpl | 56 ++++++++ .../0.2.2/templates/deployment-guacamole.yaml | 106 ++++++++++++++ .../0.2.2/templates/deployment-guacd.yaml | 57 ++++++++ charts/guacamole/0.2.2/templates/ingress.yaml | 41 ++++++ charts/guacamole/0.2.2/templates/secret.yaml | 15 ++ .../0.2.2/templates/service-guacamole.yaml | 16 +++ .../0.2.2/templates/service-guacd.yaml | 16 +++ .../0.2.2/templates/serviceaccount.yaml | 8 ++ .../templates/tests/test-connection.yaml | 15 ++ charts/guacamole/0.2.2/values.yaml | 96 +++++++++++++ charts/sogo/sogo.conf | 136 ++++++++++++++++++ charts/sogo/templates/.configmap.yaml.swp | Bin 0 -> 12288 bytes charts/sogo/values.yaml | 1 + 17 files changed, 619 insertions(+) create mode 100644 charts/guacamole/.gitignore create mode 100644 charts/guacamole/.helmignore create mode 100644 charts/guacamole/0.2.2/Chart.yaml create mode 100644 charts/guacamole/0.2.2/templates/NOTES.txt create mode 100644 charts/guacamole/0.2.2/templates/_helpers.tpl create mode 100644 charts/guacamole/0.2.2/templates/deployment-guacamole.yaml create mode 100644 charts/guacamole/0.2.2/templates/deployment-guacd.yaml create mode 100644 charts/guacamole/0.2.2/templates/ingress.yaml create mode 100644 charts/guacamole/0.2.2/templates/secret.yaml create mode 100644 charts/guacamole/0.2.2/templates/service-guacamole.yaml create mode 100644 charts/guacamole/0.2.2/templates/service-guacd.yaml create mode 100644 charts/guacamole/0.2.2/templates/serviceaccount.yaml create mode 100644 charts/guacamole/0.2.2/templates/tests/test-connection.yaml create mode 100644 charts/guacamole/0.2.2/values.yaml create mode 100644 charts/sogo/sogo.conf create mode 100644 charts/sogo/templates/.configmap.yaml.swp diff --git a/charts/guacamole/.gitignore b/charts/guacamole/.gitignore new file mode 100644 index 0000000..b43bf86 --- /dev/null +++ b/charts/guacamole/.gitignore @@ -0,0 +1 @@ +README.md diff --git a/charts/guacamole/.helmignore b/charts/guacamole/.helmignore new file mode 100644 index 0000000..55abfe7 --- /dev/null +++ b/charts/guacamole/.helmignore @@ -0,0 +1,23 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ +README.md.gotmpl diff --git a/charts/guacamole/0.2.2/Chart.yaml b/charts/guacamole/0.2.2/Chart.yaml new file mode 100644 index 0000000..f0a066d --- /dev/null +++ b/charts/guacamole/0.2.2/Chart.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +appVersion: "1.4.0" +description: Apache Guacamole is a clientless remote desktop gateway. It supports standard protocols like VNC, RDP, and SSH. +name: guacamole +version: 0.2.2 +icon: http://guacamole.apache.org/images/guac-logo.png +sources: + - http://guacamole.apache.org/ +maintainers: + - name: Gavin Mogan + email: helm@gavinmogan.com diff --git a/charts/guacamole/0.2.2/templates/NOTES.txt b/charts/guacamole/0.2.2/templates/NOTES.txt new file mode 100644 index 0000000..9516c84 --- /dev/null +++ b/charts/guacamole/0.2.2/templates/NOTES.txt @@ -0,0 +1,21 @@ +1. Get the application URL by running these commands: +{{- if .Values.ingress.enabled }} +{{- range $host := .Values.ingress.hosts }} + {{- range .paths }} + http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ . }} + {{- end }} +{{- end }} +{{- else if contains "NodePort" .Values.service.type }} + export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "guacamole.fullname" . }}) + export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") + echo http://$NODE_IP:$NODE_PORT +{{- else if contains "LoadBalancer" .Values.service.type }} + NOTE: It may take a few minutes for the LoadBalancer IP to be available. + You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "guacamole.fullname" . }}' + export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "guacamole.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") + echo http://$SERVICE_IP:{{ .Values.service.port }} +{{- else if contains "ClusterIP" .Values.service.type }} + export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "guacamole.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") + echo "Visit http://127.0.0.1:8080 to use your application" + kubectl port-forward $POD_NAME 8080:80 +{{- end }} diff --git a/charts/guacamole/0.2.2/templates/_helpers.tpl b/charts/guacamole/0.2.2/templates/_helpers.tpl new file mode 100644 index 0000000..23f4c3a --- /dev/null +++ b/charts/guacamole/0.2.2/templates/_helpers.tpl @@ -0,0 +1,56 @@ +{{/* vim: set filetype=mustache: */}} +{{/* +Expand the name of the chart. +*/}} +{{- define "guacamole.name" -}} +{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} +{{- end -}} + +{{/* +Create a default fully qualified app name. +We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). +If release name contains chart name it will be used as a full name. +*/}} +{{- define "guacamole.fullname" -}} +{{- if .Values.fullnameOverride -}} +{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} +{{- else -}} +{{- $name := default .Chart.Name .Values.nameOverride -}} +{{- if contains $name .Release.Name -}} +{{- .Release.Name | trunc 63 | trimSuffix "-" -}} +{{- else -}} +{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} +{{- end -}} +{{- end -}} + +{{/* +Create chart name and version as used by the chart label. +*/}} +{{- define "guacamole.chart" -}} +{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} +{{- end -}} + +{{/* +Common labels +*/}} +{{- define "guacamole.labels" -}} +app.kubernetes.io/name: {{ include "guacamole.name" . }} +helm.sh/chart: {{ include "guacamole.chart" . }} +app.kubernetes.io/instance: {{ .Release.Name }} +{{- if .Chart.AppVersion }} +app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} +{{- end }} +app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- end -}} + +{{/* +Create the name of the service account to use +*/}} +{{- define "guacamole.serviceAccountName" -}} +{{- if .Values.serviceAccount.create -}} + {{ default (include "guacamole.fullname" .) .Values.serviceAccount.name }} +{{- else -}} + {{ default "default" .Values.serviceAccount.name }} +{{- end -}} +{{- end -}} diff --git a/charts/guacamole/0.2.2/templates/deployment-guacamole.yaml b/charts/guacamole/0.2.2/templates/deployment-guacamole.yaml new file mode 100644 index 0000000..271fc05 --- /dev/null +++ b/charts/guacamole/0.2.2/templates/deployment-guacamole.yaml @@ -0,0 +1,106 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ include "guacamole.fullname" . }}-guacamole + labels: +{{ include "guacamole.labels" . | indent 4 }} +spec: + replicas: {{ .Values.replicaCount }} + selector: + matchLabels: + app.kubernetes.io/name: {{ include "guacamole.name" . }}-guacamole + app.kubernetes.io/instance: {{ .Release.Name }} + template: + metadata: + labels: + app.kubernetes.io/name: {{ include "guacamole.name" . }}-guacamole + app.kubernetes.io/instance: {{ .Release.Name }} + spec: + {{- with .Values.guacamole.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} + dnsConfig: + options: + - name: ndots + value: "1" + serviceAccountName: {{ template "guacamole.serviceAccountName" . }} + securityContext: + {{- toYaml .Values.podSecurityContext | nindent 8 }} + initContainers: + - name: create-init-db + securityContext: + {{- toYaml .Values.securityContext | nindent 12 }} + image: "{{ .Values.guacamole.image.repository }}:{{ tpl .Values.guacamole.image.tag . }}" + imagePullPolicy: {{ .Values.guacamole.image.pullPolicy }} + envFrom: + - secretRef: + name: {{ include "guacamole.fullname" . }} + volumeMounts: + - name: initdb + mountPath: /data + command: ["/bin/sh"] + args: + - -c + - | + /opt/guacamole/bin/initdb.sh --postgres > /data/initdb.sql + resources: + {{- toYaml .Values.resources | nindent 12 }} + - name: loaddb + securityContext: + {{- toYaml .Values.securityContext | nindent 12 }} + image: "{{ .Values.dbcreation.image.repository }}:{{ .Values.dbcreation.image.tag }}" + imagePullPolicy: {{ .Values.dbcreation.image.pullPolicy }} + envFrom: + - secretRef: + name: {{ include "guacamole.fullname" . }} + volumeMounts: + - name: initdb + mountPath: /data + command: ["/bin/sh"] + args: + - -c + - | + export PGPASSWORD=$POSTGRES_PASSWORD + # most likely already created, so don't fail, just log and move on + psql -h $POSTGRES_HOSTNAME -d $POSTGRES_DATABASE -U $POSTGRES_USER -p $POSTGRES_PORT -a -w -f /data/initdb.sql || true + resources: + {{- toYaml .Values.resources | nindent 12 }} + containers: + - name: {{ .Chart.Name }} + securityContext: + {{- toYaml .Values.securityContext | nindent 12 }} + image: "{{ .Values.guacamole.image.repository }}:{{ tpl .Values.guacamole.image.tag . }}" + imagePullPolicy: {{ .Values.guacamole.image.pullPolicy }} + envFrom: + - secretRef: + name: {{ include "guacamole.fullname" . }} + ports: + - name: http + containerPort: 8080 + protocol: TCP + {{- with .Values.guacamole.livenessProbe }} + livenessProbe: + {{- toYaml . | nindent 12 }} + {{- end }} + {{- with .Values.guacamole.readinessProbe }} + livenessProbe: + {{- toYaml . | nindent 12 }} + {{- end }} + resources: + {{- toYaml .Values.resources | nindent 12 }} + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} + volumes: + - name: initdb + emptyDir: {} diff --git a/charts/guacamole/0.2.2/templates/deployment-guacd.yaml b/charts/guacamole/0.2.2/templates/deployment-guacd.yaml new file mode 100644 index 0000000..ea4ccff --- /dev/null +++ b/charts/guacamole/0.2.2/templates/deployment-guacd.yaml @@ -0,0 +1,57 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ include "guacamole.fullname" . }}-guacd + labels: +{{ include "guacamole.labels" . | indent 4 }} +spec: + replicas: {{ .Values.replicaCount }} + selector: + matchLabels: + app.kubernetes.io/name: {{ include "guacamole.name" . }}-guacd + app.kubernetes.io/instance: {{ .Release.Name }} + template: + metadata: + labels: + app.kubernetes.io/name: {{ include "guacamole.name" . }}-guacd + app.kubernetes.io/instance: {{ .Release.Name }} + spec: + {{- with .Values.guacd.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} + dnsConfig: + options: + - name: ndots + value: "1" + serviceAccountName: {{ template "guacamole.serviceAccountName" . }} + securityContext: + {{- toYaml .Values.podSecurityContext | nindent 8 }} + containers: + - name: {{ .Chart.Name }} + securityContext: + {{- toYaml .Values.securityContext | nindent 12 }} + image: "{{ .Values.guacd.image.repository }}:{{ tpl .Values.guacd.image.tag . }}" + imagePullPolicy: {{ .Values.guacd.image.pullPolicy }} + envFrom: + - secretRef: + name: {{ include "guacamole.fullname" . }} + ports: + - name: guacd + containerPort: 4822 + protocol: TCP + resources: + {{- toYaml .Values.resources | nindent 12 }} + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} + diff --git a/charts/guacamole/0.2.2/templates/ingress.yaml b/charts/guacamole/0.2.2/templates/ingress.yaml new file mode 100644 index 0000000..5e52cf7 --- /dev/null +++ b/charts/guacamole/0.2.2/templates/ingress.yaml @@ -0,0 +1,41 @@ +{{- if .Values.ingress.enabled -}} +{{- $fullName := include "guacamole.fullname" . -}} +{{- $svcPort := .Values.service.port -}} +{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} +apiVersion: networking.k8s.io/v1beta1 +{{- else -}} +apiVersion: extensions/v1beta1 +{{- end }} +kind: Ingress +metadata: + name: {{ $fullName }} + labels: +{{ include "guacamole.labels" . | indent 4 }} + {{- with .Values.ingress.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +spec: +{{- if .Values.ingress.tls }} + tls: + {{- range .Values.ingress.tls }} + - hosts: + {{- range .hosts }} + - {{ . | quote }} + {{- end }} + secretName: {{ .secretName }} + {{- end }} +{{- end }} + rules: + {{- range .Values.ingress.hosts }} + - host: {{ .host | quote }} + http: + paths: + {{- range .paths }} + - path: {{ . }} + backend: + serviceName: {{ $fullName }}-guacamole + servicePort: {{ $svcPort }} + {{- end }} + {{- end }} +{{- end }} diff --git a/charts/guacamole/0.2.2/templates/secret.yaml b/charts/guacamole/0.2.2/templates/secret.yaml new file mode 100644 index 0000000..7ed9bb2 --- /dev/null +++ b/charts/guacamole/0.2.2/templates/secret.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: Secret +metadata: + name: {{ include "guacamole.fullname" . }} + labels: +{{ include "guacamole.labels" . | indent 4 }} +type: Opaque +data: + GUACD_HOSTNAME: {{ printf "%s-%s" (include "guacamole.name" .) "guacd" | b64enc | quote }} + GUACD_PORT: {{ "4822" | b64enc | quote }} + POSTGRES_HOSTNAME: {{ .Values.postgres.hostname | b64enc | quote }} + POSTGRES_PORT: {{ .Values.postgres.port | b64enc | quote }} + POSTGRES_DATABASE: {{ .Values.postgres.database | b64enc | quote }} + POSTGRES_USER: {{ .Values.postgres.user | b64enc | quote }} + POSTGRES_PASSWORD: {{ .Values.postgres.password | b64enc | quote }} diff --git a/charts/guacamole/0.2.2/templates/service-guacamole.yaml b/charts/guacamole/0.2.2/templates/service-guacamole.yaml new file mode 100644 index 0000000..c45f07a --- /dev/null +++ b/charts/guacamole/0.2.2/templates/service-guacamole.yaml @@ -0,0 +1,16 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ include "guacamole.fullname" . }}-guacamole + labels: +{{ include "guacamole.labels" . | indent 4 }} +spec: + type: {{ .Values.service.type }} + ports: + - port: {{ .Values.service.port }} + targetPort: http + protocol: TCP + name: http + selector: + app.kubernetes.io/name: {{ include "guacamole.name" . }}-guacamole + app.kubernetes.io/instance: {{ .Release.Name }} diff --git a/charts/guacamole/0.2.2/templates/service-guacd.yaml b/charts/guacamole/0.2.2/templates/service-guacd.yaml new file mode 100644 index 0000000..034b8ab --- /dev/null +++ b/charts/guacamole/0.2.2/templates/service-guacd.yaml @@ -0,0 +1,16 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ include "guacamole.fullname" . }}-guacd + labels: +{{ include "guacamole.labels" . | indent 4 }} +spec: + type: {{ .Values.service.type }} + ports: + - port: 4822 + targetPort: guacd + protocol: TCP + name: guacd + selector: + app.kubernetes.io/name: {{ include "guacamole.name" . }}-guacd + app.kubernetes.io/instance: {{ .Release.Name }} diff --git a/charts/guacamole/0.2.2/templates/serviceaccount.yaml b/charts/guacamole/0.2.2/templates/serviceaccount.yaml new file mode 100644 index 0000000..c68ebea --- /dev/null +++ b/charts/guacamole/0.2.2/templates/serviceaccount.yaml @@ -0,0 +1,8 @@ +{{- if .Values.serviceAccount.create -}} +apiVersion: v1 +kind: ServiceAccount +metadata: + name: {{ template "guacamole.serviceAccountName" . }} + labels: +{{ include "guacamole.labels" . | indent 4 }} +{{- end -}} diff --git a/charts/guacamole/0.2.2/templates/tests/test-connection.yaml b/charts/guacamole/0.2.2/templates/tests/test-connection.yaml new file mode 100644 index 0000000..d793bf1 --- /dev/null +++ b/charts/guacamole/0.2.2/templates/tests/test-connection.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: Pod +metadata: + name: "{{ include "guacamole.fullname" . }}-test-connection" + labels: +{{ include "guacamole.labels" . | indent 4 }} + annotations: + "helm.sh/hook": test-success +spec: + containers: + - name: wget + image: busybox + command: ['wget'] + args: ['{{ include "guacamole.fullname" . }}:{{ .Values.service.port }}'] + restartPolicy: Never diff --git a/charts/guacamole/0.2.2/values.yaml b/charts/guacamole/0.2.2/values.yaml new file mode 100644 index 0000000..243d0c1 --- /dev/null +++ b/charts/guacamole/0.2.2/values.yaml @@ -0,0 +1,96 @@ +# Default values for guacamole. +# This is a YAML-formatted file. +# Declare variables to be passed into your templates. + +replicaCount: 1 + +guacamole: + image: + repository: guacamole/guacamole + tag: "{{ .Chart.AppVersion }}" + pullPolicy: IfNotPresent + livenessProbe: + httpGet: + path: / + port: http + readinessProbe: + httpGet: + path: / + port: http + +guacd: + image: + repository: guacamole/guacd + tag: "{{ .Chart.AppVersion }}" + pullPolicy: IfNotPresent + +dbcreation: + image: + repository: bitnami/postgresql + tag: 11.7.0-debian-10-r9 + pullPolicy: IfNotPresent + +imagePullSecrets: [] +nameOverride: "" +fullnameOverride: "" + +serviceAccount: + # Specifies whether a service account should be created + create: true + # The name of the service account to use. + # If not set and create is true, a name is generated using the fullname template + name: + +podSecurityContext: {} + # fsGroup: 2000 + +securityContext: {} + # capabilities: + # drop: + # - ALL + # readOnlyRootFilesystem: true + # runAsNonRoot: true + # runAsUser: 1000 + +service: + type: ClusterIP + port: 80 + +ingress: + enabled: false + annotations: {} + # kubernetes.io/ingress.class: nginx + # kubernetes.io/tls-acme: "true" + hosts: + - host: chart-example.local + paths: [] + + tls: [] + # - secretName: chart-example-tls + # hosts: + # - chart-example.local + +resources: {} + # We usually recommend not to specify default resources and to leave this as a conscious + # choice for the user. This also increases chances charts run on environments with little + # resources, such as Minikube. If you do want to specify resources, uncomment the following + # lines, adjust them as necessary, and remove the curly braces after 'resources:'. + # limits: + # cpu: 100m + # memory: 128Mi + # requests: + # cpu: 100m + # memory: 128Mi + +nodeSelector: {} + +tolerations: [] + +affinity: {} + +postgres: + hostname: "postgresql" + port: "5432" + database: "guacamole" + user: "guacamole" + password: "password" diff --git a/charts/sogo/sogo.conf b/charts/sogo/sogo.conf new file mode 100644 index 0000000..b3fa93e --- /dev/null +++ b/charts/sogo/sogo.conf @@ -0,0 +1,136 @@ +{ + /* ********************* Main SOGo configuration file ********************** + * * + * Since the content of this file is a dictionary in OpenStep plist format, * + * the curly braces enclosing the body of the configuration are mandatory. * + * See the Installation Guide for details on the format. * + * * + * C and C++ style comments are supported. * + * * + * This example configuration contains only a subset of all available * + * configuration parameters. Please see the installation guide more details. * + * * + * ~sogo/GNUstep/Defaults/.GNUstepDefaults has precedence over this file, * + * make sure to move it away to avoid unwanted parameter overrides. * + * * + * **************************************************************************/ + + /* Database configuration (mysql://, postgresql:// or oracle://) */ + //SOGoProfileURL = "postgresql://sogo:sogo@localhost:5432/sogo/sogo_user_profile"; + //OCSFolderInfoURL = "postgresql://sogo:sogo@localhost:5432/sogo/sogo_folder_info"; + //OCSSessionsFolderURL = "postgresql://sogo:sogo@localhost:5432/sogo/sogo_sessions_folder"; + + /* Mail */ + //SOGoDraftsFolderName = Drafts; + //SOGoSentFolderName = Sent; + //SOGoTrashFolderName = Trash; + //SOGoJunkFolderName = Junk; + //SOGoIMAPServer = "localhost"; + //SOGoSieveServer = "sieve://127.0.0.1:4190"; + //SOGoSMTPServer = "smtp://127.0.0.1"; + //SOGoMailDomain = acme.com; + //SOGoMailingMechanism = smtp; + //SOGoForceExternalLoginWithEmail = NO; + //SOGoMailSpoolPath = /var/spool/sogo; + //NGImap4ConnectionStringSeparator = "/"; + + /* Notifications */ + //SOGoAppointmentSendEMailNotifications = NO; + //SOGoACLsSendEMailNotifications = NO; + //SOGoFoldersSendEMailNotifications = NO; + + /* Authentication */ + //SOGoPasswordChangeEnabled = YES; + + /* LDAP authentication example */ + //SOGoUserSources = ( + // { + // type = ldap; + // CNFieldName = cn; + // UIDFieldName = uid; + // IDFieldName = uid; // first field of the DN for direct binds + // bindFields = (uid, mail); // array of fields to use for indirect binds + // baseDN = "ou=users,dc=acme,dc=com"; + // bindDN = "uid=sogo,ou=users,dc=acme,dc=com"; + // bindPassword = qwerty; + // canAuthenticate = YES; + // displayName = "Shared Addresses"; + // hostname = "ldap://127.0.0.1:389"; + // id = public; + // isAddressBook = YES; + // } + //); + + /* LDAP AD/Samba4 example */ + //SOGoUserSources = ( + // { + // type = ldap; + // CNFieldName = cn; + // UIDFieldName = sAMAccountName; + // baseDN = "CN=users,dc=domain,dc=tld"; + // bindDN = "CN=sogo,CN=users,DC=domain,DC=tld"; + // bindFields = (sAMAccountName, mail); + // bindPassword = password; + // canAuthenticate = YES; + // displayName = "Public"; + // hostname = "ldap://127.0.0.1:389"; + // filter = "mail = '*'"; + // id = directory; + // isAddressBook = YES; + // } + //); + + + /* SQL authentication example */ + /* These database columns MUST be present in the view/table: + * c_uid - will be used for authentication - it's the username or username@domain.tld) + * c_name - which can be identical to c_uid - will be used to uniquely identify entries + * c_password - password of the user, plain-text, md5 or sha encoded for now + * c_cn - the user's common name - such as "John Doe" + * mail - the user's mail address + * See the installation guide for more details + */ + //SOGoUserSources = + // ( + // { + // type = sql; + // id = directory; + // viewURL = "postgresql://sogo:sogo@127.0.0.1:5432/sogo/sogo_view"; + // canAuthenticate = YES; + // isAddressBook = YES; + // userPasswordAlgorithm = md5; + // } + // ); + + /* Web Interface */ + //SOGoPageTitle = SOGo; + //SOGoVacationEnabled = YES; + //SOGoForwardEnabled = YES; + //SOGoSieveScriptsEnabled = YES; + //SOGoMailAuxiliaryUserAccountsEnabled = YES; + //SOGoTrustProxyAuthentication = NO; + //SOGoXSRFValidationEnabled = YES; + + /* General - SOGoTimeZone *MUST* be defined */ + //SOGoLanguage = English; + //SOGoTimeZone = America/Montreal; + //SOGoCalendarDefaultRoles = ( + // PublicDAndTViewer, + // ConfidentialDAndTViewer + //); + //SOGoSuperUsernames = (sogo1, sogo2); // This is an array - keep the parens! + //SxVMemLimit = 384; + //WOPidFile = "/var/run/sogo/sogo.pid"; + //SOGoMemcachedHost = "/var/run/memcached.sock"; + + /* Debug */ + //SOGoDebugRequests = YES; + //SoDebugBaseURL = YES; + //ImapDebugEnabled = YES; + //LDAPDebugEnabled = YES; + //PGDebugEnabled = YES; + //MySQL4DebugEnabled = YES; + //SOGoUIxDebugEnabled = YES; + //WODontZipResponse = YES; + //WOLogFile = /var/log/sogo/sogo.log; +} diff --git a/charts/sogo/templates/.configmap.yaml.swp b/charts/sogo/templates/.configmap.yaml.swp new file mode 100644 index 0000000000000000000000000000000000000000..4e80214b655e42441afe2c80d8d400ed8ca15b56 GIT binary patch literal 12288 zcmeI2zi$&U6vth*LJNo=yD38l)JsDKOY~$pe zI6j$V(Idt}VPz7h9iv-A#4+d~j@!Y(e0liT>Y5g-CYfCvzQ zOGrTYjD4GAZ1F0-JpTWG_WS?$4aR<8e8>2V@e#vdNQ^reU#~N!Fs3j*O*8fY5-VF=oJ*}YD0q?UI&tZTn(>>k*-Y7*^=Smwv`H~dv% z9OUfMx80HIVI{c2n20LIKPP&^>fv$b`+A-q^MT0_%GqwCH} z9n>KbRyb2^LH=dZ%ZvM{Z;6mY6INe4uv)06CXjkpy7p=)q$;{pBP@Dp&x_%7U(~iX zmlM~NOGeMj+z$@BX#$nM}UDS>8Uopr_kK>#vdY*sd z8MhdbNhZm8_AT^!ZMi$5aD|^s`b>S{L4qR&n=K I_