Hi all, We're pleased to announce that version 1.0 of the Resource API <https://github.com/puppetlabs/puppet-resource_api> is being launched today.
The Resource API provides a simple way to create new native resources in the form of types and providers for Puppet. It is provided as a Ruby gem to be referenced within modules. Support for it has been included as an experimental feature in version 1.4 of the Puppet Development Kit <https://puppet.com/docs/pdk/1.x/pdk.html> (`pdk new provider`). The Resource API provides the following functionality: - Simple type and provider definition. - Use Puppet 4+ data types. - Canonicalize, simple_get_filter, and remote_resource features. - Logging facilities. - New providers are compatible with all puppet commands: - puppet apply - puppet resource - puppet agent - puppet device (if applicable) To ease adoption of the Resource API there is a module <https://forge.puppet.com/puppetlabs/resource_api> on the Forge to install it in your Puppet Server or Puppet Agent. The Resource API gem must be installed in order to use modules that have types and providers created using the Resource API. In the future we are planning to bundle the Resource API with the Puppet platform. We encourage all module developers to review the Resource API and use it when creating modules that have types and providers. For reference, there is an example of its usage in a branch <https://github.com/DavidS/puppetlabs-apt/blob/resource-api-experiments/lib/puppet/provider/apt_key2/apt_key2.rb> of the apt module. Please let us know of your experiences with the Resource API. Thanks. -- Cheers, David https://twitter.com/dev_el_ops -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/CALF7fHZFvvKGWrCgNU-wckrGCei9x%3DLZdCc7Tu18U%2Bu6fene0w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.