Comments (3)
This is at the top of my queue, actually. I am hoping to have a draft out there sometime later next week for the whole "Custom LWRP" set of topics.
from chef-web-docs-2016.
So take a look at this: http://docs.opscode.com/lwrp_custom_provider.html
If you have additional thoughts about what is in there, please let me know. Incidentally, there are "two types" of lightweight providers -- one of them is built around core Chef resource and the other is built using primarily custom Ruby code. It is the latter which requires the converge_by blocks (to enable the whyrun messaging). The former, because whyrun is already built into the core Chef resources, does not require the converge_by method.
This topic: http://docs.opscode.com/lwrp_custom_provider_ruby.html ... I am still working on, but there is a description of the converge_by method in there.
Because LWRPs are so flexible with regard to the approach one might take when building them, looking at what other people have done can be quite helpful too. Some great non-Opscode examples of LWRPs can be found here:
https://github.com/RiotGames/rbenv-cookbook
and:
https://github.com/fnichol/chef-rvm/blob/master/providers/gemset.rb (just one of many in that collection of provider files)
Hope this helps,
James
from chef-web-docs-2016.
Thank you for your great works!
from chef-web-docs-2016.
Related Issues (20)
- Compliance api update HOT 3
- chef_gem examples are outdated HOT 2
- docs.chef.io missing error_messages page for external-postgresql HOT 1
- chef_gem 'compile_time' wording isn't so great HOT 2
- remove-partitions option to opscode-reporting-ctl should be documented HOT 1
- document block argument to load_current_value HOT 12
- Open source to chef server 12 link is missing from upgrade cods HOT 1
- Manually loading encrypted databags is missing from the docs
- chef generate cookbook sentence is Deep.
- Greatly expand uninstall procedure
- metadata.rb doc is wrong for 'ohai_version' HOT 1
- Docs misrepresent default behaviour of chef-client -l
- Installation of Supermarket does not seem to be documented HOT 2
- Error in : chef-web-docs-2016/includes_delivery_integration/includes_delivery_integration_ldap_attributes.rst
- General compliance.rb improvements HOT 3
- (low pri) compliance api documentation bug HOT 1
- (windows) kitchen.yml docs
- Document new Ohai ohai flags
- `chef provision` docs don't show how to include dependencies in './provision/metadata.rb'
- Chef Server /universe example return values are incorrect/misleading
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chef-web-docs-2016.