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

Unable to create user with access from multiple hosts #26

Open
worldowner opened this issue Feb 18, 2015 · 1 comment
Open

Unable to create user with access from multiple hosts #26

worldowner opened this issue Feb 18, 2015 · 1 comment

Comments

@worldowner
Copy link

host: "{{item.host | default('localhost')}}"
takes only last host found in user definition. It would be very nice to be able to give access to user from multiple hosts.

@soupdiver
Copy link
Contributor

I think you would have to create multiple users with the same attributes and just change the hostname
See: https://dev.mysql.com/doc/refman/5.5/en/adding-users.html

CREATE USER 'monty'@'localhost' IDENTIFIED BY 'some_pass';
CREATE USER 'monty'@'%' IDENTIFIED BY 'some_pass';

They create the user monty one time for host localhost and again for host %

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

No branches or pull requests

2 participants