Skip to content

Commit

Permalink
add gentoo support
Browse files Browse the repository at this point in the history
  • Loading branch information
saz committed Jan 24, 2014
1 parent f588b5e commit bb26451
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
6 changes: 4 additions & 2 deletions manifests/client/install.pp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
class ssh::client::install {
package { $ssh::params::client_package_name:
ensure => present,
if !defined(Package[$ssh::params::client_package_name]) {
package { $ssh::params::client_package_name:
ensure => present,
}
}
}
8 changes: 8 additions & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@
}
default: {
case $::operatingsystem {
gentoo: {
$server_package_name = 'openssh'
$client_package_name = 'openssh'
$sshd_config = '/etc/ssh/sshd_config'
$ssh_config = '/etc/ssh/ssh_config'
$ssh_known_hosts = '/etc/ssh/ssh_known_hosts'
$service_name = 'sshd'
}
default: {
fail("Unsupported platform: ${::osfamily}/${::operatingsystem}")
}
Expand Down
6 changes: 4 additions & 2 deletions manifests/server/install.pp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
class ssh::server::install {
include ssh::params
package { $ssh::params::server_package_name:
ensure => present,
if !defined(Package[$ssh::params::server_package_name]) {
package { $ssh::params::server_package_name:
ensure => present,
}
}
}

0 comments on commit bb26451

Please sign in to comment.