-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add gitlab file plugin #324
Add gitlab file plugin #324
Conversation
a715b94
to
87f78b6
Compare
87f78b6
to
a6faba3
Compare
Hello, Regards |
By the way, nice work. This is something I have been wanting for a while now :) I just want to discuss the possibility of generalizing this so it's not gitlab specific :) |
Yes, it is a git repository and I agree that there is a need to have a generic git plugin that is not dependend on Gitlab or others.
But in my usecase, we are deploying nornir in multiple small containers, let’s say they are workers. I don’t want to have the full git toolset in those containers and I also don’t want to have the full repository pulled into the container.
That’s why interfacing with gitlab through its API made a lot of sense to me.
I understand that it is very specific for my usecase. If someone else has a similar requirements but uses a different git provider, then they can’t reuse this.
So to conclude:
Yes I would love to have a generic implementation , which doesn’t depend on a specific provider. But I also think there are usecases for specific implementations for different git providers, if they provide an API to interface with them.
… On 22 Feb 2019, at 09:24, David Barroso ***@***.***> wrote:
Hello,
I have a couple of questions. I am not familiar with gitlab but my understanding is that it's a git repository, isn't it? If yes, why not a generic set of functions to deal with git repositories that can be reused?
Regards
David
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
ok, finally found some time to look into this a bit more in depth. A few comments:
https://github.com/nornir-automation/nornir/blob/76247d3684ff06e2f2b43908bc9bf838ee2badaf/nornir/plugins/tasks/data/echo_data.py which renders: https://nornir.readthedocs.io/en/stable/plugins/tasks/data/echo_data.html and is tested: https://travis-ci.org/nornir-automation/nornir/jobs/498697369#L553 Not sure how familiar you are with notebooks but happy to help out. If you don't have the time or the energy we can proceed as it is, not a big deal. |
The dedicated section definitely makes sense to me, but personally I would name it version_control. I think that name covers the package a bit better no? It can be used for more then 'source'. |
Yes, I think that's better too. |
e669949
to
4ec40cd
Compare
4ec40cd
to
7931006
Compare
c82adbb
to
60caf7c
Compare
Moved plugin to version_control directory & created documentation. |
Awesome work so far! Let me know when you are done :) |
a21baae
to
050df21
Compare
050df21
to
89b825c
Compare
…asks_files_gitlab
I'm done. More info can be found here: There seem to be multiple issues opened for this with poetry as well: |
Impressive job! Looks like the issue with poetry is solved :) |
I have been using this plugin mainly for backing up device configurations and saving of staged configurations in a git repo on Gitlab.
Thought it might be useful for other people, so I'm sharing this.
A quick example to show how this can be used