Commit 800aa462 authored by Brian Hatfield's avatar Brian Hatfield

Merge pull request #5 from brianbianco/pam_su_template

Adds the ability to specify a different cookbook for the su.erb template...
parents cbafa53d 1738f990
......@@ -2,6 +2,10 @@
This file is used to list changes made in each version of ulimit.
## 0.1.3:
* Adds node attribute node['ulimit']['pam_su_template_cookbook'] to allow users to provide a su pam.d template from another cookbook
## 0.1.2:
* Add memory limit handling, courtesy of Sean Porter (https://github.com/bmhatfield/chef-ulimit/pull/3)
......
......@@ -13,7 +13,7 @@ Add to your repo, then depend upon this cookbook from wherever you need to overr
Attributes
==========
None.
* `node['ulimit']['pam_su_template_cookbook'] - Defaults to nil (current cookbook). Determines what cookbook the su pam.d template is taken from
Usage
=====
......
default['ulimit']['pam_su_template_cookbook'] = nil
......@@ -32,7 +32,7 @@
]
},
"license": "Apache 2.0",
"version": "0.1.2",
"version": "0.1.3",
"providing": {
},
"recipes": {
......
......@@ -4,4 +4,4 @@ license "Apache 2.0"
description "Installs/Configures ulimit"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
name "ulimit"
version "0.1.2"
version "0.1.3"
......@@ -5,8 +5,11 @@
#
# All rights reserved - Do Not Redistribute
#
ulimit = node['ulimit']
case node[:platform]
when "debian", "ubuntu"
template "/etc/pam.d/su"
template "/etc/pam.d/su" do
cookbook ulimit['pam_su_template_cookbook']
end
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment