[chef] Resource for copy local file?


Chronological Thread 
  • From: < >
  • To:
  • Subject: [chef] Resource for copy local file?
  • Date: Sun, 28 Aug 2011 18:47:14 -0700 (PDT)

Which chef resource type can I use to copy a local file, for example, copy
local file from /tmp/1.txt to /root/1.txt?

I know in puppet I can do like this: 
file{ “/root/1.txt”, ensure => present, source => “/tmp/1.txt”, }

But how can I do this by chef? I looked into file, template, cookbook_file,
remotefile, it looks no resource type can handle it. Could anyone give me some
advice on this?



Archive powered by MHonArc 2.6.16.

§