B.5. 在多个主机上执行 restorecon 模板
本例演示了如何在多个主机中在基于示例 restorecon 模板中创建的模板运行作业。作业在 /home/ 目录下的所有文件中恢复 SELinux 上下文。
流程
- 在 Satellite Web UI 中,导航到 Hosts > All hosts 并选择目标主机。从 Select Action 列表中,选择 Schedule Remote Job。
-
在 Job invocation 页面中,选择
Commands作业类别和Run Command - restorecon作业模板。 -
在 目录 字段中键入
/home。 -
将 Schedule 设置为
Execute now。 - 点 Submit。您会进入 Job invocation 页面,从中可以监控作业执行的状态。