Skip to content

Instantly share code, notes, and snippets.

@adamhjk
Created November 9, 2010 01:05
Show Gist options
  • Save adamhjk/668555 to your computer and use it in GitHub Desktop.
Save adamhjk/668555 to your computer and use it in GitHub Desktop.
node['filesystem']['/dev/disk0s2']['percent_used'] =~ /^(\d+)%$/
percent_used = $1.to_i
if percent_used > 90
include_recipe "raid::grow"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment