-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Fix LXC container implementations #231
Fix LXC container implementations #231
Conversation
Add new line to lxc.yml
Its always the newlines..
We should mirror the deployment task
remote_user: "{{ proxmox_lxc_ssh_user }}" | ||
roles: | ||
- role: reset_proxmox_lxc | ||
when: proxmox_lxc_configure |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this always run? I suppose there is a chance that the user configured these values outside of this playbook, and this would remove them
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like it should, only because I consider this playbook as a it should configure and manage everything. If we don't we could leave security issues where they don't need to exist without user knowledge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Think I agree, think the logic here should be that we assume these hosts are dedicated to k3s, so we should make sure this stuff is torn down through the reset process. Don't feel too strongly here though. Would just mean removing this when condition.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That or the user just does not specify that the LXC is configured and hits those functions manually. I personally do this as the LXCs are dedicated solely to K3s, as I imagine most people do.
One super small comment, but I'm good with these changes as is 👍 |
Looks like we have some lint. We aren't using the literal |
Im seeing in a lot of other files they are used interchangeably, but the standard for Ansible is True/False. Would you like me to swap these from True/False to Yes/No? |
I'd just leave the ones in place so that this PR only contains your changes. We have an issue to change them all at once, which will probably require new lint rules. too. #204 If you install all of the dependencies it will fix and fail on commits, rather than later in CI. |
Ok that should be the last lint error, hopefully. |
Looks like the cleanup is failing
|
@Nomsplease one small fix and then it's ready to go! |
@timothystewart6 ill get this corrected and update when done. Did you run locally and get an error? Curious how that step failed for you. |
@Nomsplease you can see it failing in CI at this line |
(expand and look at line 956) |
Updated branch and changed how we handle the rc.local file. This is a good catch because we should not be touching this file on a host that was not setup with lxc in the first place. |
Co-authored-by: Simon Leiner <[email protected]>
We're so close to the finish line. What's left? |
All we had were the other review changes, but I think we are good to go on the functionality that was intended in this change. |
I pulled the current upstream into this branch. One last round of checks should not hurt here and we can make the merge as smooth as possible. |
Thank you all for working through this. If we need to change a pattern, we can add a new issue for it! Thanks again everyone! |
I moved branches around and it caused quite the Chaos on this PR. This a re-open of #219 with the same changes, just moved to a different branch
Proposed Changes
Checklist
site.yml
playbookreset.yml
playbook