-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix typo for instance type option in usage function * Add cloud provider option/argument and set it default for aws This commit adds the cloud provider option for the user to set different cloud provider and have `aws` as default. It also refactor the script to put aws logic to that specific cloud provider block. * Add UserKnownHostsFile=/dev/null to ssh options It should avoid retry when same IP is part of known host file ``` Add correct host key in /home/prkumar/.ssh/known_hosts to get rid of this message. Offending ED25519 key in /home/prkumar/.ssh/known_hosts:147 Password authentication is disabled to avoid man-in-the-middle attacks. Keyboard-interactive authentication is disabled to avoid man-in-the-middle attacks. UpdateHostkeys is disabled because the host key is not trusted. ``` * Use -q, quiet option for ssh command to avoid showing warning on terminal * Patch machine config for update the ssh key Till now machine config daemon was failing with error following ``` E1228 06:10:55.013342 7353 writer.go:200] Marking Degraded due to: failed to parse Ignition for validation: parsing Ignition config spec v3.2 failed with error: config is not valid Report: error at line 9 col 603: json: cannot unmarshal string into Go struct field PasswdUser.passwd.users.sshAuthorizedKeys of type []types.SSHAuthorizedKey ``` Also even we update the `/etc/machine-config/currentconfig` then as soon as the machine config operator start it replace the old ssh key. This PR make sure that ssh key is updated as per machine config operator. * Use GEN_PRIVATE_KEY for generated ssh key which is used for ssh As part of 0e92e0cb1113eda6f0243ff990c36426d704c1e4 we now update the ssh public key using machine config operator and because of that till the cluster mco is patched properly generated key is not going to work so better to use both for all ssh communication.
- Loading branch information
1 parent
c0fc289
commit eb78756
Showing
3 changed files
with
86 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters