chef-cookbooks / ssh_known_hosts

Development repository for Chef Cookbook ssh_known_hosts
https://supermarket.chef.io/cookbooks/ssh_known_hosts
Apache License 2.0
72 stars 77 forks source link

entry LWRP should allow ability to set mode, owner, and group on known_hosts file #26

Closed poliva83 closed 8 years ago

poliva83 commented 10 years ago

A file resource is being used inside this provider however there is no attributes in LWRP for mode, owner, and group to pass on to this file resource. I always end up having to call file resource again after entry LWRP block with :touch action just for purpose of setting mode, owner, and group.

cwebberOps commented 9 years ago

@poliva83 are you setting it to something other than default?

poliva83 commented 9 years ago

@cwebberOps Been awhile since I logged this issue. If I remember correctly I wanted to ensure permissions were 644 and not always have it be owned by root/root (since root user triggered the chef-client run). Just thought the entry provider should allow for mode,owner,group options since it used a file resource under covers to create /home/non_root_user/.ssh/known_hosts if it didn't already exist.

xbeta commented 9 years ago

+1 for this

andre1810 commented 9 years ago

+1

iennae commented 8 years ago

@poliva83 Thanks so much for your request for this feature. We apologize for the delay in getting this created. It's now available with version 3.1.0 of this cookbook.

poliva83 commented 8 years ago

Thanks @iennae for fixing this.