This file contains hidden or 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
execute "mkfs" do | |
command "mkfs -t #{options[:fstype]} #{device}" | |
not_if do | |
# wait for the device | |
loop do | |
if File.blockdev?(device) | |
Chef::Log.info("device #{device} ready") | |
break | |
else |
This file contains hidden or 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
set_unless[:cookbook_support][:poll][:dir] = "/data/chef/chef_polls" |
NewerOlder