I have a problem with AWS OpsWorks custom recipes. After moving nodes to chef 11 the attributes are not "seen" in recipes. Example: in file recipes/some-service.rb i got entry
remote_file local_file do
source node['servicename']['https_download']
owner node['servicename']['app_user']
group node['servicename']['app_group']
mode 0664
end
in file attributes/some-service.rb:
default['servicename']['https_download'] = 'https://corect.address.of.file'
default['servicename']['app_user'] = 'someuser'
default['servicename']['app_group'] = 'somegroup'
When I try to deploy app I get an error:
ERROR: Caught exception while compiling OpsWorks custom run list: Chef::Exceptions::InvalidRemoteFileURI - nil is not a valid source
parameter for remote_file. source
must be an absolute URI or an array of URIs. - /opt/aws/opsworks/releases/20131015111601_209/vendor/gems/chef-11.4.4/bin/../lib/chef/resource/remote_file.rb:67:in `validate_source'
It seems like it gets nil instead value from attributes. What may I doing wrong?