Hi all,

We're pleased to announce that version 1.4.0 of the Resource API is being
released 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 (pdk new
provider). Use the resource_api module
<https://forge.puppet.com/puppetlabs/resource_api> or the puppet 6 nightly
packages
<https://groups.google.com/d/msg/puppet-users/N3LJGhsrqkU/TUEsq7VfDQAJ> to
deploy it in your infrastructure.

The new release of the Resource API provides the following enhancements:

   - Purging with resources { 'your_type': purge => true } works now for
   Resource API types. This allows users of your type to clean up everything
   that is not managed by the current catalog. (PDK-1007)
   - Enhanced validation for developers: the Resource API now checks return
   values from get() against the type's definition. This aids in finding
   bugs in the provider itself earlier and can be turned on and off through
   puppet's --strict setting. (PDK-917)
   - To make device-based code better re-usable, the SimpleDevice class now
   also takes configuration as a Hash. (#96)

The new release also contains the following notable bugfixes:

   - Exception handling during batch operations has been fixed to show all
   stack traces for better debugability (#101)
   - Empty (nil) attribute values are not printed from puppet resource
   (#100)
   - Improved error messages on data type errors in the type definition
   (PDK-996)

See the CHANGELOG
<https://github.com/puppetlabs/puppet-resource_api/blob/master/CHANGELOG.md>
for a full list of changes

We encourage all module developers to review the Resource API and use it
when creating 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, either here,
on Slack <https://slack.puppet.com/> (#forge-modules), or on the github repo
<https://github.com/puppetlabs/puppet-resource_api>.

Thanks, David Schmitt & David Armstrong
-- 
Cheers, David

https://twitter.com/dev_el_ops

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CALF7fHZiLSwVPd0AJ2PeDYtpYf4OSkdPgG03Q7Zcg5BCQ9GA3Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to