• Joined on 2021-11-20
ungleich-gitea commented on issue ungleich-public/cdist#153 2021-11-20 15:44:21 +00:00
Feature requests and questions

Created by: telmich

@Unterstrichmoepunterstrich Not sure if I understand the request correctly - but cdist uses standard libc parsing, so it actually uses /etc/hosts by default

ungleich-gitea commented on issue ungleich-public/cdist#153 2021-11-20 15:44:20 +00:00
Feature requests and questions

closed

ungleich-gitea commented on issue ungleich-public/cdist#152 2021-11-20 15:44:18 +00:00
expose host tags in manifests

+1!

ungleich-gitea commented on issue ungleich-public/cdist#152 2021-11-20 15:44:17 +00:00
expose host tags in manifests

Created by: darko-poljak

@4nd3r beta now supports __target_host_tags env var. It contains comma separated list of target host tags. If host is not present in inventory or has no tags then this…

ungleich-gitea commented on issue ungleich-public/cdist#152 2021-11-20 15:44:16 +00:00
expose host tags in manifests

Created by: 4nd3r

space separated tags would be better imho. for example to loop through them using for a in $b etc.

will test new week, but now wilderness is calling. thanks!

ungleich-gitea commented on issue ungleich-public/cdist#152 2021-11-20 15:44:14 +00:00
expose host tags in manifests

Created by: darko-poljak

@4nd3r Since command for adding tags specifies list of tags to be comma separated list of values I exposed the same list in this env…

ungleich-gitea commented on issue ungleich-public/cdist#152 2021-11-20 15:44:13 +00:00
expose host tags in manifests

Created by: darko-poljak

@4nd3r Any news on this?

ungleich-gitea commented on issue ungleich-public/cdist#152 2021-11-20 15:44:12 +00:00
expose host tags in manifests

Created by: 4nd3r

ahaa, yes. i'm already taking advantage of $__target_host_tags in some manifests and no issues so far.

ungleich-gitea commented on issue ungleich-public/cdist#152 2021-11-20 15:44:10 +00:00
expose host tags in manifests

Created by: darko-poljak

@4nd3r Great! :) Then I am closing this issue. If you (or someone else) find some issue then open new one.

ungleich-gitea commented on issue ungleich-public/cdist#151 2021-11-20 15:44:09 +00:00
RFC: Rethink logging to be more usefull for the user

Created by: darko-poljak

@asteven

I would do it in this order, to go with convention (e.g. TRACE is finer-grained than DEBUG). I also took inspiration from…

ungleich-gitea commented on issue ungleich-public/cdist#151 2021-11-20 15:44:08 +00:00
RFC: Rethink logging to be more usefull for the user

Created by: telmich

Just my 2 cent: if python already defines 5 log levels, I suggest to use them.

I don't see an advantage in creating custom levels - prove me wrong, but simplicity usually…

ungleich-gitea commented on issue ungleich-public/cdist#151 2021-11-20 15:44:06 +00:00
RFC: Rethink logging to be more usefull for the user

Created by: darko-poljak

@telmich There is no TRACE log level. I would also remove VERBOSE_INFO and add only TRACE.

ungleich-gitea commented on issue ungleich-public/cdist#151 2021-11-20 15:44:05 +00:00
RFC: Rethink logging to be more usefull for the user

Created by: darko-poljak

@asteven @telmich The following?

ERROR = 40 (cdist level -1) WARNING = 30 (cdist level 0, default - for simplicity for now WARNING and ERROR are united in lowest and…

ungleich-gitea commented on issue ungleich-public/cdist#151 2021-11-20 15:44:04 +00:00
RFC: Rethink logging to be more usefull for the user

Created by: telmich

ok with me

ungleich-gitea commented on issue ungleich-public/cdist#151 2021-11-20 15:44:02 +00:00
RFC: Rethink logging to be more usefull for the user

Created by: asteven

@telmich there is nothing wrong with creating custom logging levels. What the end user cares about is INFO (the new one) and ERROR. Everything else is basically just for…

ungleich-gitea commented on issue ungleich-public/cdist#151 2021-11-20 15:44:01 +00:00
RFC: Rethink logging to be more usefull for the user

Created by: asteven

@darko-poljak Who said TRACE is finer-grained than DEBUG? There's no law that dictates what log levels are called.

I based the names and order on…

ungleich-gitea commented on issue ungleich-public/cdist#151 2021-11-20 15:44:00 +00:00
RFC: Rethink logging to be more usefull for the user

Created by: asteven

What about:

ungleich-gitea commented on issue ungleich-public/cdist#151 2021-11-20 15:43:59 +00:00
RFC: Rethink logging to be more usefull for the user

Created by: darko-poljak

@asteven As it seems most logging frameworks use TRACE < DEBUG. SLF4J, Logback, log4j, Apache Commons Logging, Log4Net, NLog, apache httpd as an application example, as…

ungleich-gitea commented on issue ungleich-public/cdist#151 2021-11-20 15:43:57 +00:00
RFC: Rethink logging to be more usefull for the user

Created by: darko-poljak

@asteven @telmich I redefined cdist logging facility. Take a look: https://github.com/ungleich/cdist/compare/master...darko-poljak:better-logging

If you have no remarks…

ungleich-gitea commented on issue ungleich-public/cdist#151 2021-11-20 15:43:56 +00:00
RFC: Rethink logging to be more usefull for the user

Created by: darko-poljak

Branch better-logging merged to master.