Created
September 22, 2010 23:47
-
-
Save jtimberman/592800 to your computer and use it in GitHub Desktop.
production role and search
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name "production" | |
default_attributes(:app_environment => "production") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# in a recipe, get all the web servers in this node's environment | |
n = search(:node, "role:webserver AND app_environment:#{node['app_environment']}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment