X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fssh%2Fmanifests%2Finit.pp;h=9d272a224c80efed8437ac61407979210c86ffac;hb=cab61105c047ee9d4f521b65eaebf1e0f6e9e736;hp=b11a212e90a3261b4f322e915077fdf657ce2b43;hpb=7388c26f3a343a81c8fad540e0355190aa170b86;p=mirror%2Fdsa-puppet.git diff --git a/modules/ssh/manifests/init.pp b/modules/ssh/manifests/init.pp index b11a212e9..9d272a224 100644 --- a/modules/ssh/manifests/init.pp +++ b/modules/ssh/manifests/init.pp @@ -13,8 +13,14 @@ class ssh { require => Package["openssh-server"], notify => Exec["ssh restart"] ; + "/etc/ssh/userkeys": + ensure => directory, + owner => root, + group => root, + mode => 755, + ; "/etc/ssh/userkeys/root": - content => template("ssh/authorized_keys.erb" ], + content => template("ssh/authorized_keys.erb"), mode => 444, require => Package["openssh-server"] ; @@ -24,4 +30,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 => "&SERVICE_RANGE(tcp, ssh, \$SSH_SOURCES)" + } + @ferm::rule { "dsa-ssh-v6": + description => "Allow SSH from DSA", + domain => "ip6", + rule => "&SERVICE_RANGE(tcp, ssh, \$SSH_V6_SOURCES)" + } }