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 On Thursday, August 24, 2023 at 5:27:35 PM UTC+2 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. > -- 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 puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/1671683d-6db9-411c-b393-0ff7a1c648cfn%40googlegroups.com.