From fd32f7d26a6861997c8185daa23409c387487123 Mon Sep 17 00:00:00 2001 From: Alessandro Lai Date: Fri, 19 Jan 2018 22:32:52 +0100 Subject: [PATCH] Create basic recipe for the MongoDB Bundle --- .../0.6/config/packages/facile-it_mongodb.yaml | 17 +++++++++++++++++ facile-it/mongodb-bundle/0.6/manifest.json | 15 +++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 facile-it/mongodb-bundle/0.6/config/packages/facile-it_mongodb.yaml create mode 100644 facile-it/mongodb-bundle/0.6/manifest.json diff --git a/facile-it/mongodb-bundle/0.6/config/packages/facile-it_mongodb.yaml b/facile-it/mongodb-bundle/0.6/config/packages/facile-it_mongodb.yaml new file mode 100644 index 00000000..f9b0ac19 --- /dev/null +++ b/facile-it/mongodb-bundle/0.6/config/packages/facile-it_mongodb.yaml @@ -0,0 +1,17 @@ +mongo_db_bundle: + data_collection: '%kernel.debug%' + clients: + default: + hosts: + - { host: '%env(MONGODB_HOST)%', port: '%env(MONGODB_PORT)%' } + username: '%env(MONGODB_USER)%' + password: '%env(MONGODB_PASSWORD)%' + replicaSet: '' # default null (no replica) + ssl: false + connectTimeoutMS: 3000 + readPreference: primaryPreferred # see https://docs.mongodb.com/manual/reference/read-preference/#primary for info + + connections: + default: + client_name: default + database_name: '%env(MONGODB_DB)%' diff --git a/facile-it/mongodb-bundle/0.6/manifest.json b/facile-it/mongodb-bundle/0.6/manifest.json new file mode 100644 index 00000000..26c702cc --- /dev/null +++ b/facile-it/mongodb-bundle/0.6/manifest.json @@ -0,0 +1,15 @@ +{ + "bundles": { + "Facile\\MongoDbBundle\\FacileMongoDbBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/", + }, + "env": { + "MONGODB_HOST": "localhost", + "MONGODB_PORT": "27017", + "MONGODB_USER": null, + "MONGODB_PASSWORD": null, + "MONGODB_DB": "symfony" + } +}