aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-01-30ssh_authorized_key: use $name for user by defaultGabriel Filion
Currently ssh_authorized_key has some logic about $user being false or '', but it sets its value to default to 'root'. So, in order to use the name as the user's name, one has to clear the user parameter, which is totally redundant. Since it is sometimes useful to publish multiple keys for a user, the $user parameter is useful. To make using ssh_authorized_key for one-key normal users simpler, make $user default to being empty (which will use $name as the user name). 'root' can always be specified either via the name or by the $user paramter. Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2011-01-30Fix ssh_authorized_keyGabriel Filion
When one uses the $name to define the user that should receive an SSH key, setting $user to a negative value, ssh_authorized_key currently creates the authorized_keys file under /home/.ssh/authorized_keys Fix this by changing ${user} to ${real_user} in the key's path. Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2011-01-30Add an sshd_config template for FreeBSDGabriel Filion
Since there is no "catch-all" default configuration file for sshd, we need to add for each OS. Add a template for FreeBSD so that sshd can be configured on this OS. Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2011-01-30Fix inclusion for default osGabriel Filion
When the os of a client is not one of those that use a specialized class, (e.g. FreeBSD) the inclusion is currently broken: it tries to include sshd::default which does not exist. Change this to include sshd::base instead. Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2010-12-20fix debian squeeze sshd_config template to add a missing newlineMicah Anderson
2010-12-15remote KerberosGetAFSToken, its actually not a functional configuration ↵Micah Anderson
option, even though it is listed in the man page, and commented out in the default config file. I filed a bug with debian (#607238)
2010-12-14"ChallengeResponseAuthentication no" was being hardcoded later in the Debian ↵Micah Anderson
Lenny sshd_config template, even though we offer it as a variable. With this commit, the variable will actually work, rather than be overriden
2010-12-14add Debian Squeeze sshd template. Enabled kerberos and gssapi options, using ↵Micah Anderson
the defaults when not specified
2010-02-21update nagios check_command to check ssh port. it was using ssh_port, it ↵Micah Anderson
should be 'check_ssh_port'
2009-12-27Merge remote branch 'lavamind/master'Micah Anderson
2009-12-21update comments to include information about how to use the nagiosMicah Anderson
checks and the pre-requirements
2009-12-19fix the comments section so that the include isn't misleading. if youMicah Anderson
use 'include sshd::debian', then none of the variables are set, and you will fail to parse the templates
2009-12-18remove fqdn from nagios service description (hostname is used in the ↵Jerome Charaoui
internal nagios_service name)
2009-12-18make key removal a bit easiermh
2009-12-18enable that ssh auth-keys can be removedmh
2009-12-11false != 'false'mh
2009-12-11set protocol 2 for centos, required.mh
2009-12-10require class instead of requiring packagesmh
2009-12-10re-add shorewall in rule :/mh
2009-12-10undef or '' as defaultmh
2009-12-10merged with riseup module, various cleaning upmh
2009-12-07move plugin directory to fit new 0.25 stylemh
2009-12-07switch to new lsb waymh
2009-12-07better set the variables in the initmh
2009-12-07upstream capability, fix new linesmh
- added new upstream options - don't put new lines for control statements
2009-12-07factor everything into its own filemh
2009-12-07disable gssapimh
2009-12-07do not quote default!mh
2009-12-07try if setting a target fixes the problemmh
2009-12-07changed target behaviourmh
2009-12-07adjusted to new usage of booleansmh
2009-12-07adjusted to new usage of booleansmh
2009-10-01Revert "fix missing curly brace" -- this was actually correctMicah Anderson
This reverts commit d4fba70a51eeb253b0155f378ce7735df9479cd4.
2009-09-29fix missing curly braceMicah Anderson
2009-07-09fix previous change which took the client/server packages out of the linux classMicah Anderson
and instead allow for a version change through an if variable. thanks ng!
2009-07-07same problem with the openssh-clients in the sshd::client::linux classMicah Anderson
2009-07-07the sshd::linux class cannot also define the openssh packageMicah Anderson
if we are to have the possibility of potentially overriding the version number it must be done in the base class
2009-07-07Template out the possibility of specifying the key word 'off' to theMicah Anderson
$sshd_port parameter, which simply puts a comment in front of that option, rather than specifying it.
2009-07-07make it possible to override what version of openssh-server and client are ↵Micah Anderson
installed by providing the variable $sshd_ensure_version, which defaults to the previous value of present when not specified
2009-07-07replace the sshd_additional_options variable with two, one calledMicah Anderson
sshd_head_additional_options and one called sshd_tail_additional_options. the first puts the value at the beginning of the file, and the second at the end. This is necessary due to some option ordering requiring things to be before others
2009-07-02removed the facter/sshkeys.rb, this is handled by facter now days, so it is ↵Micah Anderson
no longer necessary to provide it
2008-12-07Merge commit 'anarcat/master'Micah Anderson
2008-12-07Fix location of default sftp-server on Debian, and uncomment the sftpMicah Anderson
configuration line to get the sshd_config file defaults to be more like the standard shipped defaults from Debian
2008-12-07Merge commit 'ng/master'Micah Anderson
Conflicts: manifests/init.pp Conflict due to indentation formatting differences
2008-12-06emit a warning instead of info when the ssh server doesn't have an sshrsa keyAntoine Beaupre
also export the key based on ip address, removing all warnings
2008-12-06use the proper fact to export ssh keys. See ↵Antoine Beaupre
http://projects.reductivelabs.com/issues/show/1799#note-1
2008-12-02make saner defaults for authorized_keysAntoine Beaupre
note that this removes the user => root default
2008-11-07unified namingmh
git-svn-id: https://svn/ipuppet/trunk/modules/sshd@2674 d66ca3ae-40d7-4aa7-90d4-87d79ca94279
2008-11-07check ssh with nagiosmh
git-svn-id: https://svn/ipuppet/trunk/modules/sshd@2672 d66ca3ae-40d7-4aa7-90d4-87d79ca94279
2008-10-27In debian, the daemon is run as 'sshd', but the initscript isMicah Anderson
/etc/init.d/ssh, which means that name needs to be set to 'ssh', and pattern needs to be set to 'sshd', and then we set the hassstatus and hasrestart depending on the lsbdistcodename