Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Issue with the onlyif parameter not being recognized. #367

Open
fr3nch13 opened this issue Jul 26, 2024 · 0 comments
Open

Issue with the onlyif parameter not being recognized. #367

fr3nch13 opened this issue Jul 26, 2024 · 0 comments

Comments

@fr3nch13
Copy link

Describe the Bug

Possible bug when being used with puppetlabs/docker

puppetlabs/puppetlabs-docker#987

Specifically with the file: manifests/service.pp#506

Error:

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: no parameter named 'onlyif' (file: /etc/puppetlabs/code/environments/brian_test/modules/docker/manifests/service.pp, line: 506) on Reboot[pending_reboot] (file: /etc/puppetlabs/code/environments/brian_test/modules/docker/manifests/service.pp, line: 506) on node

My module that uses puppetlabs/docker (which uses puppetlabs/reboot) is passing unit testing with 100% code coverage, but actual testing (canary testing, thanks CrowdStrike for the name) is failing with the above error.

Expected Behavior

To accept the onlyif parameter

Steps to Reproduce

Steps to reproduce the behavior:

  1. Use the puppetlabs/docker module on Windows 2019
  2. Deploy the module on a fresh install where the docker module manages everything.
  3. Confirm that the windows.rb from this module is being deployed to the host, along with manifests/service.pp which uses the reboot provider.

Environment

  • Windows 2019 server
  • Puppet server and agent 7.31.0
  • mod 'puppetlabs/docker', :latest (10.0.1)
  • mod 'puppetlabs/pwshlib', :latest (1.1.1)
  • mod 'puppetlabs/reboot', :latest (5.0.0)
  • mod 'puppetlabs/registry', :latest (5.0.1)

Additional Context

Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant