rightscale

How to get a full path of the running cookbook in the RightScale chef recipe?

那年仲夏 提交于 2019-12-10 15:53:32
问题 From inside my currently executing cookbook recipe I'd like to get access to it's "current" location on my executing machine. I need this to get access to it's cached directory structure. I have a feeling it's located somewhere inside "node[]" but I can't find any documentation about its structure at all. Any advise? Thanks 回答1: Just found the solution by inspecting the "run_context" instance: ruby_block "reload_client_config" do block do puts "HERE!!!!! -> " + run_context.cookbook_collection

Errors while installing OpenCV and FFMPEG through Rightscripts

天涯浪子 提交于 2019-12-04 01:56:22
问题 I am writing a RightScript to install OpenCV-2.3.1 on a linux server. I am using FFMPEG package: ffmpeg-0.7-rc1 I am doing exactly whatever I did while installing it manually on the server, but am getting some errors when I try booting the box using the rightscripts. OpenCV installs and works fine when built manually through bash. The errors I am getting are: In file included from /OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg.cpp:45: /OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp: In