bolt equivalent to mco command

asked 2018-11-08 18:36:01 -0600

billjamzz2 gravatar image

updated 2018-11-09 08:45:45 -0600

DarylW gravatar image

I know with puppet 6 mco is gone. One command we like to use is mco puppet runonce --noop -C mymodule -F domain=mydomain What would be the equivalent in the bolt world?

I found this works, but seems like a total hack:

 bolt command run "sudo puppet agent -t --noop" --query 'resources { tag = "mymodule"  }'

or

 bolt command run "sudo puppet agent -t --noop" --query 'inventory { facts.domain = "mydomain.com" }'

What is the "proper" way to do this?

Thank you!

edit retag flag offensive close merge delete