mirror of
				https://github.com/TheLocehiliosan/yadm
				synced 2025-06-13 13:03:58 +00:00 
			
		
		
		
	Add details about supporting arch
This commit is contained in:
		
							parent
							
								
									02677d576d
								
							
						
					
					
						commit
						32384b9555
					
				@ -32,6 +32,7 @@ be omitted. Most attributes can be abbreviated as a single letter.
 | 
			
		||||
| `distro`, `d` | Valid if the value matches the distro. Distro is calculated by running <code>lsb_release ‑si</code> or inspecting <code>/etc/os-release</code> |
 | 
			
		||||
| `distro_family`, `f` | Valid if the value matches the distro family. Distro family is calculated by inspecting the `ID_LIKE` line from <code>/etc/os-release</code> |
 | 
			
		||||
| `os`, `o` | Valid if the value matches the OS. OS is calculated by running <code>uname ‑s</code>. <sup>*</sup> |
 | 
			
		||||
| `arch`, `architecture`, `a` | Valid if the value matches the architecture. Architecture is calculated by running <code>uname ‑m</code>. |
 | 
			
		||||
| `class`, `c` | Valid if the value matches the local.class configuration. Class must be manually set using <code>yadm config local.class <class></code>. |
 | 
			
		||||
| `hostname`, `h` | Valid if the value matches the short hostname. Hostname is calculated by running <code>uname ‑n</code>, and trimming off any domain. |
 | 
			
		||||
| `default` | Valid when no other alternate is valid. |
 | 
			
		||||
@ -116,8 +117,9 @@ yadm configuration—with the `yadm config` command. The following sets the
 | 
			
		||||
 | 
			
		||||
    yadm config local.class Work
 | 
			
		||||
 | 
			
		||||
Similarly, the values of `os`, `hostname`, and `user` can be manually overridden
 | 
			
		||||
using the configuration options `local.os`, `local.hostname`, and `local.user`.
 | 
			
		||||
Similarly, the values of `arch`, `os`, `hostname`, and `user` can be manually
 | 
			
		||||
overridden using the configuration options `local.arch`, `local.os`,
 | 
			
		||||
`local.hostname`, and `local.user`.
 | 
			
		||||
 | 
			
		||||
## Templates
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -45,6 +45,7 @@ When template processors run, they will be provided the following set of data.
 | 
			
		||||
| `yadm.distro_family` | `YADM_DISTRO_FAMILY` | Distribution Family | `ID_LIKE` from<code>/etc/os‑release</code>                            |
 | 
			
		||||
| `yadm.hostname`      | `YADM_HOSTNAME`      | Hostname            | <code>uname ‑n</code> (without domain)                           |
 | 
			
		||||
| `yadm.os`            | `YADM_OS`            | Operating system    | <code>uname ‑s</code> <sup>*</sup>                               |
 | 
			
		||||
| `yadm.arch`          | `YADM_ARCH`          | Architecture        | <code>uname ‑m</code>                                            |
 | 
			
		||||
| `yadm.user`          | `YADM_USER`          | Current user        | <code>id ‑u ‑n</code>                                 |
 | 
			
		||||
| `yadm.source`        | `YADM_SOURCE`        | Template filename   | (fully qualified path)                                                      |
 | 
			
		||||
| `env.VAR`            |                      | Env variables       | Any VAR in the environment while yadm templates are processed               |
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user