Sign inSign up

projectnebula/bolt-run

By projectnebula

•Updated over 6 years ago

This Bolt step container runs a task or plan against a set of target nodes.

Image
0

775

projectnebula/bolt-run repository overview

⁠Run a Bolt task or plan

This Bolt⁠ step container runs a task⁠ or plan⁠ against a set of target nodes. It supports SSH and WinRM configuration in the step itself, and the complete set of Bolt configuration via a Bolt project's bolt.yaml and inventory.yaml files.

⁠Specifications

SettingChild settingData typeDescriptionDefaultRequired
typestringThe type of Bolt action to perform, one of task or plan.NoneTrue
namestringThe name of the Bolt task or plan to run.NoneTrue
parametersmappingThe task- or plan-specific parameter data to use for this run.NoneFalse
projectDirstringWhen the git setting is specified, the relative directory within the Git repository to use as the Bolt project..False
modulePathsarrayA list of additional directories outside of the project directory to add to the Bolt module path.NoneFalse
installModulesbooleanDownload and install modules listed in a Puppetfile.falseFalse
transportmappingThe default transport to use when connecting to the target nodes.NoneFalse
typestringThe transport type, one of ssh or winrm.NoneFalse
userstringThe username to use to connect.NoneFalse
passwordstringThe password to use to connect.NoneFalse
privateKeystringThe name of a key in the credentials setting to use as the default SSH private key.NoneFalse
useSSLbooleanIf using the WinRM transport, whether to use SSL to connect.trueFalse
verifyHostbooleanWhether to verify host integrity when connecting to remote nodes.trueFalse
targetsstring or arrayThe list of target nodes to connect to, either in the same format as Bolt expects (a comma-separated string), or as a list.NoneFalse
credentialsmappingA map of sensitive credential data encoded using Base64.NoneFalse
gitmappingA map of git configuration. If you're using HTTPS, only name and repository are required.NoneFalse
ssh_keystringThe SSH key to use when cloning the Git repository. You can pass the key to Nebula as a secret. See the example below.NoneFalse
known_hostsstringSSH known hosts file.NoneFalse
namestringA directory name for the Git clone.NoneFalse
branchstringThe Git branch to clone.masterFalse
repositorystringThe Git repository URL.NoneFalse

Note: The value you set for a secret must be a string. If you have multiple key-value pairs to pass into the secret, or your secret is the contents of a file, you must encode the values using base64 encoding, and use the encoded string as the secret value.

⁠Examples

steps:
# ...
- name: bolt-run
  image: projectnebula/bolt-run
  spec:
    type: task
    name: facts::bash
    targets:
    - a.example.com
    - b.example.com
    credentials:
      id_rsa:
        $type: Secret
        name: id_rsa
    transport:
      type: ssh
      user: ubuntu
      privateKey: id_rsa

Tag summary

Content type

Image

Digest

Size

114 MB

Last updated

over 6 years ago

docker pull projectnebula/bolt-run