diff options
Diffstat (limited to 'modules/openssh/manifests')
-rw-r--r-- | modules/openssh/manifests/init.pp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/modules/openssh/manifests/init.pp b/modules/openssh/manifests/init.pp new file mode 100644 index 00000000..6c818aea --- /dev/null +++ b/modules/openssh/manifests/init.pp @@ -0,0 +1,30 @@ +class openssh { + + # some trick to manage sftp server, who is arch dependent on mdv + $usr_lib = $architecture ? { + x86_64 => "lib64", + default => "lib" + } + + $path_to_sftp = "/usr/$usr_lib/ssh/" + + package { "openssh-server": + ensure => installed + } + + service { sshd: + ensure => running, + path => "/etc/init.d/sshd", + subscribe => [ Package["openssh-server"], File["sshd_config"] ] + } + + file { "sshd_config": + path => "/etc/ssh/sshd_config", + ensure => present, + owner => root, + group => root, + mode => 644, + require => Package["openssh-server"], + content => template("openssh/sshd_config") + } +} |