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 request: ability to provide sudo password #387

Closed
2 of 4 tasks
AyanamiAkaha opened this issue Jul 30, 2022 · 4 comments
Closed
2 of 4 tasks

Feature request: ability to provide sudo password #387

AyanamiAkaha opened this issue Jul 30, 2022 · 4 comments
Labels
duplicate This issue or pull request already exists

Comments

@AyanamiAkaha
Copy link

Feature request

Currently if the remote server requires password for sudo k3sup fails with an error

sudo: no tty present and no askpass program specified
Error: error received processing command: Process exited with status 1

Would it be possible to have a flag to provide password for sudo, something like --ask-become-pass in ansible?

Are you a GitHub Sponsor (Yes/No?)

  • Yes
  • No

My environment

  • k3sup version:
Version: 0.12.0
Git Commit: c59d67b63ec76d5d5e399808cf4b11a1e02ddbc8
  • What Kubernetes distribution, client and server version are you using?

local:

Client Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.3", GitCommit:"aef86a93758dc3cb2c658dd9657ab4ad4afc21cb", GitTreeState:"clean", BuildDate:"2022-07-13T14:30:46Z", GoVersion:"go1.18.3", Compiler:"gc", Platform:"linux/amd64"}
Kustomize Version: v4.5.4

remote:

Client Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.3+k3s1", GitCommit:"990ba0e88c90f8ed8b50e0ccd375937b841b176e", GitTreeState:"clean", BuildDate:"2022-07-19T01:10:03Z", GoVersion:"go1.18.1", Compiler:"gc", Platform:"linux/amd64"}
Kustomize Version: v4.5.4
Server Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.3+k3s1", GitCommit:"990ba0e88c90f8ed8b50e0ccd375937b841b176e", GitTreeState:"clean", BuildDate:"2022-07-19T01:10:03Z", GoVersion:"go1.18.1", Compiler:"gc", Platform:"linux/amd64"}
  • What OS or type or VM are you using for your cluster? Where is it hosted? (for k3sup install/join):

hetzner dedicated server / debian

  • Operating System and version (e.g. Linux, Windows, MacOS):
Linux hibiki 4.19.0-21-amd64 #1 SMP Debian 4.19.249-2 (2022-06-30) x86_64 GNU/Linux

PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/

"Be part of the solution"

Subject to approval, are you willing to work on a Pull Request for this issue or feature request?

  • Yes
  • No

(I currently neither have enough skill in go, nor time)

@airtonix
Copy link

I imagine this makes k3sup a nonstarter on OS not deployed via couldinit

@alexellis
Copy link
Owner

See #298

@alexellis
Copy link
Owner

/add label: duplicate

@derek derek bot added the duplicate This issue or pull request already exists label Aug 29, 2022
@alexellis
Copy link
Owner

@airtonix of course you can use k3sup with cloudinit

Configure passwordless sudo in your script / user configuration

Or use the --local flag

If you want to keep asking for things, become a sponsor.

Repository owner locked and limited conversation to collaborators Aug 29, 2022
@alexellis alexellis closed this as not planned Won't fix, can't repro, duplicate, stale Aug 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants