Showing with 100 additions and 98 deletions.
  1. +1 −1 Modulefile
  2. +2 −0 README.md
  3. +2 −2 manifests/init.pp
  4. +1 −1 metadata.json
  5. +14 −14 spec/classes/accesslogin_spec.rb
  6. +50 −50 spec/classes/init_spec.rb
  7. +22 −22 spec/classes/limits_spec.rb
  8. +8 −8 spec/defines/limits/fragment_spec.rb
2 changes: 1 addition & 1 deletion Modulefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name 'ghoneycutt-pam'
version '2.11.0'
version '2.12.0'
source 'git://github.com/ghoneycutt/puppet-module-pam.git'
author 'ghoneycutt'
license 'Apache-2.0'
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ This module has been tested to work on the following systems using Puppet v3 wit
* Suse 12
* Ubuntu 12.04 LTS

EL no longer requires the `redhat-lsb` package.

===

# Parameters
Expand Down
4 changes: 2 additions & 2 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

case $::osfamily {
'RedHat': {
case $::lsbmajdistrelease {
case $::operatingsystemmajrelease {
'5': {
$default_pam_d_login_template = 'pam/login.el5.erb'
$default_pam_d_sshd_template = 'pam/sshd.el5.erb'
Expand Down Expand Up @@ -300,7 +300,7 @@
}
}
default: {
fail("Pam is only supported on EL 5, 6 and 7. Your lsbmajdistrelease is identified as <${::lsbmajdistrelease}>.")
fail("Pam is only supported on EL 5, 6 and 7. Your operatingsystemmajrelease is identified as <${::operatingsystemmajrelease}>.")
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ghoneycutt-pam",
"version": "2.11.0",
"version": "2.12.0",
"author": "ghoneycutt",
"summary": "Manage PAM",
"license": "Apache-2.0",
Expand Down
28 changes: 14 additions & 14 deletions spec/classes/accesslogin_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
context 'with default values on supported platform' do
let(:facts) do
{
:osfamily => 'RedHat',
:lsbmajdistrelease => '5',
:osfamily => 'RedHat',
:operatingsystemmajrelease => '5',
}
end

Expand Down Expand Up @@ -40,8 +40,8 @@
context 'with multiple users on supported platform expressed as an array' do
let(:facts) do
{
:osfamily => 'RedHat',
:lsbmajdistrelease => '5',
:osfamily => 'RedHat',
:operatingsystemmajrelease => '5',
}
end
let(:pre_condition) do
Expand Down Expand Up @@ -80,8 +80,8 @@
context 'with hash entry containing string values' do
let(:facts) do
{
:osfamily => 'RedHat',
:lsbmajdistrelease => '5',
:osfamily => 'RedHat',
:operatingsystemmajrelease => '5',
}
end
let(:pre_condition) do
Expand All @@ -94,8 +94,8 @@
context 'with hash entry containing array of values' do
let(:facts) do
{
:osfamily => 'RedHat',
:lsbmajdistrelease => '5',
:osfamily => 'RedHat',
:operatingsystemmajrelease => '5',
}
end
let(:pre_condition) do
Expand All @@ -107,8 +107,8 @@
context 'with hash entry containing no value should default to "ALL"' do
let(:facts) do
{
:osfamily => 'RedHat',
:lsbmajdistrelease => '5',
:osfamily => 'RedHat',
:operatingsystemmajrelease => '5',
}
end
let(:pre_condition) do
Expand All @@ -120,8 +120,8 @@
context 'with hash entries containing string, array and empty hash' do
let(:facts) do
{
:osfamily => 'RedHat',
:lsbmajdistrelease => '5',
:osfamily => 'RedHat',
:operatingsystemmajrelease => '5',
}
end
let(:pre_condition) do
Expand All @@ -137,8 +137,8 @@
context 'with custom values on supported platform' do
let(:facts) do
{
:osfamily => 'RedHat',
:lsbmajdistrelease => '5',
:osfamily => 'RedHat',
:operatingsystemmajrelease => '5',
}
end

Expand Down
Loading