[chef] chef + managed-directory pain


Chronological Thread 
  • From: " " < >
  • To:
  • Subject: [chef] chef + managed-directory pain
  • Date: Wed, 22 Aug 2012 17:06:24 +0200

Hi,

has anybody a solution how to realize managed directories with chef ?


remote_directory with "purge true" isn't a solution in the following cases:


Ubuntu:


Case 1:

1.  clean out /etc/apt/sources.list.d/

2.  create apt-repo-files with "apt_repository" in /etc/apt/sources.list.d/

3.  remote_directory-resource deletes the files from 2.



Case 2:

1. clean out /etc/apache2/conf.d/

2. generate apache config-files (with template resource) in /etc/apache2/conf.d/

3. remote_directory-resource deletes the files from 2.



I've looked at  https://github.com/zts/chef-cookbook-managed_directory ,but ths solution has the same problems.


Thats the last big hurdle on our migration to chef,  I hope somebody have an idea.





Archive powered by MHonArc 2.6.16.

§