Only apply certain types? #185
Labels
No Label
bugfix
cleanup
discussion
documentation
doing
done
feature
improvement
packaging
Stale
testing
TODO
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: ungleich-public/cdist#185
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Created by: toupeira
If you only want to re-apply a specific type on all servers, you have the choice of either doing a full config run (which can take a long time), or using
--initial-manifest -
to supply a manifest on stdin (which might apply the type on servers that don't define it in the real manifest).It would be nice if
cdist config
had something like a--filter TYPE
argument which would read the normal manifest, but only apply the given type(s). Not sure how much effort it would be to implement this, especially because of dependencies. If you give me some pointers where to look I'll try poking around the code myself for a bit.closed
Created by: telmich
I think we will introduce a command line switch for selecting a type that wraps around the initial manifest:
cdist config --to-be-defined "__my_type --with-my-args"
The tagging approach is related, but not the same. With tagging, the dependent types, which are not matched by the selection, would not be executed (useful for install case).
Created by: asteven
I mainly need the tag based approach, but I see the use case for just running certain types.
One open/unsolved question is how to handle dependencies. What if a tagged (or selected based on type) object creates other objects? How are those treated? Should tags be inherited. Same questions/problems also apply to a possible --only-type implementation.
Created by: toupeira
I guess it can be slightly misleading since any dependent types will necessarily also have to be run, but to me that's fine.
Created by: telmich
I also think --only-type xyz makes sense.
Markus Koller [Wed, Feb 25, 2015 at 01:42:42AM -0800]:
New PGP key: 659B 0D91 E86E 7E24 FD15 69D0 C729 21A1 293F 2D24
Created by: toupeira
Interesting, though for it to be usable in the way I'm thinking of, I would
need to add --tag params to pretty much every type call. How about treating
the type name as an implicit default tag, or maybe even add an --only-type
argument?
Something related I've been thinking about is integration with cinv tags,
so I could basically define the "role" a server has through cinv, and then
have a dynamic manifest that will call the relevant types, using further
cinv tags to overwrite cdist params (e.g. SSL certificate names).
On 25 Feb 2015 09:20, "Steven Armstrong" notifications@github.com wrote:
Created by: asteven
Hi toupeira
I am are working on this. The idea is to give types a way to set tags, and cdist a way to filter/include/exclude objects based on those tags. Something like this:
In some manifest
Then when running cdist