Skip to content

Commit 4feb1fa

Browse files
committed
at least mention EPEL until i get the dependency handled
1 parent c1ce7f8 commit 4feb1fa

File tree

1 file changed

+12
-34
lines changed

1 file changed

+12
-34
lines changed

manifests/init.pp

Lines changed: 12 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,24 @@
11
# == Class: tobyw4n/pam_ssh_agent_auth_sudo
22
#
3-
# Configures PAM to authenticate against ssh-agent for sudo access
4-
#
5-
# === Parameters
6-
#
7-
# Document parameters here.
8-
#
9-
# [*sample_parameter*]
10-
# Explanation of what this parameter affects and what it defaults to.
11-
# e.g. "Specify one or more upstream ntp servers as an array."
12-
#
13-
# === Variables
14-
#
15-
# Here you should define a list of variables that this module would require.
16-
#
17-
# [*sample_variable*]
18-
# Explanation of how this variable affects the funtion of this class and if it
19-
# has a default. e.g. "The parameter enc_ntp_servers must be set by the
20-
# External Node Classifier as a comma separated list of hostnames." (Note,
21-
# global variables should not be used in preference to class parameters as of
22-
# Puppet 2.6.)
3+
# Configures sudo to use ssh-agent for authentication instead of password.
4+
# Installs pam_ssh_agent_auth PAM module and overwrites /etc/pam.d/sudo
235
#
6+
# Amazon Linux works out of the box. RHEL and CentOS require EPEL.
247
# === Examples
258
#
26-
# class { pam_ssh_agent_auth:
27-
# servers => [ 'pool.ntp.org', 'ntp.local.company.com' ]
28-
# }
29-
#
30-
# === Authors
31-
#
32-
# Toby Collier <toby collier at gmail dot com>
33-
#
34-
# === Copyright
35-
#
36-
# Copyright 2013 Toby Collier, unless otherwise noted.
37-
#
9+
# include pam_ssh_agent_auth_sudo
10+
3811
class pam_ssh_agent_auth_sudo {
3912

13+
$package = 'pam_ssh_agent_auth'
14+
4015
case $operatingsystem {
41-
centos, redhat, amazon: {
16+
amazon: {
17+
$supported = true
18+
}
19+
redhat, centos: {
4220
$supported = true
43-
$package = 'pam_ssh_agent_auth'
21+
notify { 'EPEL is required for pam_ssh_agent_auth module': }
4422
}
4523
default: {
4624
$supported = false

0 commit comments

Comments
 (0)