This message was deleted.
# puppet
s
This message was deleted.
y
as far as I see from the module docs the right call is
Copy code
class { 'mysql::server::backup':
  backupuser        => 'myuser',
  backuppassword    => 'mypassword',
  backupdir         => '/tmp/backups',
  provider          => 'xtrabackup',
  backuprotate      => 15,
  execpath          => '/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin',
  time              => ['23', '15'],
}
so you may have only one backup config in hiera with this class w/o any wrappers
u
I am planning on having only one
b
Is the variable "$backups" defined in your create_resources line?
u
I changed it to
Copy code
create_resources('class', {"mysql::backup::${backup_provider}" => $backup_config }, {})
And it works. Thanks!
y
I guess
class { "mysql::backup::${backup_provider}": * => $backup_config }
should do the same w/o
create_resources()
.. though I’d go with
include mysql::server::backup
which will use Hiera auto-parameter-lookup to fill the class parameters..
u
Will check that, thanks