Giter VIP home page Giter VIP logo

Comments (3)

jamescott avatar jamescott commented on July 4, 2024

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.

jamescott avatar jamescott commented on July 4, 2024

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.

d-higuchi avatar d-higuchi commented on July 4, 2024

Thank you for your great works!

from chef-web-docs-2016.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.