cancel
Showing results for 
Search instead for 
Did you mean: 
FS3
Mission Specialist
Mission Specialist
  • 2,505 Views

How to configure sshKey and pullSecret in the install-config.yaml?

Jump to solution

Hello guys,

I have googled about this, but in vain. Documentation  is not clear on this.

I'm following the guide for installing on Bare metal, user provisioned infrastructure. Version 4.10.

 

On the install-config.yaml file can someone post an example of configuration of sshKey and pullSecret?

For ssKey i have tried:

- /root/.ssh/id_rsa

- ../.ssh/id_rda (path relative to the install dir)

- Pasting the entire ssh key.

 

For pullSecret, i have the file itselft on the same dir. Have tried some examples, but all fail. Can someone please post an example?

Labels (4)
1 Solution

Accepted Solutions
FS3
Mission Specialist
Mission Specialist
  • 2,488 Views

Replying to myself. Got the solution, so this might help whoever comes here by googling.

 

pullSecret should have the entire contents of the pull-secret file surroung by single quotes

Same for sshKey, should be done with the public ssh key. Stupidly, i was using the private...

So, examples:

 

pullSecret: '{"auths":{"cloud.openshift.com":{"auth":"b3BlbnNoaW   ...(rest of the contents here) ...    amdDQQ==","email":"user@example.com"}}}'

Notice the additional single quotes in the begginig and end.

 

sshKey: "ssh-rsa AAAAB3NzaC1yc2EAAA    ...(rest of the contents here) ...    ycUfrVpc="

Notice that the user part, root@hostname should be kept out. At least, it doesn't complain  here

 

View solution in original post

2 Replies
FS3
Mission Specialist
Mission Specialist
  • 2,489 Views

Replying to myself. Got the solution, so this might help whoever comes here by googling.

 

pullSecret should have the entire contents of the pull-secret file surroung by single quotes

Same for sshKey, should be done with the public ssh key. Stupidly, i was using the private...

So, examples:

 

pullSecret: '{"auths":{"cloud.openshift.com":{"auth":"b3BlbnNoaW   ...(rest of the contents here) ...    amdDQQ==","email":"user@example.com"}}}'

Notice the additional single quotes in the begginig and end.

 

sshKey: "ssh-rsa AAAAB3NzaC1yc2EAAA    ...(rest of the contents here) ...    ycUfrVpc="

Notice that the user part, root@hostname should be kept out. At least, it doesn't complain  here

 

rudi-S
Cadet
Cadet
  • 289 Views

thank you.Saved me a lot of headache

Join the discussion
You must log in to join this conversation.