Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3805660
D3053.id7789.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
831 B
Referenced Files
None
Subscribers
None
D3053.id7789.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D3053: Don't try to patch nanorc.yaml if missing
Attached
Detach File
Event Timeline
Log In to Comment