Update to 2021-12-01 19:13

This commit is contained in:
Daniel Berteaud
2021-12-01 19:13:34 +01:00
commit 4c4556c660
2153 changed files with 60999 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
systemLog:
destination: syslog
processManagement:
fork: true
pidFilePath: /var/run/mongodb/mongod.pid
net:
port: {{ mongo_port }}
bindIp: 0.0.0.0
bindIpAll: true
unixDomainSocket:
pathPrefix: /var/run/mongodb
security:
authorization: {{ mongo_auth | ternary('enabled','disabled') }}
storage:
dbPath: {{ mongo_db_path }}

View File

@@ -0,0 +1,2 @@
db = connect('localhost:{{ mongo_port }}/admin');
db.auth('{{ mongo_admin_user }}', '{{ mongo_admin_pass }}');

View File

@@ -0,0 +1,3 @@
#!/bin/bash -e
rm -rf /home/lbkp/mongo/*

View File

@@ -0,0 +1,6 @@
#!/bin/sh
set -eo pipefail
mkdir -p /home/lbkp/mongo
mongodump --username {{ mongo_admin_user }} --password {{ mongo_admin_pass | quote }} --quiet --port {{ mongo_port }} --out /home/lbkp/mongo