Password-less host-profiles.xml file based robot deployment
search cancel

Password-less host-profiles.xml file based robot deployment

book

Article ID: 413646

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

Need for example deployment information for passwordless robot deployment using XML method in UIM.

Environment

  • UIM 23.4 CU1+
  • automated_deployment_engine
  • robot

Resolution

CU1 or above for 23.4 is needed. 

The following will need to be update depending on their presence:

   <isPasswordLess>true</isPasswordLess>
   <privateKey>Complete key file content</privateKey>
   <passPhrase>Passphrase</passPhrase>

Key data much be converted to rsa format.

If a pass phrase is not used, than the line should not be included in the host-profiles.xml file.

example usage:

<?xml version="1.0"?>
<hosts>
<host>
<profile>CentOS</profile>
<arch>64</arch>
<hostname>"ip of host to deploy to"</hostname>
<username>root</username>
<isPasswordLess>true</isPasswordLess>
<privateKey>-----BEGIN RSA PRIVATE KEY-----
AlPHaNumberHaShAlPHaNumberHaShAlPHaNumberHaShAlPHaNumberHaShAlPH
aNumberHaShAlPHa................................................

................................................................
................................................................
................................................................
................................................................
......................EXAMPLE KEY DATA..........................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
AlPHaNumberHaShAlPHaNumberHaShAlPHaNumberHaShAlPHaNumberHaShAlPH
aNumberHaShAlPHaNumberHaShAlPHaNumberHaShAlPHaNumber
-----END RSA PRIVATE KEY-----

</privateKey>
<passPhrase>"my phrase"</passPhrase>
<domain>uim_domain</domain>
<hubip>"hub ip"</hubip>
<hub>primary_hub</hub>
<hubrobotname>primary</hubrobotname>
<hubport>48002</hubport>
<robotname>"my_robot_name"</robotname>
<tempdir>/opt/tmp</tempdir>
</host>
</hosts>

Additional Information

Example commands run to process private key:

  • Generate the key

       ssh-keygen

  • Add the local system to the key

       ssh-copy-id root@systemnameprocessrunon

  • convert to rsa:

       ssh-keygen -p -m PEM -f /root/.ssh/id_rsa

The id_rsa file will contain the private key data needed


Bulk Robot Deployment