diff --git a/rq/scripts/mongo-replica-conf b/rq/scripts/mongo-replica-conf index 5b9e228..112dafc 100644 --- a/rq/scripts/mongo-replica-conf +++ b/rq/scripts/mongo-replica-conf @@ -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'])") diff --git a/rq/scripts/mongo-replication-status b/rq/scripts/mongo-replication-status index e7bfd4e..1d04b61 100644 --- a/rq/scripts/mongo-replication-status +++ b/rq/scripts/mongo-replication-status @@ -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'])") diff --git a/rq/scripts/mongo-status b/rq/scripts/mongo-status index b0bf78c..6a27c07 100644 --- a/rq/scripts/mongo-status +++ b/rq/scripts/mongo-status @@ -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'])")