I have been working on a new feature to group minions into logical
groups. I didn't see anyway to accomplish what I wanted with the
current list, pcre, globs and grains methods. If there is another way
please let me know.
A simple use case that I have is, I run AIDE(host based IDS) that needs
to have its database updated occasionally. The hosts that I use this on
don't have a common hostname for globs, they are basically the same as
far as grains go(from what I understand of grains thus far) and I
really don't want to type them out in a list each time. So my thought
was to have a group defined with these hosts so that something like
this would hit them all:
salt --hostgroup 'aide' cmd.run 'aideinit -y'
I currently have a working implementation in my fork
way to go(this is also my first time working with python.)
I currently have the groups defined in the master config in a format
like this:
hostgroups: {
group_name: ['host1','host2','host3'],
}
However I also wrote a gist for another idea I had for the config at
existing target evaluation methods and not have to push the group
definitions to all the minions.
Is this worthwhile? Am I going about this all wrong?