Created
April 20, 2012 14:36
-
-
Save fcharlier/2429124 to your computer and use it in GitHub Desktop.
Load nbd module
This file contains 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
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