On 2 February 2016 at 18:31, Timotheus Titus <[email protected]> wrote:
> As far as I see I have to call bacula::director::client somehow as it > defines the client-config. > > But the question is: How can I do that? > > I'm not familiar with the bacula module, but bacula::director::client seems to be a define rather than a class. ENCs (which is what Foreman is to Puppet) cannot directly declare defines, they can can only declare classes and parameters. The common pattern for this is to use a wrapper class, taking hash of data that you can use with create_resources. We get this question a lot on the Foreman mailing list, so we have a wiki page detailing some examples. See http://projects.theforeman.org/projects/foreman/wiki/Instantiate_Puppet_resources Hope that helps! Greg -- Greg Sutcliffe IRC: gwmngilfen -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAE%3D3ySANqg%3DaOhpZ9CYbQXtcsJL7Vu4SToVtubgbhZ89pKndSQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
