fix: add credentials for mongo commands

This commit is contained in:
adobdin 2016-05-28 16:39:08 +00:00
parent 076562d0e7
commit 681ea56fc1
3 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
mongo admin --eval "printjson(rs.conf())"
mongo admin --eval "printjson(rs.conf())" -u admin --password $(python -c "import yaml; f=open('/etc/astute.yaml', 'r'); y=yaml.load(f); f.close(); print(y['ceilometer']['db_password'])")

View File

@ -1 +1 @@
mongo admin --eval "printjson(rs.status())"
mongo admin --eval "printjson(rs.status())" -u admin --password $(python -c "import yaml; f=open('/etc/astute.yaml', 'r'); y=yaml.load(f); f.close(); print(y['ceilometer']['db_password'])")

View File

@ -1 +1 @@
mongo admin --eval "printjson(db.serverStatus())"
mongo admin --eval "printjson(db.serverStatus())" -u admin --password $(python -c "import yaml; f=open('/etc/astute.yaml', 'r'); y=yaml.load(f); f.close(); print(y['ceilometer']['db_password'])")