Open lowell80 opened 6 years ago
An additional feature would be tombstoning an entire .conf file (or dir!), something like this.
├─bin
├─conf.d
│ ├─10-upstream
│ │ ├─data
│ │ │ └─ui
│ │ │ └─views
│ │ │ └─dashboard.xml
│ │ ├─inputs.conf
│ │ └─indexes.conf
│ ├─40-idx_layer
│ │ ├─data.disabled # empty file, remove data dir entirely when included in combine/package/etc.
│ │ ├─inputs.conf.disabled # not needed at idx if using heavy forwarder
│ │ └─indexes.conf # maybe edits for retention or volumes
│ └─50-shc_layer
│ └─indexes.conf.disabled # empty file, remove it entirely.
├─lookups
I think this is what slim partition
is intending to do, but I can't confirm it's doing anything in its current state. It's never generated proper layers for me. It seems to be intended as straight magic in that it just knows you wouldn't have views on an indexer so drop all those. 🤷♂️
@crumpetcrusher. That's a really good point. Yeah slim's @placement XXX
idea is really interesting, but somewhat problematic imho.
I'm going to open this as a new enhancement ticket and put a proper reply in there.
This is mostly a brain dump, probably need to split this into more specific tickets
Here are my thoughts on what this could look like:
<<UNSET>>
or something. Use case: Disabling a transformer defined in the upstream layer. So instead ofTRANSFORMS-class=
being shown in the output, the entire key is removed from the destination.)[source::...(osx.*|sample.*.osx)]
instead of having to suppress individual keys (difficult to maintain).Allow a special wildcard stanzas that globally apply one or more keys to all subsequent stanzas. Use Case: set
index=os_<ORG>
on all existing stanzas in an inputs.conf file. Perhaps this could be setup likeAssume this will apply to all currently-known stanzas. (Immediately applied, during the merging process, not held and applied after all layers have been combined.)
Possibly allow list augmentation (or subtraction?) to comma or semicolon separated lists.
Possible filter operators include:
Down the road stuff: (Let's be careful NOT to build yet another template language...)
NOTE: This is possibly bad or misleading example as HOSTAME maybe on a deployer not on the SHC member, for example.
It may be nice to set these up and register them via decorators. Make all filter calls align with Python function calling norms (like what Jinja2 does)
Allow for standard python style function argument passing; allowing for both positional and named parameters (that is
*arg
and**kwargs
)