Contents by David Walton and Marco Hladik. Edited and compiled by Marco Hladik.
Last updated: 10th August 2018, 9:21 PM GMT
| %YAML 1.2 | |
| --- | |
| # http://www.sublimetext.com/docs/3/syntax.html | |
| name: effectinfo | |
| file_extensions: | |
| - txt | |
| scope: source.effectinfo | |
| variables: |
| { | |
| "clients": { | |
| "pyls": { | |
| "command": [ | |
| "~/.environments/pyls/bin/pyls" | |
| ], | |
| "enabled": false, | |
| "settings": { | |
| "pyls": { | |
| "plugins": { |
| import yaml | |
| from copy import copy, deepcopy | |
| from yaml.nodes import MappingNode | |
| from yaml.loader import Loader | |
| from yaml.constructor import SafeConstructor | |
| # Copyright Ferry Boender, released under the MIT license. | |
| def deepupdate(tgt, src): |
| {%- set grns = salt.saltutil.runner('cache.grains', tgt='serv*') %} | |
| {%- for id, grn in grns.items()|sort %} | |
| {%- set role = id[3:6] %} | |
| address: {{ grn.ip4_interfaces.eth0[0] | default("127.0.0.1") }} | |
| {%- endfor %} |
| def environments = ["development", "staging", "production"] | |
| stage("deploy to multiple environments") { | |
| def deployments = [:] | |
| environments.each { e -> | |
| deployments[e] = { | |
| stage(e) { | |
| podTemplate(yaml: """\ | |
| apiVersion: v1 | |
| kind: Pod |