Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ For debian users, the config_include_dir has been defaulted to /etc/mysql/conf.d
percona::rights {'userbar on dbfoo':
priv => 'select_priv',
host => 'localhost',
database => '*'
database => '*',
password => 'default',
}

Expand Down
2 changes: 1 addition & 1 deletion manifests/adminpass.pp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
exec {"percona-adminpass-${name}":
onlyif => [
'test -f /usr/bin/mysqladmin',
"mysqladmin -u${user} -h${host} --no-defaults status",
"mysqladmin --no-defaults -u${user} -h${host} status",
],
path => ['/usr/bin','/bin',],
command => "mysqladmin -h ${host} -u${user} password ${password}",
Expand Down
1 change: 0 additions & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
# percona::rights {'Set rights for replication':
# user => 'repl',
# password => 'repl',
# database => ['%'],
# priv => ['Repl_slave_priv'],
# host => '$hostname',
# }
Expand Down
4 changes: 2 additions & 2 deletions manifests/rights.pp
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@

## Host param
$_host = $host ? {
undef => $default_host,
default => $host,
'localhost' => $default_host,
default => $host,
}

## Database param
Expand Down
4 changes: 4 additions & 0 deletions templates/mgmt_cnf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
## Served by: '<%= scope.lookupvar('::servername') %>'
## Module: '<%= scope.to_hash['module_name'] %>'
## Template source: 'MODULES<%= template_source.gsub(Regexp.new("^#{Puppet::Node::Environment.current[:modulepath].gsub(':','|')}"),"") %>'
[client]
user = <%= user %>
password = <%= password %>

[mysql]
user = <%= user %>
password = <%= password %>
Expand Down