aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/subsystem/scanner.pp4
-rw-r--r--templates/sane.d/saned.conf.erb (renamed from files/etc/sane.d/saned.conf)2
2 files changed, 3 insertions, 3 deletions
diff --git a/manifests/subsystem/scanner.pp b/manifests/subsystem/scanner.pp
index 021b70c..8b916b0 100644
--- a/manifests/subsystem/scanner.pp
+++ b/manifests/subsystem/scanner.pp
@@ -1,4 +1,4 @@
-class nodo::subsystem::scanner {
+class nodo::subsystem::scanner($access_list = hiera('nodo::subsystem::scanner::access_list', '')) {
package { 'sane':
ensure => present,
}
@@ -39,7 +39,7 @@ class nodo::subsystem::scanner {
owner => 'root',
group => 'root',
mode => '0644',
- source => 'puppet:///modules/nodo/etc/sane.d/saned.conf',
+ content => template('nodo/sane.d/saned.conf.erb'),
require => Package['sane'],
}
diff --git a/files/etc/sane.d/saned.conf b/templates/sane.d/saned.conf.erb
index f61de7a..38ca9ed 100644
--- a/files/etc/sane.d/saned.conf
+++ b/templates/sane.d/saned.conf.erb
@@ -25,7 +25,7 @@ data_portrange = 10000 - 10100
#192.168.0.1/29
#[2001:7a8:185e::42:12]
#[2001:7a8:185e::42:12]/64
-192.168.1.0/24
+<%= access_list %>
# NOTE: /etc/inetd.conf (or /etc/xinetd.conf) and
# /etc/services must also be properly configured to start