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