TemplateWriting » History » Version 4
Justin Sherrill, 02/01/2011 12:39 PM
| 1 | 1 | Justin Sherrill | h1. Templates |
|---|---|---|---|
| 2 | |||
| 3 | |||
| 4 | |||
| 5 | 4 | Justin Sherrill | The following functions and macros can be used within templates. These are guaranteed to work via the safemode rendering, to ensure a template can do nothing harmful. With safemode disabled ($$ADD instructions here$$), other macros may work, but are not supported at this time. |
| 6 | 1 | Justin Sherrill | |
| 7 | |||
| 8 | 2 | Justin Sherrill | h2. Functions: |
| 9 | 1 | Justin Sherrill | |
| 10 | |_.Name|_.Description|_.Example| |
||
| 11 | |root_pass |The root password configured for the system| | |
||
| 12 | |ks_console | | | |
||
| 13 | 3 | Justin Sherrill | |snippets | | | |
| 14 | 1 | Justin Sherrill | |foreman_url(kind)| Provides the full URL to | | |
| 15 | |||
| 16 | |||
| 17 | |_.Name|_.Description|_.Example| |
||
| 18 | |@host |The name of the host| | |
||
| 19 | |@host.name |The name of the host| | |
||
| 20 | |@host.diskLayout |The disklayout of the host (could come from the operating system)| | |
||
| 21 | |@host.puppetmaster |The puppetmaster the host should use | | |
||
| 22 | |@host.architecture |The arch of the host (i.e. x86_64)| | |
||
| 23 | |@host.operatingsystem|The operating system name| | |
||
| 24 | |@host.operatingsystem.media_url ||| |
||
| 25 | |@host.operatingsystem.major |The major version of the OS|| |
||
| 26 | |@host.operatingsystem.minor |The minor version of the OS|| |
||
| 27 | |@host.operatingsystem.family |The OS Family (I.e. redhat, debian, etc.)|| |
||
| 28 | |@host.url_for_boot(:kernel) ||| |
||
| 29 | |@host.url_for_boot(:initrd) ||| |
||
| 30 | |||
| 31 | |||
| 32 | |||
| 33 | 2 | Justin Sherrill | h2. Kickstart only variables: |
| 34 | |||
| 35 | 1 | Justin Sherrill | |_.Name|_.Description|_.Example| |
| 36 | |@dynamic ||| |
||
| 37 | |@osver ||| |
||
| 38 | |@arch ||| |
||
| 39 | |@mediapath ||| |
||
| 40 | |@epel ||| |
||
| 41 | |@yumrepo ||| |
||
| 42 | |@static ||| |
||
| 43 | |||
| 44 | 2 | Justin Sherrill | h3. Preseed attributes: |
| 45 | 1 | Justin Sherrill | |_.Name|_.Description|_.Example| |
| 46 | |@preseed_path ||| |
||
| 47 | |@preseed_server ||| |