Merge "Replace mongo shell interaction with script"

This commit is contained in:
Jenkins 2014-02-08 06:28:03 +00:00 committed by Gerrit Code Review
commit 0dcaff893d

View File

@ -91,12 +91,11 @@
<step> <step>
<para>Create the database and a <literal>ceilometer</literal> <para>Create the database and a <literal>ceilometer</literal>
database user:</para> database user:</para>
<screen><prompt>#</prompt> <userinput>mongo --host <replaceable>controller</replaceable></userinput> <screen><prompt>#</prompt> <userinput>mongo --host <replaceable>controller</replaceable> --eval '
<prompt>></prompt> <userinput>use ceilometer</userinput> db = db.getSiblingDB("ceilometer");
<prompt>></prompt> <userinput>db.addUser( { user: "ceilometer", db.addUser({user: "ceilometer",
pwd: "<replaceable>CEILOMETER_DBPASS</replaceable>", pwd: "<replaceable>CEILOMETER_DBPASS</replaceable>",
roles: [ "readWrite", "dbAdmin" ] roles: [ "readWrite", "dbAdmin" ]})'</userinput></screen>
} )</userinput></screen>
</step> </step>
<step> <step>
<para>Configure the Telemetry service to use the database:</para> <para>Configure the Telemetry service to use the database:</para>