Page MenuHomeDevCentral

D3053.diff
No OneTemporary

D3053.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
Sat, Jan 11, 17:46 (18 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2345395
Default Alt Text
D3053.diff (831 B)

Event Timeline