StackStorm / st2-docker

StackStorm docker-compose deployment
https://docs.stackstorm.com/install/docker.html
Apache License 2.0
188 stars 158 forks source link

Providing core.remote stanley ssh keys #242

Closed jfath closed 2 years ago

jfath commented 2 years ago

I'm trying to figure out the correct way to provide ssh keys for stanley in the st2actionrunner container. The docker-compose.yml file mounts a volume like so: stackstorm-ssh:/home/stanley.ssh If that were slightly different, the needed keys would be persisted in the stackstorm-ssh volume after copying them in: stackstorm-ssh:/home/stanley/.ssh

Is it a typo or am I missing something about how I should be supplying the ssh keys for the core.remote action? I suppose I could put the keys in /home/stanley.ssh and configure that location for every core.remote.

Just wondering what the intended process is? Thanks.

arm4b commented 2 years ago

Probably a typo. Could you please create a PR to fix that?

arm4b commented 2 years ago

From the https://github.com/StackStorm/st2/blob/master/conf/st2.package.conf#L73 the default SSH key location that st2.conf is expecting:

ssh_key_file = /home/stanley/.ssh/stanley_rsa

The core.remote would use that by default.