Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Add ability to specify each node's user name, password, and hosts if known #2

Open
davidallendj opened this issue Nov 16, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@davidallendj
Copy link
Collaborator

davidallendj commented Nov 16, 2023

Description of Issue

There are some situations where it is possible to have a cluster with different BMC login information. In these situations, it would be necessary to be able to specify each individual node's login information opposed to only using to the one specified currently.

Possible Solutions

There are at least three approaches to consider here. We can specify the BMC login information via:

  1. the YAML config file
  2. environment variables
  3. CLI flags

In the config file, the format may look something like this:

...
collect:
  login:
    - host: 172.16.0.101
      username: "username1"
      password: "password1"
    - host: 172.16.0.102
      username: "username2"
      password: "password2"
    # alternatively...
    - host: 172.16.0.103
      user: "username3:password3"
...

The corresponding environment variable may look similar as a single comma-delimited string with syntax "host:username:password":

export MAGELLAN_COLLECT_LOGIN="172.16.0.101:username1:password1,172.16.0.102:username2:password2,172.16.0.103:username3:password3"

And finally, the CLI flags:

./magellan collect \
    --login "172.16.0.101:username1:password1" \
    --login "172.16.0.102:username2:password2" \
    --login "172.16.0.103:username3:password3"

The new method would obsolete the old --username and --password flags in favor of a single --login flag instead.

Other Considerations

Specifying the login information in the config file may not be ideal unless the config file exists in a location that requires elevated admin privileges. Therefore, it may be more advantageous to use environment variables or CLI flags as mentioned above in the "Possible Solutions" section.

Migrated from https://github.com/bikeshack/magellan/issues/6.

@davidallendj davidallendj added the enhancement New feature or request label Nov 16, 2023
@davidallendj davidallendj changed the title Add ability to specify each node's user name, password, and hosts if known [FEATURE] Add ability to specify each node's user name, password, and hosts if known Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant