Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow control over file resource atomic_update property #77

Open
hrak opened this issue May 17, 2016 · 2 comments
Open

Allow control over file resource atomic_update property #77

hrak opened this issue May 17, 2016 · 2 comments

Comments

@hrak
Copy link

hrak commented May 17, 2016

When using this cookbook inside a Docker container, it throws the following error:

file[/etc/hosts] (dynamically defined) had an error: Errno::EBUSY: Device or resource busy @ sys_fail2 - (/etc/.chef-hosts20160517-3251-tp1f8b, /etc/hosts)

This issue is discussed here, where @lamont-granquist suggests setting atomic_update false on the resource.

It would be nice if the LWRP would support a property to allow you to control atomic_update.

@lamont-granquist
Copy link

https://github.com/chef-cookbooks/resolver/pull/22/files

i had to do a similar fix there for /etc/resolv.conf

@hrak
Copy link
Author

hrak commented May 18, 2016

@lamont-granquist thanks, i have filed a PR based on your fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants