|
1 | 1 | # == Class: tobyw4n/pam_ssh_agent_auth_sudo
|
2 | 2 | #
|
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 |
23 | 5 | #
|
| 6 | +# Amazon Linux works out of the box. RHEL and CentOS require EPEL. |
24 | 7 | # === Examples
|
25 | 8 | #
|
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 | + |
38 | 11 | class pam_ssh_agent_auth_sudo {
|
39 | 12 |
|
| 13 | + $package = 'pam_ssh_agent_auth' |
| 14 | + |
40 | 15 | case $operatingsystem {
|
41 |
| - centos, redhat, amazon: { |
| 16 | + amazon: { |
| 17 | + $supported = true |
| 18 | + } |
| 19 | + redhat, centos: { |
42 | 20 | $supported = true
|
43 |
| - $package = 'pam_ssh_agent_auth' |
| 21 | + notify { 'EPEL is required for pam_ssh_agent_auth module': } |
44 | 22 | }
|
45 | 23 | default: {
|
46 | 24 | $supported = false
|
|
0 commit comments