Red Hat Satellite/Partition Tables

From wiki.vacula.xyz

This article includes a brief overview of using Red Hat Satellite's partition table templates. It's mostly meant for my own reference.

Useful documentation:


Quick reference:

<%   %>   # Execute code inside of this block
<%=  %>  # Execute code inside of this block and insert the result w/ a newline
<%= -%> # Same as previous, but remove ending newline
<%#  %>  # Comment

<% if @host.name == "host1.example.com" -%>
<%      result="positive" -%>
<%  else -%>
<%      result="negative" -%>
<%  end -%>
<%= result -%>

Examples

Ceph

zerombr
clearpart --all --initlabel
ignoredisk --only-use=/dev/disk/by-path/pci-0000:02:00.0-scsi-0:2:0:0
autopart <%= host_param('autopart_options') %>