Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support notdefaultfor provider DSL method #282

Open
joshcooper opened this issue Jun 29, 2021 · 0 comments
Open

Support notdefaultfor provider DSL method #282

joshcooper opened this issue Jun 29, 2021 · 0 comments

Comments

@joshcooper
Copy link
Contributor

Use Case

Puppet added a notdefaultfor DSL method to constrain providers, similar to defaultfor. This allows providers to default to a given osfamily, except on earlier os versions. However, strings doesn't support notdefaultfor

Describe the Solution You Would Like

Strings should emit documentation when a provider uses notdefaultfor. For example, the systemd service provider defines:

  defaultfor :operatingsystem => :debian
  notdefaultfor :operatingsystem => :debian, :operatingsystemmajrelease => ["5", "6", "7"] 

I would expect to see documentation similar to defaultfor in the docs for each provider:

<div class="tags">
  <p class="tag_title">Default Provider For</p>
  <ul>

  
    
      <li><tt>osfamily &mdash; [:archlinux]</tt></li>
    
      <li><tt>osfamily &mdash; redhat, operatingsystemmajrelease &mdash; ["7", "8"]</tt></li>
    ```
See also https://tickets.puppetlabs.com/browse/PUP-8552
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant