NAME
Ixchel::Actions::sagan_base - Generates the base config for a sagan instance.
VERSION
Version 0.2.0
CLI SYNOPSIS
ixchel -a sagan_base [-w] [-i <instance>]
CODE SYNOPSIS
use Data::Dumper;
my $results=$ixchel->action(action=>'sagan_base', opts=>{np=>1, w=>1, });
print Dumper($results);
DESCRIPTION
The following keys are removed from the file.
.rules-files
.processors
.outputs
These are removed as they are array based, making it very awkward to deal with with having them previously defined.
.sagan.base_config is used as the URL for the config to use and needs to be something understood by Ixchel::functions::file_get. By default https://raw.githubusercontent.com/quadrantsec/sagan/main/etc/sagan.yaml is used.
.include is set to .sagan.config_base.'/sagan-include.yaml' in the case of single instance setups if .sagan.multi_instance is set to 1 then .sagan.config_base."/sagan-include-$instance.yaml"
FLAGS
-w
Write the generated services to service files.
-i instance
A instance to operate on.
RESULT HASH REF
.errors :: A array of errors encountered.
.status_text :: A string description of what was done and teh results.
.ok :: Set to zero if any of the above errored.