Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 726 Bytes

ref_rendering-a-restorecon-template.adoc

File metadata and controls

12 lines (9 loc) · 726 Bytes

Rendering a restorecon Template

This example shows how to create a template derived from the Run command - restorecon template created in {ManagingHostsDocURL}Example_restorecon_Template_managing-hosts[Example restorecon Template]. This template does not require user input on job execution, it will restore the SELinux context in all files under the /home/ directory on target hosts.

Create a new template as described in {ManagingHostsDocURL}setting-up-job-templates_managing-hosts[Setting up Job Templates], and specify the following string in the template editor:

<%= render_template("Run Command - restorecon", :directory => "/home") %>