fix: add credentials for mongo commands
This commit is contained in:
parent
076562d0e7
commit
681ea56fc1
@ -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'])")
|
||||
|
@ -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'])")
|
||||
|
@ -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'])")
|
||||
|
Loading…
Reference in New Issue
Block a user