cdist does not support IPv6 target host address #161

Closed
opened 2021-11-20 15:20:29 +00:00 by ungleich-gitea · 2 comments

Created by: darko-poljak

When IPv6 target host address is specified then cdist does not work.
This is because of scp command.
The error is:
cp: cannot create regular file '::1:/var/lib/cdist/conf/explorer': No such file or directory.
This is because ':' is separator for scp command.
IPv6 address should be enclosed between '[' and ']'.
This should be done in cdist python code when constructing remote_copy command.
It should also be done in shell code in types where remote_copy command is used directly like
in __file type gencode-local.

*Created by: darko-poljak* When IPv6 target host address is specified then cdist does not work. This is because of scp command. The error is: cp: cannot create regular file '::1:/var/lib/cdist/conf/explorer': No such file or directory. This is because ':' is separator for scp command. IPv6 address should be enclosed between '[' and ']'. This should be done in cdist python code when constructing remote_copy command. It should also be done in shell code in types where remote_copy command is used directly like in __file type gencode-local.
Author
Owner

Created by: darko-poljak

PR merged.

*Created by: darko-poljak* PR merged.
Author
Owner

Created by: darko-poljak

See https://github.com/ungleich/cdist/pull/491

*Created by: darko-poljak* See https://github.com/ungleich/cdist/pull/491
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#161
No description provided.