feat(mise): Allow to declare bootstrap package per host
Whitout this, you can only specify packages per os (distrib).
This commit is contained in:
@@ -55,6 +55,8 @@ hosts:
|
|||||||
configs: {}
|
configs: {}
|
||||||
# Termux (application de terminal pour android)
|
# Termux (application de terminal pour android)
|
||||||
termux-debian:
|
termux-debian:
|
||||||
|
packages:
|
||||||
|
- apt:zsh
|
||||||
users:
|
users:
|
||||||
root:
|
root:
|
||||||
toolboxes:
|
toolboxes:
|
||||||
@@ -65,6 +67,8 @@ hosts:
|
|||||||
- terminal
|
- terminal
|
||||||
- dev-tools
|
- dev-tools
|
||||||
termux-ubuntu:
|
termux-ubuntu:
|
||||||
|
packages:
|
||||||
|
- apt:zsh
|
||||||
users:
|
users:
|
||||||
root:
|
root:
|
||||||
toolboxes:
|
toolboxes:
|
||||||
|
|||||||
@@ -41,3 +41,15 @@
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{/* Host specific */}}
|
||||||
|
{{- $hostname := output "hostname" | trim -}}
|
||||||
|
{{- $currentHost := index .hosts $hostname -}}
|
||||||
|
{{- if $currentHost }}
|
||||||
|
{{- if hasKey $currentHost "packages" }}
|
||||||
|
# Paquets personnalisés pour l'hôte {{ $hostname }}
|
||||||
|
{{- range $currentHost.packages }}
|
||||||
|
"{{- . }}" = "latest"
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|||||||
Reference in New Issue
Block a user