Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 2f350feb13
Fetching contributors…

Cannot retrieve contributors at this time

11 lines (9 sloc) 0.411 kb
include_recipe "percona::slave"
execute "create replication database user" do
command %Q( mysql --execute="create user 'repl'@'127.0.0.1';
grant replication slave, replication client on *.* to 'repl'@'127.0.0.1';
flush privileges" )
not_if "mysql --silent --skip-column-names --database=mysql \
--execute=\"select User from user where \
User = 'repl'\" | grep repl"
end
Jump to Line
Something went wrong with that request. Please try again.