Skip to content

Instantly share code, notes, and snippets.

@nickanderson
Created February 1, 2023 15:42
Show Gist options
  • Save nickanderson/9edcd9e0f965b25c79541a8128a30b75 to your computer and use it in GitHub Desktop.
Save nickanderson/9edcd9e0f965b25c79541a8128a30b75 to your computer and use it in GitHub Desktop.
A simple example for alexfromgalax
# services/main.cf
bundle agent mpf_main
# User Defined Service Catalogue
{
methods:
# Activate your custom policies here
"my_classification";
"my_stuff";
}
bundle agent my_classification
{
classes:
"grp2"
or => {"agent2_example_com","192_168_244_182"},
scope => "namespace"; # So that you can see this class in other bundles
}
bundle agent my_stuff
{
reports:
grp2::
"I see that the class grp2 is defined";
!grp2::
"I do not see that the class grp2 is defined";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment