]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/ssh/manifests/init.pp
reshuffle things around
[dsa-puppet.git] / modules / ssh / manifests / init.pp
index c802efe831d8b8351b4c29a8c84bb8e51f685c53..452ce5dfbaaa24e91e047650d03b00e9dc4aceee 100644 (file)
@@ -4,6 +4,13 @@ class ssh {
                 openssh-server: ensure => installed;
         }
 
+        case $hostname {
+                bartok, beethoven: {
+                    $keyinfo = allnodeinfo("sshRSAHostKey", "ipHostNumber")
+                }
+        }
+
+
        file { "/etc/ssh/ssh_config":
                source  => [ "puppet:///ssh/ssh_config" ],
                require => Package["openssh-client"]
@@ -30,4 +37,14 @@ class ssh {
             path        => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin",
             refreshonly => true,
         }
+
+        ferm::rule { "dsa-ssh":
+                description     => "Allow SSH from DSA",
+                rule            => "proto tcp mod state state (NEW) dport (ssh) @subchain 'ssh' { saddr (\$SSH_SOURCES) ACCEPT; }"
+        }
+        ferm::rule { "dsa-ssh-v6":
+                description     => "Allow SSH from DSA",
+                domain          => "ip6",
+                rule            => "proto tcp mod state state (NEW) dport (ssh) @subchain 'ssh' { saddr (\$SSH_V6_SOURCES) ACCEPT; }"
+        }
 }