I already a bit further by changing the /etc/ansible/host file to use centos 
and sudo.
Now I've edited the standard private key that ansible will use 
(/etc/ansible/ansible.cfg). But the problem is that my master is using a 
different key than my nodes. 

So can someone explain me how to use 2 keys in one inventory of ansible? 
My inventory looks like: "Example 1. Single Master and Multiple Nodes Inventory 
File"

On 
https://docs.openshift.com/enterprise/3.0/install_config/install/advanced_install.html


From: [email protected]
To: [email protected]
Subject: RE: Installation OpenShift Origin 1.1
Date: Mon, 1 Feb 2016 14:26:57 +0100




I do not really understand your answer. I'm searching for a construction to 
allow ansible to connect to my hosts (by using the key which is on my master: 
/root/.ssh/key

From: [email protected]
To: [email protected]; [email protected]
Subject: Re: Installation OpenShift Origin 1.1
Date: Mon, 1 Feb 2016 13:21:56 +0000








Make sure you are using the same name to copy the SSH keys as you do when 
configuring the ansible installation.  Don't use the IP address in one place 
and use the hostname in the other.








Gary Franczyk

Senior Unix Administrator, Infrastructure

Availity | 10752 Deerwood Park Blvd S. Ste 110, Jacksonville FL 32256

W 904.470.4953 | M 561.313.2866



[email protected]








From: <[email protected]> on behalf of Lorenz Vanthillo 
<[email protected]>

Date: Monday, February 1, 2016 at 8:15 AM

To: "[email protected]" <[email protected]>

Subject: Installation OpenShift Origin 1.1







I want to install OpenShift Origin 1.1

But I got stuck here:

PLAY [Configure docker hosts] ************************************************* 

fatal: [ip] => SSH Error: Permission denied 
(publickey,gssapi-keyex,gssapi-with-mic).

    while connecting to 172.xxx.xxx.xxx



The problem seems to me the following.

In previous installations I performed:

- ssh key-gen on the master

- copy the content of .pub to the nodes.

- SSH is possible





Now I have copied the key of the nodes (are using the same key) to my master.

So now I can access the nodes from my master using that key:

ssh -i key.pem centos@ec2...





How do I have to fix this issue? Can I tell ansible that it needs to use a key 
etc.?

Or is the only solution by coping the .pub to my nodes?






The information contained in this e-mail may be privileged and confidential 
under applicable law. It is intended solely for the use of the person or firm 
named above. If the reader of this e-mail is not the intended recipient, please 
notify us immediately by returning the e-mail to the originating e-mail 
address. Availity, LLC is not responsible for errors or omissions in this 
e-mail message. Any personal comments made in this e-mail do not reflect the 
views of Availity, LLC.
                                                                                
  
_______________________________________________
users mailing list
[email protected]
http://lists.openshift.redhat.com/openshiftmm/listinfo/users

Reply via email to