Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- main_db:
- mysql_database.present:
- - name: mc2_{{grains['host']}}
- - requrie:
- - pkg: python-mysqldb
- - service: mysql
- - connection_user: root
- - connection_pass: "1234567890"
- mysql_user.present:
- - name: {{grains['host']}}
- - password: {{grains['id'] + 'pass'}}
- - host: localhost
- - connection_user: root
- - connection_pass: "1234567890"
- mysql_grants.present:
- - database: mc2_{{grains['host']}}.*
- - grant: ALL PRIVILEGES
- - user: {{grains['host']}}
- - connection_user: root
- - connection_pass: "1234567890"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement