Puppet Class: bareos::profile::director
- Defined in:
- manifests/profile/director.pp
Overview
Class: bareos::profile::director
Ready to use director with default configs
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'manifests/profile/director.pp', line 3
class bareos::profile::director(
$password = 'MyDirectorPasswordPleaseChange',
$name_dir = 'bareos-dir',
$catalog_conf = {
'db_driver' => 'sqlite3',
'db_name' => 'bareos_mycatalog',
},
$storage_address = 'localhost',
$storage_password = 'BareosStoragePleaseChangeMe',
){
# ensure bconsole is installed and can connect to director
::bareos::console::director { $name_dir:
description => 'Bareos console credentials for local director',
address => 'localhost',
password => $password,
}
# configure director itself and set password
class { '::bareos::director::director':
messages => 'Daemon', # set in profile
password => $password,
auditing => true,
}
# create catalog resource
create_resources('bareos::director::catalog', {
'MyCatalog' => $catalog_conf,
}
)
class { '::bareos::profile::director::storage':
address => $storage_address,
password => $storage_password,
}
# Add all default configs
include ::bareos::profile::director::client
include ::bareos::profile::director::fileset
include ::bareos::profile::director::jobdefs
include ::bareos::profile::director::messages
include ::bareos::profile::director::pool
include ::bareos::profile::director::profile
include ::bareos::profile::director::schedule
}
|