run-shell-scripts

Executes your shell/bash scripts on hosts, with an optional class condition and a minimum interval between runs.

Maintainer

Igor Aleksandrychev

Module stats

Total Downloads: 0
Updated: Sep 4, 2026

Installation version

Version
Released on Sep 4, 2026

Tags

Installation

                    
cfbs add run-shell-scripts
Description
Dependencies
Discussion

run-shell-scripts

CI

A cfbs module that runs shell/bash scripts.

Usage

cfbs add run-shell-scripts
cfbs input run-shell-scripts
cfbs build

Input

Variable Type Default Description
run_shell_scripts:main.scripts file, repeatable - Path to a .sh/.bash script to run.
run_shell_scripts:main.condition string any Class expression gating whether the scripts run.
run_shell_scripts:main.ifelapsed string 0 Minutes between runs (0 = every agent run).

condition is a CFEngine class expression, e.g. Monday, linux, !any (never run).

Note: scripts uses the file input type, which requires cfbs 5.7.0 or newer.

Dependencies

This module has no dependencies