-
Need to document how once a new salt extension is created with |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
In the past, the process regarding extensions extracted from Salt core has been:
Then:
We now have more people that can create repositories. There might also be new extensions, not based on previous modules. Some questions we should address:
Related: We will need a centralized place to put all this documentation. I'd suggest including it in the Copier template repository and hosting the built docs on GitHub Pages (salt-extensions/salt-extension-copier#17). |
Beta Was this translation helpful? Give feedback.
-
@lkubb Wondering about these steps
Just used the copier, did not do extension_migration, this was for a new extension for Cassandra. Wondering why need extension_migration, why not have copier do that ?, as part of it's steps. Also the instructions in https://github.com/salt-extensions/extension_migration README
don't correspond to those in copier, for example |
Beta Was this translation helpful? Give feedback.
-
The main purpose of the https://github.com/salt-extensions/extension_migration script is to preserve the Git history (so Unfortunately, that tool was created before the great module purge PR and no longer works because it expects the modules to be present in the repo. One could tweak the tool and make it rewind the Salt repo checkout to a pre-purge revision, but that needs some effort and the tool still will be not very flexible. Instead, I looked at how it works internally and described how to do the same steps manually in a much more fine-grained way. It will be included in the upcoming guide that jeanluc is going to publish soon. |
Beta Was this translation helpful? Give feedback.
-
@max-arnold I thought about that, and pulled my cassandra from the 3007.x branch, given there are unlikely to be any changes to it, and if so, will fix up by hand. However, that doesn't solve the problem in general for other developers, and perhaps have to forego the github history due to the great purge (self-inflicted wound). I was planning on looking at the changes between 3007.x and master for the files I have pulled for the extension, for a large set of files, that is quite labor intensive, but it may be a "don't care", given the extension will drift as it is developed from what was originally there. |
Beta Was this translation helpful? Give feedback.
We're using the Copier CLI for simplicity (writing a dedicated interface by using it as a lib would be needless work imo). Since Copier templates are mostly declarative, we would need some ugly hacks to integrate the one-off extraction step into template rendering. We could bundle the script in the
salt-extension-copier
repository though to avoid having separate contact points.Yeah, that's suboptimal. Agreed about DRY, but I think we should centralize the docs on Salt extension creation/ex…