我在minion端的/etc/profiled中添加了个java.sh的环境变量,执行source /etc/profiled.java.sh是成功的,但是在maser端通过执行salt "minion-1" cmd.run "/etc/profile.d/java.sh"却没有结果,请问为什么呢?
https://www.cnblogs.com/Ning-Saltstack/p/7084617.html