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
Add run-time params to SSHClient and CloudClient for common operations #41237
Comments
Can you please provide the Thanks, |
Salt Version: Dependency Versions: System Versions: |
@gtmanfred Did it work for you? |
I have been at a conference the last two days, I am working through the issue queue, then I am going to test this. |
I believe that this is a limitation of the api, that it does not update the opts for salt-ssh commands. @whiteinge can you verify this? Thanks, |
Pretty sure you're right. I believe that both SSHClient and CloudClient look for some run-time params in |
Thanks, I am going to mark this as a bug. Daniel |
Cool, thanks. I removed the |
In that case ,can i use the Saltfile mentioned here . The documention doesnt mention the location of these configuration parameters. I tried keeping it in /etc/salt/master but it did not work. And if its not master config then what is the location of this file? Is Saltfile a generaal term being used here or name of the file itself? |
Saltfile won't work here, it is specifically for use with the cli functions.
…On Thu, May 18, 2017 at 9:39 PM sumeetisp ***@***.***> wrote:
In that case can i use the Saltfile mentioned here
<https://docs.saltstack.com/en/latest/topics/ssh/#define-cli-options-with-saltfile>.
THe documention doesnt mention the location of these configuration
parameters. I tried keeping it in /etc/salt/master but it did not work. And
if its not master config then what is the location of this file? Is
Saltfile a generaal term being used here or name of the file itself?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#41237 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAssoYHevdOidqv-qASmdnMvKTuOk-iWks5r7Q7XgaJpZM4Na543>
.
|
cli option present here are the cli options? If yes this includes --key-deploy. Where does this Saltfile reside? |
It goes in the directory you are running the salt-ssh command from
https://docs.saltstack.com/en/latest/topics/ssh/#define-cli-options-with-saltfile
It is mostly meant to make it so that you don't have to provide cli
arguments to run salt-ssh out of a git repository
…On Fri, May 19, 2017 at 4:54 AM sumeetisp ***@***.***> wrote:
cli option present here
<https://docs.saltstack.com/en/latest/ref/cli/salt-ssh.html> are the cli
option? If yes this includes --key-deploy. Where does this Saltfile reside?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#41237 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAssoS8cG6J5j2Dtsmqfd_xWBrgLiKfZks5r7XTfgaJpZM4Na543>
.
|
Edited the title and linked an older related issue. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Description of Issue/Question
I am using the following format for salt-ssh rest call,
{
"ssh_passwd": "Spam99",
"fun": "test.ping",
"tgt": "cri-ssh",
"eauth": "pam",
"client": "ssh",
"timeout": 2000,
"username": "admin",
"password": "admin",
"ssh_passwd": "some_password",
"ssh_key_deploy": "true"
}
My expectation is that this will login into the target, run the test.ping, deploy the salt-ssh key and get me the result.
I get the result as true but the key doesnt get deployed.
The same when i run via salt master gets the key deployed.
The text was updated successfully, but these errors were encountered: