Closed berendt closed 6 years ago
You should add you private key to openstack
@klippo Why should I add the private key to OpenStack? This is not possible. The Ansible playbooks has to know where to find the private key to be able to connect to the instances. Where can I set the path to this private key?
Sorry.. I misread. Your ssh-key usually go in ~/.ssh. But it can be placed anywhere and be specified using ssh -i your_key
. before this works you need to upload your public key in openstack.
Yes, initial SSH key creation and upload to OpenStack is not really in the scope of these playbooks for now. Here's an example form the CI configuration on how to do it: https://github.com/infraly/k8s-on-openstack/blob/master/.travis.yml#L20.
You could put your private key anywhere and define it in ~/.ssh/config. IdentifyFile /path/to/private/key
In the REAMDE: "KEY: name of an existing SSH keypair".
But where do you have to place the private ssh key?