• Joined on 2021-11-20
ungleich-gitea commented on issue ungleich-public/cdist#88 2021-11-20 15:37:33 +00:00
question: what am I doing wrong?

@ander Look what seems to work:

if [ -f "$__object/parameter/foo" ]
then
    while read -r line 
ungleich-gitea commented on issue ungleich-public/cdist#88 2021-11-20 15:37:31 +00:00
question: what am I doing wrong?

@ander @nico @steven Got it!

$ find ~/.cdist/cache/90cb04f9d8b4a35c89571b1c6fb9927c/ -name…
ungleich-gitea commented on issue ungleich-public/cdist#88 2021-11-20 15:37:30 +00:00
question: what am I doing wrong?

assigned to @poljakowski

ungleich-gitea commented on issue ungleich-public/cdist#88 2021-11-20 15:37:29 +00:00
question: what am I doing wrong?

I think we cannot distinguish such stdin from e.g. heredoc stdin. Or am I missing something?

@nico @steven We should add this as 'Caveats' to cdist type chapter.

ungleich-gitea commented on issue ungleich-public/cdist#88 2021-11-20 15:37:27 +00:00
question: what am I doing wrong?

@ander Can you write your solution with for loop?

ungleich-gitea commented on issue ungleich-public/cdist#88 2021-11-20 15:37:26 +00:00
question: what am I doing wrong?

mentioned in merge request !784

ungleich-gitea commented on issue ungleich-public/cdist#88 2021-11-20 15:37:25 +00:00
question: what am I doing wrong?

We should document this. It's known since forever. The workaround e.g.:


# Generate and configure enabled host keys
comm -23 "$__object/files/enable-host-key" "$__object/files/disable-host-key"…
ungleich-gitea commented on issue ungleich-public/cdist#88 2021-11-20 15:37:23 +00:00
question: what am I doing wrong?

@steven Thanks! I will update documentation.

ungleich-gitea commented on issue ungleich-public/cdist#88 2021-11-20 15:37:22 +00:00
question: what am I doing wrong?

This is actually not cdist specific, but happens the same way with ssh - i.e. anything that likes to read stdion in a loop that you input stuff in

ungleich-gitea commented on issue ungleich-public/cdist#88 2021-11-20 15:37:21 +00:00
question: what am I doing wrong?

closed via merge request !784

ungleich-gitea commented on issue ungleich-public/cdist#88 2021-11-20 15:37:19 +00:00
question: what am I doing wrong?

mentioned in commit 3c8b470367b755e4011b443426b16128a5e5962a

ungleich-gitea commented on issue ungleich-public/cdist#88 2021-11-20 15:37:18 +00:00
question: what am I doing wrong?

Today I became aware of something new :)

ungleich-gitea commented on issue ungleich-public/cdist#88 2021-11-20 15:37:17 +00:00
question: what am I doing wrong?

@nico Yee, it's not cdist specific, but it's specific for cdist that types always consume stdin.

ungleich-gitea commented on issue ungleich-public/cdist#88 2021-11-20 15:37:15 +00:00
question: what am I doing wrong?

of course i can

ungleich-gitea commented on issue ungleich-public/cdist#87 2021-11-20 15:37:14 +00:00
idea: make "deprecated" marker into script

also, there is probably only 2 more __acl users in the world besides me 😈

ungleich-gitea commented on issue ungleich-public/cdist#87 2021-11-20 15:37:12 +00:00
idea: make "deprecated" marker into script

mentioned in merge request !785

ungleich-gitea commented on issue ungleich-public/cdist#87 2021-11-20 15:37:11 +00:00
idea: make "deprecated" marker into script

How about trying something like the following. Since type parameters are handled by python core then in that code we could see how easy/hard it is to support parameter deprecation. E.g. if parameter…

ungleich-gitea commented on issue ungleich-public/cdist#87 2021-11-20 15:37:10 +00:00
idea: make "deprecated" marker into script

imho that's too much.

i could just leave old parameters intact, create type explorer which terminates if old explorers are used and call it a day.

ungleich-gitea commented on issue ungleich-public/cdist#87 2021-11-20 15:37:08 +00:00
idea: make "deprecated" marker into script

so, basically it's a question about how much legacy support we want to do.

@nico what's your take on this? also see first comment @ !785

ungleich-gitea commented on issue ungleich-public/cdist#87 2021-11-20 15:37:07 +00:00
idea: make "deprecated" marker into script

There is a general rule for this in cdist:

  • In general, we try not to break the user ** More often than obvious at first sight, we can avoid breaking the user (see below)
  • If we decide to break…