-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from xaque208/cleanup
Remove dead templates and clean
- Loading branch information
Showing
11 changed files
with
199 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Class: ssh::install | ||
# | ||
# Install the OpenSSH client and server packages. | ||
# | ||
class ssh::install ( | ||
$ensure = 'latest', | ||
$needs_install = $ssh::params::needs_install, | ||
$ssh_packages = $ssh::params::ssh_packages, | ||
) inherits ssh::params { | ||
|
||
if $needs_install == true { | ||
package { $ssh_packages: | ||
ensure => $ensure, | ||
notify => Service['sshd'], | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Class: ssh::server::config | ||
# | ||
# Provide the configuration paramaters necessary to configure the sshd(8) | ||
# server and inject variables into the sshd_config file through the use of the | ||
# concat erb template.. | ||
# | ||
class ssh::server::config ( | ||
$port = '22', | ||
$protocol = '2', | ||
$useprivilegeseparation = 'yes', | ||
$syslogfacility = 'AUTH', | ||
$log_level = 'INFO', # underscore here because puppet | ||
$passwordauthentication = 'no', | ||
$permitemptypasswords = 'no', | ||
$usepam = 'yes', | ||
$permitrootlogin = 'no', | ||
$gssapiauthentication = 'no', | ||
$gssapicleanupcredentials = 'yes', | ||
$subsystem = {}, | ||
$has_pam = false, | ||
$has_gssapi = false, | ||
){ | ||
|
||
include concat::setup | ||
|
||
$sshd_config = $ssh::params::sshd_config | ||
|
||
concat::fragment { 'sshd_config': | ||
order => '10', | ||
target => $sshd_config, | ||
content => template('ssh/sshd_config.erb'), | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,26 @@ | ||
require 'spec_helper' | ||
|
||
describe 'ssh' do | ||
let(:facts) { | ||
{ | ||
:operatingsystem => 'OpenBSD', | ||
:concat_basedir => '/dne' | ||
context "when on openbsd" do | ||
let(:facts) { | ||
{ | ||
:operatingsystem => 'OpenBSD', | ||
:kernel => 'OpenBSD', | ||
:concat_basedir => '/dne' | ||
} | ||
} | ||
} | ||
it { should contain_class('ssh') } | ||
it { should contain_class('ssh') } | ||
end | ||
|
||
context "when on debian" do | ||
let(:facts) { | ||
{ | ||
:operatingsystem => 'Debian', | ||
:kernel => 'Debian', | ||
:concat_basedir => '/dne' | ||
} | ||
} | ||
it { should contain_class('ssh') } | ||
end | ||
end | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# sshd_config: Managed by Puppet | ||
# | ||
|
Oops, something went wrong.