Skip to content

Instantly share code, notes, and snippets.

@joelmoss
Last active August 29, 2015 13:56
Show Gist options
  • Save joelmoss/8952979 to your computer and use it in GitHub Desktop.
Save joelmoss/8952979 to your computer and use it in GitHub Desktop.
NoMethodError
-------------
No resource or method named `mount' for `Chef::Recipe "home_image"'
Cookbook Trace:
---------------
/var/chef/cache/cookbooks/fileserver/recipes/home_image.rb:18:in `from_file'
/var/chef/cache/cookbooks/fileserver/recipes/default.rb:29:in `from_file'
/var/chef/cache/cookbooks/fileserver/recipes/role.rb:12:in `from_file'
Relevant File Content:
----------------------
/var/chef/cache/cookbooks/fileserver/recipes/home_image.rb:
11: src_filename = "base-home-v#{node[:fileserver][:home_image][:version]}.sqsh"
12: src_filepath = "#{Chef::Config['file_cache_path']}/#{src_filename}"
13:
14: remote_file src_filepath do
15: source "http://URL/#{src_filename}"
16: end
17:
18>> mount '/mnt/data/base-home' do
19: mount src_filepath
20: fstype 'squashfs'
21: # options 'loop'
22: action [ :mount, :enable ]
23: end
24:
mount '/mnt/data/base-home' do
mount src_filepath
fstype 'squashfs'
action [ :mount, :enable ]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment