- From: "Bannon, Steve" <
>
- To: "
" <
>
- Subject: [chef] Re: template not creating file on Ubuntu 14
- Date: Tue, 13 May 2014 19:17:50 +0000
- Accept-language: en-US
- Authentication-results: spf=none (sender IP is )
;
It does work without the force_unlink if the file doesn’t exist, but if it a link it fails. I tried to add the code from the pull request in the bug to see if it would work but I ran into other issues with that. Since I don’t want to mess with the installed
client, I added an execute resource before the template file which seems to solve the problem
execute "touch /etc/motd" do
creates "/etc/motd"
action :run
end
thanks for your help
Steve
On May 13, 2014, at 2:30 PM, Steve Bannon <
">
> wrote:
In ubuntu12 it is a link and the force_unlink works. If I remove it before I bootstrap it fails. I’m trying a test without the force unlink
Steve
On May 12, 2014, at 1:44 PM, Bryan McLellan <
">
> wrote:
On Wed, May 7, 2014 at 11:59 AM, Bannon, Steve <
">
> wrote:
I have a simple motd rule that is failing on bootstrap because it says the file doesn’t exist. The stack trace says “create” is true. The rule works fine on ubuntu 12/13. Do you think this is a bug?
the code in question:
template "/etc/motd" do
source "motd.erb"
owner "root"
group "root"
mode "0644"
force_unlink true
end
Does /etc/motd exist as a link to /var/run/motd before-hand?
Bryan
|
Archive powered by MHonArc 2.6.16.