Bacula with Puppet

33 views
Skip to first unread message

Laci D

unread,
Aug 24, 2023, 11:27:35 AM8/24/23
to Puppet Users
Has someone worked before on Puppet manifest file that will install and configure bacula-fd on a client server and also configure Bacula server to backup that client?
Preferably with password authentication.

to...@krasnican.cz

unread,
Aug 25, 2023, 11:21:11 AM8/25/23
to Puppet Users
Hello,

yes, it's pretty simple:

$client_password = extlib::cache_data('foreman_cache_data',"${::fqdn}_bacula_client_password", extlib::random_password(24))

file { '/etc/bacula/bacula-fd.conf':
    mode    => '0600',
    owner   => 'root',
    group   => 'root',
    content => template($template),
    require => Package['bacula-client'],
    notify  => Service['bacula-fd'],
}

@@file { "/etc/bareos/puppet-exported/${::fqdn}.conf":
    mode    => '0640',
    owner   => 'root',
    group   => 'bacula',
    content => template(
            'backup/bareos-dir_client.erb',
            'backup/bareos-dir_job.erb'
    ),
    tag     => "bacula_${bacula_server}",
}

Tomas

Thomas Bendler

unread,
Sep 6, 2023, 6:28:35 AM9/6/23
to puppet...@googlegroups.com
On Thu, Aug 24, 2023 at 5:27 PM Laci D <lac...@gmail.com> wrote:
Has someone worked before on Puppet manifest file that will install and configure bacula-fd on a client server and also configure Bacula server to backup that client?
Preferably with password authentication.


There are plenty of examples ...

Kind regards Thomas
--
Linux ... enjoy the ride!
Reply all
Reply to author
Forward
0 new messages