diff --git a/Chart.yaml b/Chart.yaml index 72d68d2..8f70681 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -13,6 +13,7 @@ keywords: - grafana - cassandra - kafka + - mongodb home: https://github.com/cetic/fadi icon: https://raw.githubusercontent.com/cetic/fadi/master/doc/images/logo.png source: @@ -121,4 +122,8 @@ dependencies: - name: thingsboard version: ~0.1.1 repository: https://cetic.github.io/helm-charts/ - condition: thingsboard.enabled \ No newline at end of file + condition: thingsboard.enabled +- name: mongodb + version: ~10.11.1 + repository: https://charts.bitnami.com/bitnami + condition: mongodb.enabled \ No newline at end of file diff --git a/README.md b/README.md index bdfc6bc..1c8627f 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,7 @@ Each requirement is configured with the options provided by that Chart. Please c | `zabbix.enabled` | Enable [Zabbix](https://github.com/cetic/helm-zabbix) | `false` | | `drupal.enabled` | Enable [drupal](https://github.com/cetic/helm-drupal) | `false` | | `airflow.enabled` | Enable [airflow](https://artifacthub.io/packages/helm/bitnami/airflow) | `false` | +| `mongodb.enabled` | Enable [mongodb](https://artifacthub.io/packages/helm/bitnami/mongodb) | `false` | | `rabbitmq.enabled` | Enable [rabbitmq](https://artifacthub.io/packages/helm/bitnami/rabbitmq) | `false` | | `thingsboard.enabled` | Enable [thingsboard](https://github.com/cetic/helm-thingsboard) | `false` | diff --git a/values.yaml b/values.yaml index 38c1ba8..f3a9669 100644 --- a/values.yaml +++ b/values.yaml @@ -516,4 +516,17 @@ thingsboard: enabled: true annotations: {} hosts: - - host: thingsboard.example \ No newline at end of file + - host: thingsboard.example + +mongodb: + enabled: false + persistence: + enabled: true + auth: + enabled: true + rootPassword: "password1" + initdbScripts: + create_admin_user.sh: | + $MONGODB_BIN_DIR/mongo admin --host 127.0.0.1 --port $MONGODB_PORT_NUMBER -u root -p $MONGODB_ROOT_PASSWORD << EOF + db.createUser({ user: "admin" , pwd: "password1", roles: ["userAdminAnyDatabase", "dbAdminAnyDatabase", "readWriteAnyDatabase"]}) + EOF