You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a use case to set Repl_slave_priv in init.pp of puppet-percona, which unfortunately does not work.
I have written
percona::rights {'Set rights for replication':
user => 'repl',
password => 'repl',
database => ['%'],
priv => 'Repl_slave_priv',
host => '192.168.50.6',
}
in my site.pp
If I run puppet with --debug --verbose I see
Error: The privilege 'repl_slave_priv' is not valid.
Error: /Stage[main]//Node[default]/Percona::Rights[Set rights for replication]/Mysql_grant[[email protected]/%]/privileges: change from to repl_slave_priv failed: The privilege 'repl_slave_priv' is not valid.
Seems like a validation issue in modules/percona/lib/puppet/provider/mysql_grant/mysql.rb ?!
The text was updated successfully, but these errors were encountered:
mysql> describe user "Repl_slave_priv";
+-----------------+---------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-----------------+---------------+------+-----+---------+-------+
| Repl_slave_priv | enum('N','Y') | NO | | N | |
+-----------------+---------------+------+-----+---------+-------+
1 row in set (0.00 sec)
mysql> describe db "Repl_slave_priv";
Empty set (0.00 sec)
repl_slave_priv is a privilege defined in the 'user' table.
So it can only be granted to a user.
But the example resource defines a database, so mysql_grant tries to grant it as a database-level privilege.
So it's not as obscure as I thought, but it is a good timewaster. :)
I've pullrequested a fix #30.
There is a use case to set Repl_slave_priv in init.pp of puppet-percona, which unfortunately does not work.
I have written
in my site.pp
If I run puppet with --debug --verbose I see
Seems like a validation issue in modules/percona/lib/puppet/provider/mysql_grant/mysql.rb ?!
The text was updated successfully, but these errors were encountered: