Skip to content

Commit

Permalink
🧹 add backend configuration to inventory sample (#222)
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Hartmann <[email protected]>

Signed-off-by: Christoph Hartmann <[email protected]>
  • Loading branch information
chris-rock authored Oct 8, 2022
1 parent 3e8cd8f commit 1858632
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions motor/inventory/v1/testdata/inventory.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ spec:
- id: windows
connections:
- host: 192.168.1.1
backend: ssh
credentials:
- # should generate implicit type: password
user: username
Expand All @@ -26,6 +27,7 @@ spec:
- id: linux-ssh-key
connections:
- host: example.com
backend: ssh
credentials:
- type: ssh_agent # todo, make this a implicit?
user: username
Expand All @@ -35,18 +37,21 @@ spec:
- id: linux-identity-key
connections:
- host: x
backend: ssh
credentials:
- user: chris # implicit type private key
private_key_path: ./private_key_02
- id: linux-embedded-pem
connections:
- host: x
backend: ssh
credentials:
- secret_id: secret-1

- id: vsphere # asset with dynamic discovery
connections:
- host: 192.168.1.100
backend: ssh
credentials:
- user: root # implicit type password
password: pwd
Expand All @@ -59,6 +64,7 @@ spec:
# no platform -> ssh connected read ssh hostkey (no hostname)
- connections:
- host: 192.134.100.1
backend: ssh
credentials:
- secret_id: secret-2

Expand Down

0 comments on commit 1858632

Please sign in to comment.