__postfix_master interpolates variables #187

Closed
opened 2021-11-20 15:21:02 +00:00 by ungleich-gitea · 4 comments

Created by: telmich

__postfix_master mailman --type unix
--unpriv n --chroot n
--command 'pipe flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py {nexthop} {user}'

results in

cdist:__postfix_master/mailman

mailman unix - n n - - pipe flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py

/cdist:__postfix_master/mailman

-> missing the 2 vars

*Created by: telmich* __postfix_master mailman --type unix \ --unpriv n --chroot n \ --command 'pipe flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py ${nexthop} ${user}' results in # cdist:__postfix_master/mailman mailman unix - n n - - pipe flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py # /cdist:__postfix_master/mailman -> missing the 2 vars
ungleich-gitea added the
Stale
label 2021-11-20 15:21:02 +00:00
Author
Owner

closed

closed
Author
Owner

Created by: asteven

Nico Schottelius wrote on 11/25/2014 11:26 PM:

@asteven wondering, couldn't / shouldn't we use either __block or __line for backing up __postfix_master? Besides the comment field, which could even be used with __line, I see nothing which could in trigger multiline stuff

__block should work. Don't see how we could use __line here. You either
manage named entries, or you have to parse the whole line/entry and
decide if it has changed or not and so on.

So either, __block, or parse line into each segment and compare is vs
should for each segment.

Cheers,
Steven

*Created by: asteven* Nico Schottelius wrote on 11/25/2014 11:26 PM: > @asteven wondering, couldn't / shouldn't we use either __block or __line for backing up __postfix_master? Besides the comment field, which could even be used with __line, I see nothing which could in trigger multiline stuff __block should work. Don't see how we could use __line here. You either manage named entries, or you have to parse the whole line/entry and decide if it has changed or not and so on. So either, __block, or parse line into each segment and compare is vs should for each segment. Cheers, Steven
Author
Owner

Created by: telmich

@asteven wondering, couldn't / shouldn't we use either __block or __line for backing up __postfix_master? Besides the comment field, which could even be used with __line, I see nothing which could in trigger multiline stuff

*Created by: telmich* @asteven wondering, couldn't / shouldn't we use either __block or __line for backing up __postfix_master? Besides the comment field, which could even be used with __line, I see nothing which could in trigger multiline stuff
Author
Owner

Created by: telmich

If I see it correctly, __postfix_master is a re-implementation of __block

*Created by: telmich* If I see it correctly, __postfix_master is a re-implementation of __block
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ungleich-public/cdist#187
No description provided.