Skip to content

Instantly share code, notes, and snippets.

@adamhjk
Created November 8, 2012 17:21
Show Gist options
  • Save adamhjk/4040194 to your computer and use it in GitHub Desktop.
Save adamhjk/4040194 to your computer and use it in GitHub Desktop.
sample attr data
# 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