Created
November 8, 2012 17:21
-
-
Save adamhjk/4040194 to your computer and use it in GitHub Desktop.
sample attr data
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
# sysctl/attributes/default.rb | |
# Calcualte sysxtl foo setting | |
if node.memory < 528 | |
default['sysctl']['foo'] = 'bang' | |
elsif node.run_list.include?("role[x]") | |
default['sysctl']['foo'] = 'bar' | |
else | |
default['sysctl']['foo'] = 'bazinga' | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment