| title | Bolt Quickstart | |||
|---|---|---|---|---|
| category | Bolt | |||
| layout | 2017/sheet | |||
| updated | 2018-12-25 | |||
| authors |
|
|||
| keywords |
|
|||
| description | A quick guide to getting started writing Bolt tasks |
# On MacOS
brew cask install puppetlabs/puppet/puppet-bolt
# On Windows
choco install puppet-boltBolt is available as a package for most platforms. See installing bolt
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.
bolt task run mymodule::myscript -n node1.example.com,node2.example.com --private-key ~/.ssh/id_rsa-privateSee bolt task run --help for more information and command line options.