0

When I include the following in my nodes.pp:

 class {'bareos':
      ...
       manage_database => true,
      ...

I get the following error:

==> bareOSdirector: Error: Could not find class mysql::client for bareosdirector on node bareosdirector
==> bareOSdirector: Error: Could not find class mysql::client for bareosdirector on node bareosdirector

There seem to be quite a few mysql modules out there, does anyone have an idea of which one was intended to be a dependency of this library?

I'm aware that netmanagers bareos is unmaintained.

leeand00
  • 4,869
  • 15
  • 69
  • 110

2 Answers2

1

Have you fulfilled all dependencies (puppetlabs/stdlib, example42/puppi, example42/firewall and example42/monitor)?

AFAIK netmanagers/bareos is based on a netmanagers/puppet-bacula module which requires "Puppetlabs/mysql" (see https://forge.puppet.com/puppetlabs/mysql)

deagh
  • 2,019
  • 5
  • 19
  • 19
1

Personally I would start using a dependency manager such as R10K or Librarian-Puppet to keep track of your modules and install whatever dependencies necessary for your modules to run.

To use your module in librarian-puppet, all you would need to do is add the following line to your Puppetfile:

mod 'netmanagers/bareos'

and let librarian-puppet handle resolving and installing dependencies for both that specific module and all of the others throughout the chain (e.g. the dependencies of example42/monitor).

Craig Watson
  • 9,575
  • 3
  • 32
  • 47