Use proper bacula port in bacula-idle-restart
authorPeter Palfrader <peter@palfrader.org>
Thu, 1 Dec 2016 10:18:48 +0000 (10:18 +0000)
committerPeter Palfrader <peter@palfrader.org>
Thu, 1 Dec 2016 10:19:25 +0000 (10:19 +0000)
modules/bacula/manifests/init.pp
modules/bacula/templates/bacula-idle-restart.erb

index ffeb423..c536a94 100644 (file)
@@ -36,7 +36,7 @@ class bacula {
 
        file { '/usr/local/sbin/bacula-idle-restart':
                mode    => '0555',
-               source  => 'puppet:///modules/bacula/bacula-idle-restart',
+               content  => template('bacula/bacula-idle-restart.erb'),
        }
 
 }
index 2f331aa..a19101d 100644 (file)
 set -e
 
 if [ "$1" = "fd" ];then
-    PORT=9102
+    PORT=<%= bacula_client_port %>
     DIR="bacula-fd"
 elif [ "$1" = "sd" ]; then
-    PORT=9103
+    PORT=<%= bacula_storage_port %>
     DIR="bacula-sd"
 else
     # Usage