puppetlabs / puppetlabs/puppet-resource_api

Create an example of a regular local resource

Open
#213 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

documentation enhancement
Dominant language
Ruby
Stars
27
Forks
42
PR merge metrics
No merged PRs in 30d

Description

Use Case

When getting started with the Resource API, examples help with understanding the new approach. Our only examples currently are for remote resources (hue, panos, ios, etc). To also show how local resources can be wrapped with the Resource API, we need an example without transport. Possible candidates are apt_key (see apt_key2 prototype for a start) and java_ks

Additional Context

This was originally filed as https://tickets.puppetlabs.com/browse/PDK-1130

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing remote-resource examples, then compare the apt_key2 prototype at lib/puppet/provider/apt_key2/apt_key2.rb and the java_ks type at lib/puppet/type/java_ks.rb. Done means adding an example of a regular local resource that uses the Resource API without transport.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
tooling
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.