deckarep / blade

a remote SSH command-line runner based on YAML recipe files.
https://deckarep.github.io/blade/
MIT License
31 stars 4 forks source link

Allow overriding user in Hosts #8

Closed theRemix closed 6 years ago

theRemix commented 6 years ago

Current behavior:

Desired behavior:

example recipe:

[Overrides]
  User = "admin"

[Required]
  Hosts = [
    "localhost:221",
    "root@localhost:222",
    "customuser@localhost:223",
    "localhost:224"
  ]

1st connection will connect as user admin 2nd connection will connect as user root 3rd connection will connect as user customuser 4th connection will connect as user admin