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

repository module support for RHEL, Debian #1224

Closed
24sama opened this issue Apr 19, 2022 · 0 comments · Fixed by #1222
Closed

repository module support for RHEL, Debian #1224

24sama opened this issue Apr 19, 2022 · 0 comments · Fixed by #1222

Comments

@24sama
Copy link
Collaborator

24sama commented Apr 19, 2022

Your current KubeKey version

2.0.0

Describe this feature

At present, kk can't install the Linux packages in RHEL and Debian. Need repository module support for RHEL, Debian.

Describe the solution you'd like

I think the following code can solve this problem:

func New(os string) (Interface, error) {
	switch os {
	case "ubuntu", "debian":
		return NewDeb(), nil
	case "centos", "rhel":
		return NewRPM(), nil
	default:
		return nil, fmt.Errorf("unsupported operation system %s", os)
	}
}

Additional information

No response

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 a pull request may close this issue.

1 participant