- From: <
>
- To:
- Subject: [chef] First-run Resources
- Date: Sun, 12 Jan 2014 13:52:20 -0800 (PST)
Hi,
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
(
http://docs.opscode.com/essentials_cookbook_resources_first_run.html) but
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
environment).
Thanks in advance,
Niek.
- [chef] First-run Resources, niek.bartholomeus, 01/12/2014
Archive powered by MHonArc 2.6.16.