Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SASC
sentinel-legacy
Commits
2c5b0320
Commit
2c5b0320
authored
Jan 25, 2016
by
bow
Browse files
Use configuration ip and port when running mongodb shell commands
parent
39dc8441
Changes
1
Hide whitespace changes
Inline
Side-by-side
deployment/ansible-role-mongodb/tasks/config_db.yml
View file @
2c5b0320
...
...
@@ -5,7 +5,7 @@
when
:
mongodb_js_index_script is defined
-
name
:
run database config script
shell
:
/usr/bin/mongo --quiet
127.0.0.1:27017
/sentinel {{ mongodb_misc_dir }}/{{ mongodb_js_index_script }} -u {{ mongodb_root_name }} -p {{ mongodb_root_password }} --authenticationDatabase admin
shell
:
/usr/bin/mongo --quiet
{{ mongodb_conf_bind_ip }}:{{ mongodb_conf_port }}
/sentinel {{ mongodb_misc_dir }}/{{ mongodb_js_index_script }} -u {{ mongodb_root_name }} -p {{ mongodb_root_password }} --authenticationDatabase admin
when
:
mongodb_js_index_script is defined
register
:
js_index_script
changed_when
:
js_index_script.stdout != ""
...
...
@@ -23,7 +23,7 @@
when
:
api_users_exist|changed
-
name
:
run api users config script if required
shell
:
/usr/bin/mongo --quiet
127.0.0.1:27017
/sentinel {{ mongodb_misc_dir }}/sentinelUsersSetup.js -u {{ mongodb_root_name }} -p {{ mongodb_root_password }} --authenticationDatabase admin
shell
:
/usr/bin/mongo --quiet
{{ mongodb_conf_bind_ip }}:{{ mongodb_conf_port }}
/sentinel {{ mongodb_misc_dir }}/sentinelUsersSetup.js -u {{ mongodb_root_name }} -p {{ mongodb_root_password }} --authenticationDatabase admin
register
:
api_users
changed_when
:
api_users.stdout != ""
when
:
api_users_exist|changed
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment