Forge Home

bacula

Setup Bacula Directors, StorageDaemons and FileDaemons with firewall and monit support

6,848 downloads

5,421 latest version

5.0 quality score

Version information

  • 4.1.0 (latest)
  • 4.0.4
  • 4.0.3
  • 4.0.2
  • 4.0.1
released May 24th 2018
This version is compatible with:
  • Puppet Enterprise 2018.1.x, 2017.3.x, 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
  • Puppet >= 4.7.0 < 6.0.0
  • , , FreeBSD, , , windows

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'puppetfinland-bacula', '4.1.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add puppetfinland-bacula
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install puppetfinland-bacula --version 4.1.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

puppetfinland/bacula — version 4.1.0 May 24th 2018

Bacula

A puppet module to manage Bacula Directors, Storagedaemons and Filedaemons. Puppet certificates are used for TLS. Optional firewall and monit support is included.

Module usage

The Puppet manifests written for Vagrant show how to use the module:

For those viewing this README through Puppet Forge here is the first one in full:

$email = 'root@localhost'

class { '::monit':
    email => $email,
}

class { '::bacula::director':
    manage_db            => true,
    manage_packetfilter  => true,
    manage_monit         => true,
    tls_enable           => false,
    use_puppet_certs     => false,
    console_host         => 'localhost',
    pwd_for_console      => 'console',
    pwd_for_monitor      => 'monitor',
    sd_host              => '127.0.0.1',
    sd_password          => 'director',
    postgresql_auth_line => 'local bacula baculauser  password',
    bacula_db_password   => 'db',
    bind_address         => '0.0.0.0',
    file_retention       => '30 days',
    job_retention        => '90 days',
    volume_retention     => '180 days',
    max_volume_bytes     => '100M',
    max_volumes          => '5',
    email                => $email,
    monitor_email        => $email,
}

class { '::bacula::storagedaemon':
    manage_packetfilter       => true,
    manage_monit              => true,
    director_address_ipv4     => '127.0.0.1',
    pwd_for_director          => 'director',
    pwd_for_monitor           => 'monitor',
    backup_directory          => '/var/backups/bacula',
    monitor_email             => $email,
    filedaemon_addresses_ipv4 => ['192.168.138.0/24'],
}

class { '::bacula::filedaemon':
    is_director           => true,
    status                => 'present',
    manage_packetfilter   => true,
    manage_monit          => true,
    use_puppet_certs      => false,
    tls_enable            => false,
    director_address_ipv4 => '192.168.138.200',
    pwd_for_director      => 'director',
    pwd_for_monitor       => 'monitor',
    backup_files          => [ '/tmp/modules' ],
    messages              => 'AllButInformational',
    monitor_email         => $email,
}

class { '::bacula::console':
    tls_enable            => false,
    use_puppet_certs      => false,
    director_hostname     => 'bacula.example.org',
    director_password     => 'console',
}

For further details refer to module entrypoints:

Windows notes

The ::bacula::filedaemon class supports configuring Bacula Filedaemon on Windows, including poking holes for the Bacula Director into Windows firewall and reusing Puppet's TLS certificates. Monit support is missing.

Use forward slashes in paths you want to backup:

'C:/Program Files/Bacula'

Even though double backslashes seemed to work as well, they made browsing (and hence restoring) the backups using bconsole impossible.