Say I have the following application:
and I want to add a template that references the release_path & the db host. How can I refer to the host that the php resource calculates using find_database_server? How can I refer to the release_path that is constructed by the underlying deploy resource?
I did manage to get the host like this:
db_host = nil
db_host = find_database_server(“kiwi_db_master”)
template “/tmp/test” do
:host => db_host
but I’m not sure if that is a good way.
the application resource defines a release_path method, but I could not figure out how to access it.
On a related note, what is the best way to share values between resources? with local variables as above?