remote_directory and hidden files


#1

I’m brand new to Chef so please pardon any foolish questions. I searched the
archive and did not find anything relevant.

I am using the remote_directory resource to copy a directory to a client,
however it does not copy hidden files such as .bash_profile. The goal is to
create a set of standard /home directories, so whenever I include a user I can
also add their .bash_profile and authorized keys and such. I could do
something like include those files as file resources, but the users can modify
the directory and I wont know if they add new hidden files. How can I
accomplish this.

Thanks in advance,
Dan


#2

Hi,

I am using the remote_directory resource to copy a directory to a
client,
however it does not copy hidden files such as .bash_profile. The
goal is to
create a set of standard /home directories, so whenever I include a
user I can
also add their .bash_profile and authorized keys and such. I could do
something like include those files as file resources, but the users
can modify
the directory and I wont know if they add new hidden files. How can I
accomplish this.

This is a bug:

http://tickets.opscode.com/browse/CHEF-301

There is a suggested fix and I’ll try to look at it as it seems simple
enough.

Best Regards

Miguel Cabeça