1
0
mirror of https://github.com/onkelbeh/cheatsheets.git synced 2025-06-14 22:27:33 +02:00
cheatsheets/bolt.md
Rico Sta. Cruz 511de900ba
Formatting updates (#2133)
- Update some sheets which have very long sections
- Remove `layout: 2017/sheet` (everything has the same layout now)
- Remove outdated sheets
2024-04-03 18:30:24 +11:00

995 B

title category updated authors keywords description
Bolt Quickstart Bolt 2018-12-25
github
lucywyman
Puppet
tasks
modules
A quick guide to getting started writing Bolt tasks

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.