Salt Mode lets you edit Salt states with GNU Emacs 24.
Salt Mode is a major mode for GNU Emacs 24 which adds support for Salt state syntax. Salt is a different approach to infrastructure management, founded on the idea that high-speed communication with large numbers of systems can open up new capabilities by SaltStack. On top of this communication system, Salt provides an extremely fast, flexible, and easy-to-use configuration management system called Salt States.
This mode has only been tested in GNU Emacs 24. It may not work with GNU Emacs 23 and below, or with other flavors of Emacs (e.g. XEmacs).
This uses mmm-mode and mmm-jinja2 to hook up Jinja2 templates into YAML (essentially what SaltStack files are).
- Syntax highlighting
- Indentation and alignment of expressions and statements
- Jinja Templating Support
From MELPA or MELPA Stable with M-x package-install RET salt-mode.
Just visit Salt state files. The major mode is enabled automatically for Salt
states with the extension .sls
.
Feel free to ask question or make suggestions in the issue tracker.
Salt Mode is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Salt Mode is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
See COPYING
for the complete license.