• Joined on 2021-11-20
ungleich-gitea commented on issue ungleich-public/cdist#73 2021-11-20 15:34:49 +00:00
[feature] Make types more discoverable

@ander You are basically describing ls and I really like it. Something on the line of

  • cdist ls --types
  • cdist ls --all (default?)
  • cdist ls --manifests
ungleich-gitea commented on issue ungleich-public/cdist#73 2021-11-20 15:34:47 +00:00
[feature] Make types more discoverable

@ander I like it. It reminds me of https://www.cdi.st/manual/latest/man1/cdist-dump.html, but this time for conf directories.

ungleich-gitea commented on issue ungleich-public/cdist#73 2021-11-20 15:34:46 +00:00
[feature] Make types more discoverable

@nico Should we implement such commands as cdist core shell scripts for which cdist python implementation is a wrapper? We can write cdist core part that detects core/support commands. Then new…

ungleich-gitea commented on issue ungleich-public/cdist#73 2021-11-20 15:34:45 +00:00
[feature] Make types more discoverable

Then we can also migrate cdist-dump to cdist dump, as such command.

YES PLEASE

one utility tule rule them all

ungleich-gitea commented on issue ungleich-public/cdist#73 2021-11-20 15:34:43 +00:00
[feature] Make types more discoverable

we have cdist inventory list. ls vs list? make ls as alias? 🤷

for the sake of consistency, we should spell out commands and not use abbrs.

ungleich-gitea commented on issue ungleich-public/cdist#73 2021-11-20 15:34:42 +00:00
[feature] Make types more discoverable

@evilham @nico @ander Can you list what cdist list should do, what you expect from it? Should it be cdist find?

  1. find [TERM]
  2. find -g [TERM] # grep term
  3. find -p [TERM] # parameters 4.…
ungleich-gitea commented on issue ungleich-public/cdist#73 2021-11-20 15:34:41 +00:00
[feature] Make types more discoverable

IMHO it should be either cdist find or if it only works on types it should be namespaced.

e.g.

cdist types list
ungleich-gitea commented on issue ungleich-public/cdist#73 2021-11-20 15:34:39 +00:00
[feature] Make types more discoverable

cdist info

ungleich-gitea commented on issue ungleich-public/cdist#73 2021-11-20 15:34:38 +00:00
[feature] Make types more discoverable

I will add core 'libexec' support for 'libexec' directory under official 'conf' directory. Here, internal binaries/scripts should be placed. I will add core support for detecting such…

ungleich-gitea commented on issue ungleich-public/cdist#73 2021-11-20 15:34:37 +00:00
[feature] Make types more discoverable

Here is my first attempt for supporting libexec and migrating cdist-dump to libexec: 7dddcb794b.

ungleich-gitea commented on issue ungleich-public/cdist#73 2021-11-20 15:34:35 +00:00
[feature] Make types more discoverable

mentioned in merge request !824

ungleich-gitea commented on issue ungleich-public/cdist#73 2021-11-20 15:34:34 +00:00
[feature] Make types more discoverable

This helper tool does not parse cdist configuration files. Configuration directories should be specifed by command line options and/or CDIST_PATH environment variable.

that's annoying…

ungleich-gitea commented on issue ungleich-public/cdist#73 2021-11-20 15:34:33 +00:00
[feature] Make types more discoverable

@ander I realized that after creating MR for this, that it should be written in python. But then, I wanted to see a reaction :)

And since it shows type info, then it is really a cdist config info…

ungleich-gitea commented on issue ungleich-public/cdist#73 2021-11-20 15:34:31 +00:00
[feature] Make types more discoverable

One question.

What are the advantages of cdist info over maintained man page cdist-types which contains general info about types?

Yes, there are no local types (custom user types), but info…

ungleich-gitea commented on issue ungleich-public/cdist#73 2021-11-20 15:34:30 +00:00
[feature] Make types more discoverable

mentioned in merge request !825

ungleich-gitea commented on issue ungleich-public/cdist#73 2021-11-20 15:34:29 +00:00
[feature] Make types more discoverable

closed

ungleich-gitea commented on issue ungleich-public/cdist#72 2021-11-20 15:34:26 +00:00
[bug] PreOS does not appear to support a custom CONF_DIR

mentioned in merge request !821

ungleich-gitea commented on issue ungleich-public/cdist#72 2021-11-20 15:34:24 +00:00
[bug] PreOS does not appear to support a custom CONF_DIR

closed via merge request !821

ungleich-gitea commented on issue ungleich-public/cdist#72 2021-11-20 15:34:23 +00:00
[bug] PreOS does not appear to support a custom CONF_DIR

mentioned in commit 27b682bfe9593a6ba637ff583e6a9de442a81002