Menu

gitpiper

Bolt Quickstart Cheat Sheet in November 2024

Last Updated: 29 November 2024

README.md

Install Bolt

# On MacOS
brew cask install puppetlabs/puppet/puppet-bolt
# On Windows
choco install puppet-bolt

Bolt is available as a package for most platforms. See installing bolt

Create a module with a task

mkdir -p ~/.puppetlabs/bolt/modules/mymodule/tasks
cp myscript.sh ~/.puppetlabs/bolt/modules/mymodule/tasks/

Tasks can be written in any language your targets can run. See writing tasks for more details.

Run Bolt

bolt task run mymodule::myscript -n node1.example.com,node2.example.com --private-key ~/.ssh/id_rsa-private

See bolt task run --help for more information and command line options.


338+ more cheat sheets for you in November 2024

Subscribe to our Newsletter

Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️

© 2024 GitPiper. All rights reserved

Rackpiper Technology Inc

Company

About UsBlogContact

Subscribe to our Newsletter

Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️