Comments (2)
The problem isn't with the installation. I've added a while back a default ssh key so we aren't forced to generate a new one on each VM. This default uses 2 ssh key files with names id_rsa_snowdrop_hetzner
and id_rsa_snowdrop_hetzner.pub
. If you create these 2 files with the contents from the passwordstore the process should go ahead without problems.
e.g.
pass show hetzner/id_rsa.pub > ~/.ssh/id_rsa_snowdrop_hetzner.pub
pass show hetzner/id_rsa > ~/.ssh/id_rsa_snowdrop_hetzner
chmod 600 ~/.ssh/id_rsa_snowdrop_hetzner.pub ~/.ssh/id_rsa_snowdrop_hetzner
from k8s-infra.
I adapted my script to ssh to the VM to use the common team key
#!/usr/bin/env bash
#set -x
CLOUD_PROVIDER=$1
VM_NAME=$2
SSH_KEY=~/.ssh/id_rsa_snowdrop_${CLOUD_PROVIDER}_${VM_NAME}
echo ">>> Copy the team private key"
echo "$(PASSWORD_STORE_DIR=~/.password-store-snowdrop pass show ${CLOUD_PROVIDER}/id_rsa)" > ~/.ssh/id_rsa_snowdrop_${CLOUD_PROVIDER}_${VM_NAME}
chmod 600 ~/.ssh/id_rsa_snowdrop_${CLOUD_PROVIDER}_${VM_NAME}
# Extract the IP, PORT and USER to be used to ssh
IP=$(PASSWORD_STORE_DIR=~/.password-store-snowdrop pass show ${CLOUD_PROVIDER}/${VM_NAME}/ansible_ssh_host | awk 'NR==1{print $1}')
PORT=$(PASSWORD_STORE_DIR=~/.password-store-snowdrop pass show ${CLOUD_PROVIDER}/${VM_NAME}/ansible_ssh_port | awk 'NR==1{print $1}')
USER=$(PASSWORD_STORE_DIR=~/.password-store-snowdrop pass show ${CLOUD_PROVIDER}/${VM_NAME}/os_user | awk 'NR==1{print $1}')
echo "# ssh -i ${SSH_KEY} ${USER}@${IP} -p ${PORT}"
ssh -i ${SSH_KEY} ${USER}@${IP} -p ${PORT} "${@:3}"
from k8s-infra.
Related Issues (20)
- Creating a VM shouldn't require k8s_type or k8s_version parameters HOT 1
- Wrong command logged to delete a VM from inventory HOT 3
- Some parameters should become optional when we create a new VM on RHOS HOT 3
- Failed to connect to the host via ssh: no such identity: /Users/cmoullia/.ssh/id_rsa_snowdrop_openstack: No such file or directory HOT 3
- Remove information from the hosts file HOT 1
- Should we move the cloud_infra Ansible collection to it's own repository HOT 5
- kind.sh - invalid portMapping: port mapping with same listen address, port and protocol already configured: 0.0.0.0:0/TCP
- Support to patch/provide another kind config HOT 2
- Improper commands showed !
- Rename the RHOS test-adm-key
- Replace the Calico Operator based installation with the kubernetes manifests HOT 1
- Add support for floating_ip in the Ansible Inventory
- Check if community.hrobot ansible collection is required
- OCP installation
- ERROR! the role 'passstore/ansible_inventory' was not found HOT 3
- Support the parameter clusterOSImage for ocp openstack installation
- VM with Fedora-38-latest doesn't allow ssh
- Improve docs for OCP installation
- $HOME/.pyvirt/bin/python3.11: No such file or directory ... The following modules failed to execute: ansible.legacy.setup HOT 4
- Find a way to grab the new certificate generated by Lets'encrypt to update our cluster (or a cluster)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from k8s-infra.