timmy/rq/scripts/mongo-replica-conf
2016-05-28 16:39:08 +00:00

2 lines
188 B
Plaintext

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'])")