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

Comments

i guess not too many people use bolt as a mco replacement yet? Maybe use Choria instead?

billjamzz2 gravatar imagebilljamzz2 ( 2018-11-21 11:59:14 -0600 )edit

In what way does that seem like a hack?

MichaelSmith gravatar imageMichaelSmith ( 2018-12-07 17:42:24 -0600 )edit

well, I was hoping for a more built in option. You can do puppet agent install, config You can do "bolt task run puppet_agent::version" why not "bolt task run puppet_agent::runonce" ?

billjamzz2 gravatar imagebilljamzz2 ( 2018-12-07 18:12:24 -0600 )edit