]> gitweb.fluxo.info Git - puppet-sshd.git/commitdiff
clarify in the example about how you can set multiple ListenAddresses with the right...
authorMicah Anderson <micah@riseup.net>
Sat, 27 Sep 2008 21:45:57 +0000 (17:45 -0400)
committerMicah Anderson <micah@riseup.net>
Sat, 27 Sep 2008 21:45:57 +0000 (17:45 -0400)
also set the default to be 0.0.0.0 and :: which is the normal default for all IPv4 and all IPv6 addresses

manifests/init.pp

index 519e2421f936adb73c052e78ed7fdada3aeefd47..8e6ff8be5bc9b0d71312d127fee023d179f32747 100644 (file)
@@ -23,7 +23,7 @@
 # Checkout the following:
 #
 # sshd_listen_address:          specify the addresses sshd should listen on
-#                               set this to "10.0.0.1 192.168.0.1" to have it listen on both
+#                               set this to ['10.0.0.1 192.168.0.1'] to have it listen on both
 #                               addresses, or leave it unset to listen on all
 #                               Default: empty -> results in listening on 0.0.0.0
 #
@@ -111,7 +111,7 @@ class sshd {
 class sshd::base {
     # prepare variables to use in templates
     $real_sshd_listen_address = $sshd_listen_address ? {
-      '' => '',
+      '' => [ '0.0.0.0', '::' ],
       default => $sshd_listen_address
     }
     $real_sshd_allowed_users = $sshd_allowed_users ? {