Skip to content

Commit

Permalink
DBP-805 Initial version of the Moodle Helm chart (#30)
Browse files Browse the repository at this point in the history
* Initial push

* Added existing tasks of the ansible playbook to helm chart

* Added remaining templates from original playbook except secrets

* Fix some small variable issues so that the chart is in a working state

* renaming variables, added gitignore

* add subfolders, rename files to follow helm best practices

* lowercase ns

* fix namespace issue. helm v3 is not supposed to create the namespace it installs into. use helm install ... -n target-namespace

* rename duply map to lower

* Add alias for backup

* move infratools_image_tag to globals trying out Yaml anchors

* add update helper configs

* move infratools_image_tag to globals trying out Yaml anchors

* add values for backup-cronjob

* moodle-> dbpMoodle & small stuff

* Moodle Values added for bitnami test deployment

* mariaDB values are not working as intended for subchart mariadb and moodle

* Fixed config.php and moodle values

* changed comment

* change valeus to use correct secrets

* Changed secrets and values for external mariadb

* remove mariadb

* rename moodleSecre

* add mariadb values in seperate chart

* testing moodle db connection

* enable debug

* quote values

* Redis is working

* value refactoring

* remove some unneccessary values from Chart.yaml

* change to consistent naming

* Created more exclusion checks for update and backup files

* Enabled the use of etherpad

* Added etherpad secrets

* WIP: etherpad not working currently

* minor value and condition refactoring

* Create Readme, quote a bunch of vars

* bump version

* Rename folders and fix typos

* Fixed quotation error and added existing secret to redis

* Adjusted redis values and disabled redis by default

* Modified external PVC to ReadWriteMany

* Final changes

* Update README.md

---------

Co-authored-by: marhode <[email protected]>
Co-authored-by: marhode <[email protected]>
  • Loading branch information
3 people authored Jun 21, 2024
1 parent b70c5c3 commit fad1bc7
Show file tree
Hide file tree
Showing 45 changed files with 2,458 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
### Helm ###
# Chart dependencies
**/charts/*.tgz

### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride

# Local test files
tmp/
23 changes: 23 additions & 0 deletions charts/dbp-moodle/.helmignore
Original file line number Diff line number Diff line change
@@ -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
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
24 changes: 24 additions & 0 deletions charts/dbp-moodle/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
dependencies:
- name: moodle
repository: https://charts.bitnami.com/bitnami
version: 22.2.7
- name: redis
repository: https://charts.bitnami.com/bitnami
version: 19.5.3
- name: mariadb
repository: https://charts.bitnami.com/bitnami
version: 18.2.2
- name: postgresql
repository: https://charts.bitnami.com/bitnami
version: 15.5.7
- name: cronjob
repository: file://charts/backup-cronjob
version: 0.1.0
- name: postgresql
repository: https://charts.bitnami.com/bitnami
version: 15.5.7
- name: etherpad
repository: file://charts/etherpad
version: 0.1.0
digest: sha256:0bcbb8bdf12bab5529a1360b1157e36d2bd51e1d12b3ef653c61b07ba6936ce8
generated: "2024-06-20T12:13:11.419404592Z"
47 changes: 47 additions & 0 deletions charts/dbp-moodle/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
apiVersion: v2
name: dbp-moodle
description: A Helm chart for dBildungsplattform Moodle including customizations
type: application
version: 1.0.0
appVersion: "1.16.0"
dependencies:
- name: moodle
version: "22.2.7"
repository: https://charts.bitnami.com/bitnami

- name: redis
version: "19.5.3"
repository: https://charts.bitnami.com/bitnami
condition: redis.enabled

- name: mariadb
version: "18.2.2"
repository: https://charts.bitnami.com/bitnami
condition: mariadb.enabled

- name: postgresql
version: "15.5.7"
repository: https://charts.bitnami.com/bitnami
condition: postgresql.enabled

- name: cronjob
alias: backup-cronjob
version: 0.1.0
repository: "file://charts/backup-cronjob"
condition: backup.enabled

- name: postgresql
version: "15.5.7"
repository: https://charts.bitnami.com/bitnami
alias: etherpad-postgresql
condition: etherpadlite.enabled

- name: etherpad
version: 0.1.0
repository: "file://charts/etherpad"
alias: etherpadlite
condition: etherpadlite.enabled

# - name: sql-exporter

#Include tasks for sc-serviceaccounts.yml
Loading

0 comments on commit fad1bc7

Please sign in to comment.