Hi all, We're pleased to announce that version 1.5.0 of the Resource API has just been released.
The Resource API provides a simple way to create new native resources in the form of types and providers for Puppet. Using a little bit of ruby, you can finally get rid of that brittle exec, or manage that one API that eluded you until now. It is provided as a Ruby gem that can be installed on all puppet versions since 4.7, and will be part of puppet6. Support for it has been included as an experimental feature in the Puppet Development Kit (see pdk new provider --help). 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: - Allow providers to specify a title when there are multiple namevars, to make title patterns more usable. PDK-1150 <https://tickets.puppetlabs.com/browse/PDK-1150> #115 <https://github.com/puppetlabs/puppet-resource_api/pull/115> (da-ar <https://github.com/da-ar>) - Sensitive values are now usable like any other puppet4 datatype. PDK-1092 <https://tickets.puppetlabs.com/browse/PDK-1091> #117 <https://github.com/puppetlabs/puppet-resource_api/pull/117> (DavidS <https://github.com/DavidS>) - The puppetlabs-resource_api module now "supports" puppet 6. With the integration of Resource API in puppet 6, the module technically is not needed anymore. For backwards compatibility, and to provide a uniform experience across all puppet versions, it is still available, and will work on puppet6 (doing nothing). The new release also contains the following notable bugfixes: - providers that implement simple_get_filter, are now handled correctly. MODULES-7679 #113 <https://github.com/puppetlabs/puppet-resource_api/pull/113> (da-ar <https://github.com/da-ar>) - default values are not shared across all resource instances anymore. #118 <https://github.com/puppetlabs/puppet-resource_api/pull/118> (DavidS <https://github.com/DavidS>) 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. The README <https://github.com/puppetlabs/puppet-resource_api/blob/master/README.md> gets you going quickly. To see some example code see this simple Philips Hue type <https://github.com/da-ar/hue_rsapi> or this experimental apt_key provider <https://github.com/DavidS/puppetlabs-apt/blob/resource-api-experiments/lib/puppet/provider/apt_key2/apt_key2.rb> . 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 for the Resource API maintainers. -- 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/CALF7fHaa50emQ%3DE2r2O6QgkUr6XhtFmOvOcdUs%3DCw-see9t_UQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.