All Projects → korekontrol → vscode-saltstack

korekontrol / vscode-saltstack

Licence: MIT license
SaltStack extension for Microsoft Visual Studio Code

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to vscode-saltstack

salt-ssh-install-salt-minion
利用salt-ssh批量部署salt-minion
Stars: ✭ 19 (-26.92%)
Mutual labels:  salt, saltstack
community
SaltStack Community
Stars: ✭ 27 (+3.85%)
Mutual labels:  salt, saltstack
vscode-st
Extension for VS Code to support Structured Text language.
Stars: ✭ 94 (+261.54%)
Mutual labels:  vscode-snippets, vscode-language
salt-lint
A command-line utility that checks for best practices in SaltStack.
Stars: ✭ 111 (+326.92%)
Mutual labels:  salt, saltstack
VSCode-Bedrock-Development-Extension
An extension that provides support for files such as: .mcfunction, .json and .lang. Features include: completion, validations, formatters, diagnostics, cheat-sheets, code-actions, generation of files, and development tools to help develop Minecraft Bedrock Addons or Minecraft Education Edition.
Stars: ✭ 45 (+73.08%)
Mutual labels:  vscode-snippets, vscode-language
vscode-django
Beautiful syntax and snippets for perfectionists with deadlines
Stars: ✭ 113 (+334.62%)
Mutual labels:  jinja2, vscode-extension
pepperboard
Simple and modular dashboard toolkit for SaltStack
Stars: ✭ 26 (+0%)
Mutual labels:  salt, saltstack
vscode-angular-html
Angular syntax highlighting for HTML templates
Stars: ✭ 35 (+34.62%)
Mutual labels:  vscode-extension, vscode-language
vscode-language-terraform
Adds support for the Terraform configuration language to Visual Studio Code
Stars: ✭ 58 (+123.08%)
Mutual labels:  vscode-snippets, vscode-language
alcali-formula
Saltstack formula to install Alcali: a web based tool(GUI) for monitoring and administrating Saltstack Salt.
Stars: ✭ 15 (-42.31%)
Mutual labels:  salt, saltstack
ISalt
ISalt: Interactive Salt Programming
Stars: ✭ 61 (+134.62%)
Mutual labels:  salt, saltstack
getx snippets extension
An extension to accelerate the process of developing applications with flutter, aimed at everyone using the GetX package.
Stars: ✭ 142 (+446.15%)
Mutual labels:  vscode-extension, vscode-snippets
saltstack-cheatsheet
🧂 SaltStack Cheat Sheet Plus
Stars: ✭ 31 (+19.23%)
Mutual labels:  salt, saltstack
Napalm Salt
Modules for event-driven network automation and orchestration using Salt
Stars: ✭ 116 (+346.15%)
Mutual labels:  jinja2, saltstack
VSCode-Anywhere
VSCode with preconfigured tools for your programming languages : binaries, settings, extensions and documentations
Stars: ✭ 26 (+0%)
Mutual labels:  vscode-extension, vscode-language
generate-secure-pillar
Salt Secure Pillar Tool
Stars: ✭ 30 (+15.38%)
Mutual labels:  salt, saltstack
vsc html5 boilerplate
This is a Visual Studio Code snippet extension for generating HTML 5 boilerplate code
Stars: ✭ 32 (+23.08%)
Mutual labels:  vscode-extension, vscode-snippets
firecode
VS Code Firestore Rules Extension
Stars: ✭ 35 (+34.62%)
Mutual labels:  vscode-extension, vscode-language
saltstack-lxc-vagrant
Vagrantfile for setting up a SaltStack test/dev environment.
Stars: ✭ 13 (-50%)
Mutual labels:  salt, saltstack
saltdash
A read-only dashboard for Salt jobs
Stars: ✭ 18 (-30.77%)
Mutual labels:  salt, saltstack

SaltStack extension for Visual Studio Code

This extension adds language colorization support for the SaltStack template language to VS Code. The language is a yaml with Jinja2 templating.

IDE

Using the extension

First, you will need to install Visual Studio Code 1.19.0 or higher. In the command palette (cmd-shift-p) select Install Extension and choose SaltStack.

Autocompletion

Salt states

When writing Salt states, pressing ctrl+space will offer to autocomplete state functions and some stanzas.

Example:

some_id:
  test.<ctrl+space>

Results in:

some_id:
  test.+-----------------------+
       |check_pillar           |
       |configurable_test_state|
       |fail_with_changes      |
       |fail_without_changes   |
       |nop                    |
       |show_notification      |
       |succeed_with_changes   |
       |succeed_without_changes|
       +-----------------------+

Full state modules can also be completed:

some_other_id:
  test.configurable_test_state:<ctrl+space>

Results in:

some_other_id:
  test.conffigurable_test_state:
    - name: _unique_string_
    - changes: True
    - result: True
    - comment: ''

Saltcheck

Saltcheck tests (.tst files) can also be autocompleted with the keyword sctest<ctrl+space>

Example:

_testid_:
  module_and_function: _test.echo_
  args:
    - should return
  assertion: _assertTrue_
  expected_return: _should return_

Contributing

If you are interested in making this extension better, I will gladly take pull requests that expand it to add intellisense, hovers and validators. If you're not familiar with working on Visual Studio Code extensions, check out the VS Code extenders documentation at https://code.visualstudio.com/docs.

To get started on the extension...

  1. Go to the Debug viewlet and select Launch Extension then hit run (F5). This will launch a second instance of Code with the extension from the first window loaded.

  2. As you make changes, you can also reload (Ctrl+R or Cmd+R on Mac) the second Code window to load any changes.

If you have a previous release of the extension installed and you perform these steps, Code will temporarily override the locally installed version instead for the one you're working on for the second window. The first (main) window will remain to have the locally installed, prior version installed and enabled until an update is available.

Publishing

  1. Bump version number in package.json

  2. After git push, a build starts automatically. Publishing to marketplace requires manual approval in Jenkins

Credits

Created by Marek Obuchowicz from KoreKontrol.

Many thanks to William Holroyd, Ross Neufeld and Christian McHugh.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].