maxamillion / ansible-openshift_origin

Ansible Playbook for OpenShift Origin
Other
24 stars 12 forks source link

requirement to install ruby while running mongodb password script #1

Closed jeevanullas closed 11 years ago

jeevanullas commented 11 years ago

Look at following line

action: raw /root/00-set_mongopw.sh

In File: https://github.com/maxamillion/ansible-openshift_origin/blob/master/broker.yml

If we look at the script here:

https://github.com/maxamillion/ansible-openshift_origin/blob/master/templates/mongodb/set_mongopw.sh.j2

It requires ruby to be installed but on a bare minimal F18 install, we do not have ruby installed. So it would be good if we install ruby before reaching the mongodb task.

Does that make sense?

maxamillion commented 11 years ago

It does, good catch. Thanks for the feedback, will have a fix up shortly.

maxamillion commented 11 years ago

Should be resolved in https://github.com/maxamillion/ansible-openshift_origin/commit/4da092ba27527fbfeffd0618e5e3efdd909dc79b

NOTE: If you've deployed off the old version, this won't work because the egrep check will see that auth is enabled and will skip the config section. Remove the line "auth = true" from /etc/mongodb.conf and then re-run with the latest.