autorun

Enables autorun functionality.

Maintainer

Ole Herman Schumacher Elgesem

Module stats

Total Downloads: 23532
Updated: Jan 9, 2025

Installation version

Version
Released on Jan 9, 2025

Tags

Installation

                    
cfbs add autorun@1.0.2
Description
Dependencies
Discussion

This module enables autorun functionality so you can add policy files to services/autorun and tag bundles with autorun causing them to be automatically discovered and run.

A policy file you add to services/autorun could look like this:

bundle agent my_example
{
  meta:
    "tags"
      slist => { "autorun" };
  reports:
    "Hello, world!"
}

With autorun enabled, the policy file would be parsed, and the bundle evaluated without editing any of your existing files / policy.

It uses the augments file to achieve this, it is the same as editing your def.json file like this:

{
  "classes": {
    "services_autorun": ["any"]
  }
}

Dependencies

This module has no dependencies