Page MenuHomeDevCentral

D3053.id7789.diff
No OneTemporary

D3053.id7789.diff

diff --git a/roles/core/userland-software/init.sls b/roles/core/userland-software/init.sls
--- a/roles/core/userland-software/init.sls
+++ b/roles/core/userland-software/init.sls
@@ -174,13 +174,18 @@
# -------------------------------------------------------------
# Nano configuration
+#
+# YAML syntax highlighting is only available on newest versions:
+# As checked 2023-04-19, it's not available on Debian and Rocky.
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+{% if salt['file.file_exists'](dirs["share"] + "/nano/yaml.nanorc") %}
nano_sls_support:
file.replace:
- name: {{ dirs.share }}/nano/yaml.nanorc
- pattern: {{ 'syntax yaml "\.ya?ml$"' | regex_escape }}
- repl: syntax yaml "\.(ya?ml|sls)$"
+{% endif %}
{{ dirs.etc }}/nanorc:
nano.config_autogenerated:

File Metadata

Mime Type
text/plain
Expires
Sun, Dec 1, 03:41 (22 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2273996
Default Alt Text
D3053.id7789.diff (831 B)

Event Timeline