I’m creating a cookbook for deploying an application server (jruby & tomcat)
and database server (postgres).
There is a “rake db:setup” command that I need to run only once to set up the
database structure. I wanted to do this with the “first run resource” pattern
since the app server from which I run the rake command is a chef different node
than the database server, it doesn’t have permission to set an attribute on it.
I’m able to manually give this permission from the hosted chef UI but I’m
looking at a way to grant this permission from my database server’s recipe.
Any idea how I can do this? Or maybe a better way to store this flag? (Btw I
have one database server and possibly multiple app servers in each
Thanks in advance,