Closed poliva83 closed 8 years ago
@poliva83 are you setting it to something other than default?
@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.
+1 for this
+1
@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.
Thanks @iennae for fixing this.
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.