-
Notifications
You must be signed in to change notification settings - Fork 1
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
BSDify the common.yml
playbook
#8
Comments
That should be fairly simple to do in the DebOps project directory. You will have to copy the Let me know if that method works. :) |
Hi, thanks! I do believe that would work. However, I believe there's a bit of confusion about how I intend this project to be used -- clearly because what I intend is in my head instead of in a README somewhere. Issue #11 is about this confusion too. @drybjed, I would actually really appreciate your input on what I intend, as I'm new and all that, so I don't actually know if it's a good idea. Here's an attempt at explaining it: I assume that what you think I am doing is overriding things from debops in the user's project directory. This is an easier approach, but it is not what I want in the end: Ideally, I would like the user to have a "lean & clean" project directory, just like with upstream debops: they only put their own modifications related to their own infrastructure in there. I do not want them to have my code in their project directory. Instead, I want them to use my forked debops repo instead of the upstream debops (not "on top of"), by putting it into Why: because that way the user doesn't have to manually merge my changes into their project repositories. Is this a good approach (even though more difficult for me as the developer), or am I overdoing things? |
If you want to manage a The workflow of pulling DebOps changes to your own fork and applying BSD-related changes on top of it would be as follows:
Of course after that last step you would have to fix any merge conflicts when something in the upstream project changes. One step up from that would be a way to have your own |
@drybjed Thank you! Re workflow: That's what I've been doing, except I've been merging instead of rebasing. I can switch to rebasing, if that's better. (Probably I could even rewrite the history of my fork, as I doubt anyone has cloned it -- but I'm not sure I want to risk that.) The |
Hmm, indeed, rebasing already public changes might be a bad idea. Merging new changes with Currently DebOps is designed with two "layers" in mind: the DebOps monorepo as a base, and the DebOps project directory on top of that as the end result. I wonder if changing this system and adding a middle layer that would allow remixes(?) as BSDops between the DebOps base and the project directory could be an interesting proposal... Although it all hinges on Ansible allowing some intelligent playbook composition vs direct playbook replacement as it's done currently. In theory there could be a custom plugin similar to That way you could have an additional set of playbooks in separate directory |
I think I might just risk it and rebase, I very much doubt anyone is seriously using this (otherwise they'd be complaining that the site playbook isn't working, I guess?) I guess it's better to do it now than later. I didn't know that rebasing would be preferred to merging. I suppose I should have asked, I just somehow really didn't expect you to be interested in helping me. Adding a middle layer might be interesting, though yes, to make it practical Ansible would need to allow more granular composition for that. It also seems like more work for you upstream devs. I am currently working with the assumption that there are two layers and I want to be the bottom one, so that the top one can stay clean, and hopefully I'll figure out a way to make that workflow easier for me. |
Rebasing is actually bad if you want your project to be public, because rebase rewrites the history, and you should never do that in a public project. This article explains differences between merging and rebasing: https://dev.to/neshaz/git-merge-vs-git-rebase-5134 In DebOps, I'm doing merges in the main I'm interested in making DebOps more user-friendly and accessible; having a good way to handle forks is one way to do that. I cannot promise that required changes will be done right away, but I'm open to interesting PRs in that regard. |
Re rebasing: right, the problem would still exist later, even if it wouldn't be a problem now because I probably have no users now. I will stick with merging then. Thanks! Re "fork-friendliness": I see :-) I feel a bit too new to everything to propose things at this point, but I will try to do a better job with asking before coding. (This is difficult for me!) Thank you for your help, I really appreciate it! You are definitely making things user-friendly and accessible for me :D |
Make it possible to successfully run
debops
against a FreeBSD host when it's not in any groups.The text was updated successfully, but these errors were encountered: