Skip to content

Instantly share code, notes, and snippets.

@fcharlier
Created April 20, 2012 14:36
Show Gist options
  • Save fcharlier/2429124 to your computer and use it in GitHub Desktop.
Save fcharlier/2429124 to your computer and use it in GitHub Desktop.
Load nbd module
exec { "insert_module_nbd":
command => "/bin/echo 'nbd' > /etc/modules",
unless => "/bin/grep 'nbd' /etc/modules",
}
exec { "/sbin/modprobe nbd":
unless => "/bin/grep -q '^nbd ' '/proc/modules'"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment