Skip to content

Instantly share code, notes, and snippets.

@juliandunn
Created January 31, 2015 05:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juliandunn/3bea7c46c9740e13acf5 to your computer and use it in GitHub Desktop.
Save juliandunn/3bea7c46c9740e13acf5 to your computer and use it in GitHub Desktop.
package 'glibc' do
action :upgrade
not_if "rpm -q --changelog glibc | grep -q 'CVE-2015-0235'"
notifies :request_reboot, "reboot[ghost-detected]"
end
reboot 'ghost-detected' do
action :cancel
reason 'GHOST vulnerability detected, system must reboot'
delay_mins 2
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment