Browse files

Merge pull request #366 from reset/COOK-1076

fix template not found issue when calling users_manage LWRP
  • Loading branch information...
2 parents 5facf31 + 49025f1 commit ec9b41a3b1f0d792199bdfe16af8a7f82c51452f @jtimberman jtimberman committed Mar 6, 2012
Showing with 3 additions and 0 deletions.
  1. +1 −0 users/providers/manage.rb
  2. +2 −0 users/resources/manage.rb
View
1 users/providers/manage.rb
@@ -87,6 +87,7 @@ def initialize(*args)
if u['ssh_keys']
template "#{home_dir}/.ssh/authorized_keys" do
source "authorized_keys.erb"
+ cookbook new_resource.cookbook
owner u['id']
group u['gid'] || u['id']
mode "0600"
View
2 users/resources/manage.rb
@@ -24,7 +24,9 @@
# :search_group is the groups name to search for, defaults to resource name
# :group_name is the string name of the group to create, defaults to resource name
# :group_id is the numeric id of the group to create
+# :cookbook is the name of the cookbook that the authorized_keys template should be found in
attribute :data_bag, :kind_of => String, :default => "users"
attribute :search_group, :kind_of => String, :name_attribute => true
attribute :group_name, :kind_of => String, :name_attribute => true
attribute :group_id, :kind_of => Integer, :required => true
+attribute :cookbook, :kind_of => String, :default => "users"

0 comments on commit ec9b41a

Please sign in to comment.