puppetlabs-reboot
puppetlabs-reboot copied to clipboard
Issue with the onlyif parameter not being recognized.
Describe the Bug
Possible bug when being used with puppetlabs/docker
https://github.com/puppetlabs/puppetlabs-docker/issues/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:
- Use the puppetlabs/docker module on Windows 2019
- Deploy the module on a fresh install where the docker module manages everything.
- Confirm that the
windows.rb
from this module is being deployed to the host, along withmanifests/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.