Sha256: cd2cfbfcd3103cbb61f505a19697b1770b55ec5f8e1837a0135168eafd43c60a

Contents?: true

Size: 881 Bytes

Versions: 5

Compression:

Stored size: 881 Bytes

Contents

include:
  - databases.mysql.server

{%- if ('development' in pillar['databases']) %}

database:
  mysql_database.present:
    - names:
      - {{ pillar['databases']['development']['database'] }}
{%- if ('test' in pillar['databases']) %}
      - {{ pillar['databases']['test']['database'] }}
{%- endif %}
    - require:
      - service.running: mysql-server
      - pkg: mysql-server
  mysql_user:
    - present
    - name: {{ pillar['databases']['development']['username'] }}
    - password: {{ pillar['databases']['development']['password'] }}
    - require:
      - mysql_database.present: database
  mysql_grants.present:
    - database: {{ pillar['databases']['development']['username'] }}_%.*
    - grant: ALL PRIVILEGES
    - user: {{ pillar['databases']['development']['username'] }}
    - host: localhost
    - require:
      - mysql_user.present: database

{%- endif %}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
salted-rails-0.0.9 salt/railsapp/mysql_database.sls
salted-rails-0.0.8 salt/railsapp/mysql_database.sls
salted-rails-0.0.7 salt/railsapp/mysql_database.sls
salted-rails-0.0.6 salt/railsapp/mysql_database.sls
salted-rails-0.0.5 salt/railsapp/mysql_database.sls