projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
systemd: reload journal service upon refresh
[mirror/dsa-puppet.git]
/
modules
/
bacula
/
manifests
/
node.pp
diff --git
a/modules/bacula/manifests/node.pp
b/modules/bacula/manifests/node.pp
index
5552627
..
4ee5b40
100644
(file)
--- a/
modules/bacula/manifests/node.pp
+++ b/
modules/bacula/manifests/node.pp
@@
-1,4
+1,4
@@
-define bacula::node() {
+define bacula::node(
$bacula_client_port = $bacula::bacula_client_port
) {
include bacula
include bacula
@@
-9,7
+9,6
@@
define bacula::node() {
$bacula_storage_port = $bacula::bacula_storage_port
$bacula_storage_secret = $bacula::bacula_storage_secret
$bacula_storage_port = $bacula::bacula_storage_port
$bacula_storage_secret = $bacula::bacula_storage_secret
- $bacula_client_port = $bacula::bacula_client_port
$bacula_ca_path = $bacula::bacula_ca_path
$bacula_ssl_client_cert = $bacula::bacula_ssl_client_cert
$bacula_ssl_client_key = $bacula::bacula_ssl_client_key
$bacula_ca_path = $bacula::bacula_ca_path
$bacula_ssl_client_cert = $bacula::bacula_ssl_client_cert
$bacula_ssl_client_key = $bacula::bacula_ssl_client_key
@@
-24,5
+23,12
@@
define bacula::node() {
group => bacula,
notify => Exec['bacula-director reload']
}
group => bacula,
notify => Exec['bacula-director reload']
}
+
+ file { "/etc/bacula/storages-list.d/${name}.storage":
+ content => "$bacula::bacula_filestor_name-$client\n",
+ mode => '0440',
+ group => bacula,
+ notify => Exec['bacula-director reload']
+ }
}
}