11.11. 配置 Satellite 以使用备用目录对主机执行远程作业
默认情况下,卫星使用客户端系统上的 /var/tmp 目录来执行远程执行作业。如果客户端系统为 /var/ 卷或文件系统设置了 noexec,则必须将 Satellite 配置为使用替代目录,因为因为脚本无法运行,否则远程执行作业会失败。
流程
创建新目录:
# mkdir /My_Remote_Working_Directory从默认
var目录中复制 SELinux 上下文:# chcon --reference=/var /My_Remote_Working_Directory配置系统:
# satellite-installer \ --foreman-proxy-plugin-remote-execution-script-remote-working-dir /My_Remote_Working_Directory