Advertisement
Guest User

Untitled

a guest
Jun 28th, 2013
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. {% for user, passwd in pillar['passwords']['mysql'].items() %}
  2. {{ user }}:
  3. mysql_user.present:
  4. - host: '%'
  5. - password: {{ passwd }}
  6. - require:
  7. - pkg: mysql_pkgs
  8. {% endfor %}
  9.  
  10. gitlabhq_production:
  11. mysql_database.present:
  12. - host: localhost
  13. - require:
  14. - pkg: mysql_pkgs
  15.  
  16. gitlabhq_dev:
  17. mysql_database.present:
  18. - host: localhost
  19. - require:
  20. - pkg: mysql_pkgs
  21.  
  22. prod_grant:
  23. mysql_grants.present:
  24. - grant: SELECT, LOCK TABLES, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER
  25. - database: gitlabhq_production.*
  26. - user: gitlab
  27. - host: '%'
  28. - require:
  29. - pkg: mysql_pkgs
  30. - mysql_user: gitlab
  31.  
  32. dev_grant:
  33. mysql_grants.present:
  34. - grant: SELECT, LOCK TABLES, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER
  35. - database: gitlabhq_dev.*
  36. - user: gitlab
  37. - host: '%'
  38. - require:
  39. - pkg: mysql_pkgs
  40. - mysql_user: gitlab
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement