Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

system_profile does not use included templates. #40

Merged
merged 1 commit into from
Mar 11, 2016

Conversation

rbclark
Copy link
Contributor

@rbclark rbclark commented Mar 11, 2016

Currently if you add the following code to a cookbook which has the system cookbook as a dependency

system_profile '/etc/profile' do
  path ['/usr/local/prgm/bin']
end

Then you receive the following error:

ERROR: template[/etc/profile] (/tmp/vagrant-chef/42964f892d0bdc1f3523934e6c16f380/cookbooks/system/providers/profile.rb line 21) had an error:    
Chef::Exceptions::FileNotFound: Cookbook 'prgm-chef' (0.1.0) does not contain a file at any of these locations:
==> default:   templates/centos-6.7/profile.erb
==> default:   templates/centos/profile.erb
==> default:   templates/default/profile.erb
==> default:   templates/profile.erb

This pull request fixes this by explicitly specifying that the template is located in the system cookbook.

Additional information about the issue can be found here chef/chef#3681

flaccid added a commit that referenced this pull request Mar 11, 2016
system_profile does not use included templates.
@flaccid flaccid merged commit 3e02589 into xhost-cookbooks:master Mar 11, 2016
@flaccid
Copy link
Contributor

flaccid commented Mar 11, 2016

@rbclark thanks for that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants