Sha256: 532ec88dee2d0e8a0bafdd1dd95b24a1c24ff11260d18c849e52fb74ee4ab894

Contents?: true

Size: 998 Bytes

Versions: 7

Compression:

Stored size: 998 Bytes

Contents

# Generated by Chef for <%= node['hostname'] %>.
# Local modifications will be overwritten.

<% case node['platform'] -%>
<% when "debian","ubuntu" -%>
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, RELOAD, SHUTDOWN, PROCESS, FILE, REFERENCES, INDEX, ALTER, SHOW DATABASES, SUPER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'debian-sys-maint'@'localhost' IDENTIFIED BY '<%= node[:mysql][:server_debian_password] %>' WITH GRANT OPTION;
<% end -%>
# Grant replication for a slave user.
GRANT REPLICATION SLAVE ON *.* TO 'repl'@'%' identified by '<%= node['mysql']['server_repl_password'] %>';

# Set the server root password. This should be preseeded by the package installation.
<% if node['mysql']['allow_remote_root'] -%>
GRANT ALL ON *.* TO 'root'@'%' IDENTIFIED BY '<%= node['mysql']['server_root_password'] %>' WITH GRANT OPTION;
<% end -%>
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('<%= node['mysql']['server_root_password'] %>');

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
server_maint-0.0.4 lib/cookbooks/mysql/templates/default/grants.sql.erb
elzar-0.2.0 chef/cookbooks/mysql/templates/default/grants.sql.erb
elzar-0.1.2 chef/cookbooks/mysql/templates/default/grants.sql.erb
elzar-0.1.1 chef/cookbooks/mysql/templates/default/grants.sql.erb
elzar-0.1.0 chef/cookbooks/mysql/templates/default/grants.sql.erb
elzar-0.0.2 chef/cookbooks/mysql/templates/default/grants.sql.erb
elzar-0.0.1 cookbooks/mysql/templates/default/grants.sql.erb