Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use append_privs for WP DB privileges #422

Merged
merged 1 commit into from
Nov 26, 2015

Conversation

primozcigler
Copy link
Contributor

This change allows that multiple WP installations share the same db
user.

Check the docs here: http://docs.ansible.com/ansible/mysql_user_module.html

For example I might have multiple WP installations, but a common scenario is to have a 1 DB user which will have access to multiple WP databases.

@swalkinshaw
Copy link
Member

I would say you should have separate DB users :)

But regardless, this seems like a good default to have anyway. Thanks!

@@ -11,6 +11,7 @@
- name: Create/assign database user to db and grant permissions
mysql_user: name="{{ item.value.env.db_user }}"
password="{{ item.value.env.db_password }}"
append_privs=true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use yes instead of true? Matches up with Ansible docs.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New commit coming within minutes. I was not sure, as if you see the same page I pasted above, the example has true. 😕

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that's inconsistent on their part :( But they always use yes/no in the options section of their docs.

@swalkinshaw
Copy link
Member

@primozcigler would you be able to squash these commits?

This change allows that multiple WP installations share the same db
user.
@primozcigler
Copy link
Contributor Author

@swalkinshaw indeed, my bad 👍

swalkinshaw added a commit that referenced this pull request Nov 26, 2015
Added append_privs to WP setup - databases.
@swalkinshaw swalkinshaw merged commit 082430a into roots:master Nov 26, 2015
@primozcigler primozcigler deleted the append-privs branch November 26, 2015 22:31
@swalkinshaw swalkinshaw changed the title Added append_privs to WP setup - databases. Add append_privs to WP DB privileges Nov 29, 2015
@swalkinshaw swalkinshaw changed the title Add append_privs to WP DB privileges Use append_privs for WP DB privileges Nov 29, 2015
QWp6t pushed a commit that referenced this pull request Dec 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants