InterviewSolution
| 1. |
Module X Isn't Available, Even Though The Shell Command It Uses Is Installed. Why? |
|
Answer» This is most likely a PATH issue. Did you custom-compile the software which the module REQUIRES? RHEL/CentOS/etc. in particular override the root USER's path in /etc/init.d/functions, setting it to /sbin:/usr/sbin:/bin:/usr/bin, making software installed into /usr/local/bin unavailable to Salt when the Minion is started using the initscript. In version 2014.1.0, Salt will have a better solution for these sort of PATH-related issues, but recompiling the software to INSTALL it into a location within the PATH should resolve the issue in the meantime. Alternatively, you can create a symbolic link within the PATH using a file.symlink STATE. /usr/bin/foo: file.symlink: - TARGET: /usr/local/bin/foo This is most likely a PATH issue. Did you custom-compile the software which the module requires? RHEL/CentOS/etc. in particular override the root user's path in /etc/init.d/functions, setting it to /sbin:/usr/sbin:/bin:/usr/bin, making software installed into /usr/local/bin unavailable to Salt when the Minion is started using the initscript. In version 2014.1.0, Salt will have a better solution for these sort of PATH-related issues, but recompiling the software to install it into a location within the PATH should resolve the issue in the meantime. Alternatively, you can create a symbolic link within the PATH using a file.symlink state. /usr/bin/foo: file.symlink: - target: /usr/local/bin/foo |
|