Skip to content
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

Feature: Air Gap Installation #165

Merged
merged 25 commits into from
Jan 2, 2022
Merged

Conversation

crutonjohn
Copy link
Collaborator

@crutonjohn crutonjohn commented Dec 15, 2021

Air Gap Support

Bring your own binary

Summary

The aim of this feature is to support users who are unable to contact or download anything from Github in the middle of deploying their k3s cluster.

Setting the k3s_airgap var to true will expect the k3s binary to live in files/k3s as is the default behavior for the ansible.builtin.copy module.

Issue type

  • Feature

Test instructions

Simply changing the k3s_airgap var to true and placing k3s binary in files/ will allow you to run the role as expected, skipping steps that are normally reserved for version checking and sanity checking as it relates to downloading the binary.

Acceptance Criteria

  • GitHub Actions Build passes.
  • Documentation updated.
  • Tested in a real air gapped environment

Additional Information


airgap installs allow users to deploy k3s in a situation where the server is not internet connected
and therefore unable to download anything externally
this is to allow the role to proceed as if the binary was downloaded as expected from the web
in an air gapped environment the machine will not be able to check sha checksums or information
around the binary so we should ignore the tasks in that scenario
in an air gapped environment the machine will not be able to check sha checksums or information
around the binary so we should ignore the tasks in that scenario
@crutonjohn
Copy link
Collaborator Author

This still has some more things to go, but I wanted to get it on your radar @xanmanning

checking release version and tasks that depend on that check do not need to function since we won't
be aware of the version in an airgapped deployment
@crutonjohn crutonjohn changed the title Feat/air gap Feature: Air Gap Installation Dec 16, 2021
@xanmanning
Copy link
Member

Hi @crutonjohn do you want to merge in changes from main on this repo to fix the molecule tests?

@crutonjohn
Copy link
Collaborator Author

@xanmanning i believe i got it

let me know if there is anything else i can help with

Copy link
Member

@xanmanning xanmanning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@xanmanning xanmanning merged commit 3be75a8 into PyratLabs:main Jan 2, 2022
@crutonjohn crutonjohn deleted the feat/air-gap branch January 4, 2022 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants