Last active
August 29, 2015 13:56
-
-
Save joelmoss/8952979 to your computer and use it in GitHub Desktop.
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
| 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: |
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
| 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