DEV Community

loading...

Bolt Cheat Sheet

hoanganhlam profile image Lâm ・1 min read

Also see

Run Bolt

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

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

Create a module with a task

mkdir -p ~/.puppetlabs/bolt/modules/mymodule/tasks
cp myscript.sh ~/.puppetlabs/bolt/modules/mymodule/tasks/
Enter fullscreen mode Exit fullscreen mode

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

Install Bolt

# On MacOS
brew cask install puppetlabs/puppet/puppet-bolt
# On Windows
choco install puppet-bolt
Enter fullscreen mode Exit fullscreen mode

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

Discussion (0)

Forem Open with the Forem app