Slackbot
04/13/2023, 8:51 PMnlew
04/13/2023, 9:03 PMmy_transform_plugin gets the value from another plugin and converts it:
yaml
config:
ssh:
proxyjump:
_plugin: my_transform_plugin
value:
_plugin: aws_inventory
[...]hunner
04/13/2023, 9:03 PMnlew
04/13/2023, 9:03 PMaws_inventory bits by having a plugin that, when invoked, returns a _plugin: aws_inventory blocknlew
04/13/2023, 9:04 PMhunner
04/13/2023, 9:05 PMnlew
04/13/2023, 9:05 PM_pluginhunner
04/14/2023, 5:44 PMyaml
---
groups:
- name: aws
groups:
- name: aws_dev
groups:
- name: aws_dev_buster
targets:
- 10.225.0.216
config:
ssh:
proxyjump: "admin@34.219.87.226"
And the error I'm getting is:
stdout: '{ "items": [\n' +
'{"target":"10.225.0.216","action":"script","object":null,"status":"failure","value":{"_error":{"details":{},"kind":"puppetlabs.tasks/connect-error","msg":"Failed to connect to 10.225.0.216: No such file or directory - ssh: ssh -l admin -W 10.225.0.216:22 34.219.87.226","issue_code":"CONNECT_ERROR"}}}\n' +
'],\n' +
'"target_count": 1, "elapsed_time": 0 }\n',
stderr: '\x1B[33mCLI arguments ["host-key-check", "run-as"] might be overridden by Inventory: /deploy/inventory.yaml [ID: cli_overrides]\x1B[0m\n' +
'\x1B[0m'
This seems to indicate that the ssh.config.proxyjump value is getting parsed in the wrong way, tho I'm not sure if it's bolt or ruby's net/ssh/proxy/jump doing the incorrect parsing :\hunner
04/14/2023, 5:48 PMssh -J admin@34.219.87.226 -W 10.225.0.216 but it seems to be pulling the username off and not using the -J flag, so it could be the ruby lib, since bolt just passes the values thru as per https://github.com/puppetlabs/bolt/pull/805 . 🤷hunner
04/14/2023, 5:50 PMhunner
04/14/2023, 5:54 PMhunner
04/17/2023, 3:21 PMpuppet/puppet-bolt docker container doesn't have the ssh command, and after installing that I get a different error {"target":"10.225.0.216","action":"script","object":null,"status":"failure","value":{"_error":{"details":{},"kind":"puppetlabs.tasks/connect-error","msg":"Failed to connect to 10.225.0.216: command failed: ssh -l admin -W 10.225.0.216:22 34.219.87.226","issue_code":"CONNECT_ERROR"}}}hunner
04/17/2023, 3:21 PM