-
-
Notifications
You must be signed in to change notification settings - Fork 122
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
Use declare_resource for local package install #40
Conversation
👍 |
e96a2d3
to
31513c0
Compare
Urgh. Don't know why the specs are failing in Travis. They pass on my local system.
|
they don't seem to have anything to do with this change. |
From the build failure:
The current stubbing for load on Chef::DataBagItem 'splunk_certificates' in setup_ssl_spec does not work anymore after this change: A workaround is obviously to stub Chef::DataBag load in addition to Chef::DataBagItem load. I think another slightly better alternative is to mock the data bag instead of being dependent on internal implementation of chef_vault_item: I just submitted corresponding PR #45 which should fix the build. |
Per this comment: chef/chef#3487 (comment) We should not use the `provider` property of resources. We should instead use the DSL method, #declare_resource. This commit converts the definition to use that method.
31513c0
to
35a85c6
Compare
…ource Use declare_resource for local package install
Per this comment:
chef/chef#3487 (comment)
We should not use the
provider
property of resources. We should instead use the DSL method, #declare_resource. This commit converts the definition to use that method.