This repository has been archived by the owner on Feb 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EOS-23137: Setup passwordless-ssh for nodeadmin user (#6027)
* EOS-23137: Setup passwordless-ssh for nodeadmin user Signed-off-by: Anjali Somwanshi <[email protected]> * Fix codacy issues Signed-off-by: Anjali Somwanshi <[email protected]> * Fix codacy issues Signed-off-by: Anjali Somwanshi <[email protected]> * Fix issues Signed-off-by: Anjali Somwanshi <[email protected]> * Fix issues Signed-off-by: Anjali Somwanshi <[email protected]> * Fix issues Signed-off-by: Anjali Somwanshi <[email protected]> * Fix issues with config file Signed-off-by: Anjali Somwanshi <[email protected]> * remove unwanted commets Signed-off-by: Anjali Somwanshi <[email protected]> * Remove password parameter and ask at command line Signed-off-by: Anjali Somwanshi <[email protected]> * fix typo issue Signed-off-by: Anjali Somwanshi <[email protected]>
- Loading branch information
1 parent
d0e0d57
commit 8f2b7da
Showing
19 changed files
with
243 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,20 @@ | ||
{% for node_id, node in pillar['node_specs'].items() %} | ||
{%- for node_id, node in pillar['node_specs'].items() -%} | ||
|
||
{%- if node['user'] == 'root' -%} | ||
{%- set user_home = '/root' -%} | ||
{%- else -%} | ||
{%- set user_home= '/opt/seagate/users/' + node['user'] -%} | ||
{% endif %} | ||
|
||
Host {{ node_id }} {{ node['host'] }} | ||
HostName {{ node['host'] }} | ||
Port {{ node['port'] }} | ||
User {{ node['user'] }} | ||
UserKnownHostsFile /dev/null | ||
StrictHostKeyChecking no | ||
IdentityFile /root/.ssh/id_rsa_prvsnr | ||
IdentityFile {{user_home}}/.ssh/id_rsa_prvsnr | ||
IdentitiesOnly yes | ||
LogLevel ERROR | ||
BatchMode yes | ||
|
||
{% endfor %} | ||
{%- endfor -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.