Showing with 9 additions and 6 deletions.
  1. +1 −1 Modulefile
  2. +1 −1 manifests/limits/fragment.pp
  3. +7 −4 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.4.2'
version '2.4.3'
source 'git://github.com/ghoneycutt/puppet-module-pam.git'
author 'ghoneycutt'
license 'Apache License, Version 2.0'
Expand Down
2 changes: 1 addition & 1 deletion manifests/limits/fragment.pp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@
owner => 'root',
group => 'root',
mode => '0644',
require => Package['pam_package'],
require => Package[$pam::my_package_name],
}
}
11 changes: 7 additions & 4 deletions spec/defines/limits/fragment_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@

it {
should contain_file('/etc/security/limits.d/80-nproc.conf').with({
'source' => 'puppet:///modules/pam/example.conf',
'owner' => 'root',
'group' => 'root',
'mode' => '0644',
'source' => 'puppet:///modules/pam/example.conf',
'owner' => 'root',
'group' => 'root',
'mode' => '0644',
'require' => [ 'Package[pam]', 'Package[util-linux]' ],
})
}
end
Expand All @@ -48,6 +49,7 @@
'owner' => 'root',
'group' => 'root',
'mode' => '0644',
'require' => [ 'Package[pam]', 'Package[util-linux]' ],
})
}
it { should contain_file('/etc/security/limits.d/80-nproc.conf').with_content(
Expand Down Expand Up @@ -84,6 +86,7 @@
'owner' => 'root',
'group' => 'root',
'mode' => '0644',
'require' => [ 'Package[pam]', 'Package[util-linux]' ],
})
}
it { should contain_file('/etc/security/limits.d/80-nproc.conf').with_content(
Expand Down