hindsight: Manage Hidsight service configurationhindsight::config: Internal class, should not be called directly. Manages directory structure for Hindsight configuration fileshindsight::install: Ensures installation of system packages (RPM/deb/etc.) This class is called from hindsight for install.hindsight::params: Default param valueshindsight::service: Manage Hindsight service
hindsight::plugin: Hindsight plugin configuration
hindsight_escape: Escape string values
Manage Hidsight service configuration
The following parameters are available in the hindsight class:
max_message_sizepackagemodulesusergroupservice_nameservice_ensuremanage_serviceservice_prestartconf_diroutput_dirdecoders_dirrun_diranalysis_lua_pathanalysis_lua_cpathpurge_configsanalysis_threadsio_lua_pathio_lua_cpathanalysis_defaultsinput_defaultsoutput_defaultspackage_ensurehostnameoutput_size
Data type: String
max size in bytes default: 8e6 (8MB)
Data type: String
Hindsight package name to be installed via system package
Default value: $hindsight::params::package
Data type: Array[String]
Optional modules (luasandbox extensions e.g. ['luasandbox-lpeg'])
Default value: $hindsight::params::modules
Data type: String
The owner of config files
Default value: $hindsight::params::user
Data type: String
The group for config files
Default value: $hindsight::params::group
Data type: String
Name of service running Hindsight daemon
Default value: $hindsight::params::service_name
Data type: Variant[Boolean,String]
Possible values running,stoppped,true, false
Default value: $hindsight::params::service_ensure
Data type: Boolean
Whether Puppet should manage the service
Default value: $hindsight::params::manage_service
Data type: Array[String]
Array of commands to be executed before hindsight service start
Default value: []
Data type: Stdlib::Absolutepath
Directory where main Hidsight configuration resides
Default value: $hindsight::params::conf_dir
Data type: Stdlib::Absolutepath
Path where the protobuf streams, checkpoints and statistics are stored.
Default value: $hindsight::params::output_dir
Data type: Stdlib::Absolutepath
Path to decoders
Default value: $hindsight::params::decoders_dir
Data type: Stdlib::Absolutepath
Base path containing the running configis and dynamically loaded lua, by default conf_dir/run
Default value: $hindsight::params::run_dir
Data type: Stdlib::Absolutepath
Path used by the analysis plugins to look for Lua modules
Default value: $hindsight::params::analysis_lua_path
Data type: Stdlib::Absolutepath
Path used by the analysis plugins to look for Lua C modules
Default value: $hindsight::params::analysis_lua_cpath
Data type: Boolean
Removed configs that are not managed by this module
Default value: $hindsight::params::purge_configs
Data type: Integer
Number of threads for analysis
Default value: 1
Data type: Stdlib::Absolutepath
Path to look for Lua io modules
Default value: $hindsight::params::io_lua_path
Data type: Stdlib::Absolutepath
Path to look for C io modules
Default value: $hindsight::params::io_lua_cpath
Data type: Hash
Hash overriding default sandbox configuration variables. See https://mozilla-services.github.io/hindsight/configuration.html
Default value: $hindsight::params::analysis_defaults
Data type: Hash
Hash overriding default sandbox configuration variables. See https://mozilla-services.github.io/hindsight/configuration.html
Default value: $hindsight::params::input_defaults
Data type: Hash
Hash overriding default sandbox configuration variables. See https://mozilla-services.github.io/hindsight/configuration.html
Default value: $hindsight::params::output_defaults
Data type: String
Ensure passed to installed packages
Default value: 'installed'
Data type: Optional[String]
Manually set hostname
Default value: undef
Data type: Integer
in bytes (default 64MiB)
Default value: 64 * 1024 * 1024
Internal class, should not be called directly. Manages directory structure for Hindsight configuration files
The following parameters are available in the hindsight::config class:
usergroupconf_diroutput_dirrun_diranalysis_lua_pathanalysis_lua_cpathio_lua_pathio_lua_cpathanalysis_threadspurge_configsanalysis_defaultsinput_defaultsoutput_defaultsfile_ensuredir_ensurehostnamemax_message_sizeoutput_size
Data type: String
The owner of config files
Data type: String
The group for config files
Data type: Stdlib::Absolutepath
Directory where main Hidsight configuration resides
Data type: Stdlib::Absolutepath
Path where the protobuf streams, checkpoints and statistics are stored.
Data type: Stdlib::Absolutepath
Base path containing the running configis and dynamically loaded lua, by default conf_dir/run
Data type: Stdlib::Absolutepath
Path used by the analysis plugins to look for Lua modules
Data type: Stdlib::Absolutepath
Path used by the analysis plugins to look for Lua C modules
Data type: Stdlib::Absolutepath
Path to look for Lua io modules
Data type: Stdlib::Absolutepath
Path to look for C io modules
Data type: Integer
Number of threads for analysis
Data type: Boolean
Removed configs that are not managed by this module
Data type: Hash
Hash overriding default sandbox configuration variables. See https://mozilla-services.github.io/hindsight/configuration.html
Data type: Hash
Hash overriding default sandbox configuration variables. See https://mozilla-services.github.io/hindsight/configuration.html
Data type: Hash
Hash overriding default sandbox configuration variables. See https://mozilla-services.github.io/hindsight/configuration.html
Data type: String
Ensure passed to config files
Default value: 'file'
Data type: String
Ensure passed to directories
Default value: 'directory'
Data type: Optional[String]
Manually set hostname
Data type: String
in bytes
Data type: Integer
in bytes
== Class hindsight::install
The following parameters are available in the hindsight::install class:
Data type: String
Hindsight package name to be installed via system package
Data type: Array[String]
Optional modules (luasandbox extensions e.g. ['luasandbox-lpeg'])
Data type: String
Common ensure for all packages, e.g.: present | absent
Default value: 'installed'
Default param values
Manage Hindsight service
The following parameters are available in the hindsight::service class:
Data type: String
Name of service running Hindsight daemon
Data type: Variant[Boolean,String]
Possible values running,stoppped,true, false
Data type: Stdlib::Absolutepath
Directory where main Hidsight configuration resides
Data type: Array[String]
Array of commands to be executed before hindsight service start
Default value: []
Data type: Optional[String]
Limit number of file descriptor for hindsight service. Format: soft:hard, e.g. 2048:4096
Default value: undef
Hindsight plugin configuration
The following parameters are available in the hindsight::plugin defined type:
Data type: String
Name of Lua file to require
Data type: String
Filename to write configuration (.cfg will be appended)
Data type: Enum['present','absent']
Config file ensure (either present or absent)
Default value: 'present'
Data type: Integer[1]
Concat order (in config file)
Default value: 1
Data type: Hash
Plugin configuration
Default value: {}
Data type: Boolean
When true Hindsight service will be restarted upon change
Default value: $hindsight::manage_service
Data type: String
Hindsight service name
Default value: $hindsight::service_name
Data type: Stdlib::Absolutepath
sandbox_run directory
Default value: $hindsight::run_dir
Data type: Optional[String]
Template to load config from
Default value: undef
Data type: Optional[String]
Path from which config should be loaded
Default value: undef
Type: Ruby 4.x API
Escape string values
The hindsight_escape function.
Returns: Any
Data type: Any