Discussion:
[salt-users] How to install nvidia with saltStack - in non-interactive way
s***@gmail.com
2018-06-26 11:48:20 UTC
Permalink
Hi,

I'm new with SaltStack.
I need to install nvidia on minion

In the gpu/init.sls file:
install_nvidia:
cmd.script:
- source: salt://gpu/files/NVIDIA-Linux-x86_64-375.20.run
- user: root
- group: root
- shell: /bin/bash
- args: -a

I run:
sudo salt minion_name state.apply gpu


I get the error:
stderr:
Error opening terminal: unknown.
...
...
Summary for minion_name
------------
Succeeded: 0 (changed=1)
Failed: 1


How can I get more verbose information about the failed?
I believe it wait to user input but I don't know what?

Thanks.
--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/salt-users/ee247282-084f-4234-b546-16cd2ca1ea44%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Daniel Wallace
2018-06-26 13:38:32 UTC
Permalink
First, I would highly recommend packaging this yourself instead of running
the .run script and dropping all the files on the system in random places
that won't be able to be removed. Then you can also just use yum to
install it.

But if you don't want to do that, it seems like it needs a pty, which will
mean that you need to set `use_vt: True` in your state, so that it creates
a virtual terminal.
Post by s***@gmail.com
Hi,
I'm new with SaltStack.
I need to install nvidia on minion
- source: salt://gpu/files/NVIDIA-Linux-x86_64-375.20.run
- user: root
- group: root
- shell: /bin/bash
- args: -a
sudo salt minion_name state.apply gpu
Error opening terminal: unknown.
...
...
Summary for minion_name
------------
Succeeded: 0 (changed=1)
Failed: 1
How can I get more verbose information about the failed?
I believe it wait to user input but I don't know what?
Thanks.
--
You received this message because you are subscribed to the Google Groups
"Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit https://groups.google.com/d/
msgid/salt-users/ee247282-084f-4234-b546-16cd2ca1ea44%40googlegroups.com
<https://groups.google.com/d/msgid/salt-users/ee247282-084f-4234-b546-16cd2ca1ea44%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/salt-users/CAA2%2B9hBs0BTJZupL%3DQ-UByOxULWR8BQbcjUeNtRO%3D501cKWjVg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...