Commit a53e16ab by Kevin Falcone

Install a global mongorc.js

Right now, users need to type rs.slaveOk() after running a read-replica
mongo script.  This avoids that.  It is compatible with anyone who also
has a ~/.mongorc.js
parent e97975da
......@@ -148,3 +148,15 @@
- scripts
- scripts:mongo
- install:code
- name: install a global mongorc.js
template:
src: etc/mongorc.js.j2
dest: /etc/mongorc.js
mode: 0755
owner: root
group: root
tags:
- scripts
- scripts:mongo
- mongorc
// we only ever connect to secondaries, avoid people needing to remember to type this
rs.slaveOk();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment