On Thursday, September 5, 2013 at 8:43 AM, Russell Bateman wrote:
While I'm not convinced that this is impossible in "normal" Chef recipe code, I stumbled upon the idea of just using a script to do it. (I am, after all, new to and still very perplexed by Chef.) Here's what I did to get around my inability to make the "remote file to remote file" copy work:# Create a script on the fly to copy the mongod daemon for our configurationThanks for bearing with me on this!
# server to run off of. (The latter cannot share /usr/bin/mongod because the
# arbiter is going to be using that one.)
bash "copy-mongod" do
user "root"
cwd "/data/mongodb"
code <<-EOS
cp /usr/bin/mongod ./bin
chown mongodb:mongodb ./bin/mongod
chmod a+x ./bin/mongod
EOS
end
Russ
On 9/4/2013 3:22 PM, Russell Bateman wrote:
No, on the client I'm using 11.4.4-2. My chef server is running 10.18.1.
Archive powered by MHonArc 2.6.16.