• Joined on 2021-11-20
ungleich-gitea commented on issue ungleich-public/cdist#84 2021-11-20 15:36:38 +00:00
Implementing a shell function library

Yes, if we will add support for remote shell lib, then we should separate local and remote lib.

I include our BDFLs :) @nico and @steven. What are your thoughts on this?

ungleich-gitea commented on issue ungleich-public/cdist#84 2021-11-20 15:36:36 +00:00
Implementing a shell function library

Not sure I like the double underscore prefix. Makes it look like a type which it is not.

ungleich-gitea commented on issue ungleich-public/cdist#84 2021-11-20 15:36:35 +00:00
Implementing a shell function library

I don't think there's enough of them to split them into different files. IMHO just have one lib.sh

ungleich-gitea commented on issue ungleich-public/cdist#84 2021-11-20 15:36:34 +00:00
Implementing a shell function library

I think I'm -1 on having a remote lib. Don't see the point/use case. The generated code should be as simple/stupid as possible. All heavy lifting should be done in the gencode-* scripts. If you think…

ungleich-gitea commented on issue ungleich-public/cdist#84 2021-11-20 15:36:33 +00:00
Implementing a shell function library

While I see the potential value of such a lib.sh library, aren't we in the progress of moving types to python? Are we feeding a dead animal by starting this lib.sh now?

ungleich-gitea commented on issue ungleich-public/cdist#84 2021-11-20 15:36:31 +00:00
Implementing a shell function library

@steven The reason for having a remove lib is for explorers.

While the gencode-* scripts usually do one specific job, they need information from explorers. Some pieces of information are needed by…

ungleich-gitea commented on issue ungleich-public/cdist#84 2021-11-20 15:36:30 +00:00
Implementing a shell function library

Moving types to Python?
Does this mean that in the future Python will be required to be installed on all target hosts?

ungleich-gitea commented on issue ungleich-public/cdist#84 2021-11-20 15:36:29 +00:00
Implementing a shell function library

No. Target hosts requirements will always stay minimal.

We (Darko) has been experimenting rewriting some of the types in Python. In the last release the __file type is coded in python.

ungleich-gitea commented on issue ungleich-public/cdist#84 2021-11-20 15:36:27 +00:00
Implementing a shell function library

Ah, then I'm relieved. The main reason for me to use cdist is that I can use it to configure devices which will never be capable of running Python.

So eventually manifests and gencode-* scripts can…

ungleich-gitea commented on issue ungleich-public/cdist#84 2021-11-20 15:36:26 +00:00
Implementing a shell function library

Yes

ungleich-gitea commented on issue ungleich-public/cdist#84 2021-11-20 15:36:23 +00:00
Implementing a shell function library

@steven @ssrq Regarding lib, I am still not sure, to have lib, or not to have lib.

I agree that remote code (explorers and code-remote) should be flat, where most, if not all, the logic is done by…

ungleich-gitea commented on issue ungleich-public/cdist#84 2021-11-20 15:36:22 +00:00
Implementing a shell function library

I believe shell types won't be removed from cdist, so people will continue writing types in shell.

ungleich-gitea commented on issue ungleich-public/cdist#84 2021-11-20 15:36:21 +00:00
Implementing a shell function library

Regarding the copying library functions to the remote host, this could be circumvented by implementing a simple preprocessor à la cpp.

ungleich-gitea commented on issue ungleich-public/cdist#84 2021-11-20 15:36:19 +00:00
Implementing a shell function library

unassigned @poljakowski

ungleich-gitea commented on issue ungleich-public/cdist#84 2021-11-20 15:36:18 +00:00
Implementing a shell function library

mentioned in merge request !896

ungleich-gitea commented on issue ungleich-public/cdist#84 2021-11-20 15:36:17 +00:00
Implementing a shell function library

mentioned in issue #827

ungleich-gitea commented on issue ungleich-public/cdist#84 2021-11-20 15:36:16 +00:00
Implementing a shell function library

mentioned in merge request !920

ungleich-gitea commented on issue ungleich-public/cdist#83 2021-11-20 15:36:14 +00:00
Support installation from Git using Pip

@lubo This is because cdist uses generated version file. After cloning and before runningo python setup.py install one should create version file with `make…

ungleich-gitea commented on issue ungleich-public/cdist#83 2021-11-20 15:36:12 +00:00
Support installation from Git using Pip

Well, if you wanna do it yourself, do something like this (but with setuptools, I don't have a more up-to-date article…