From: Andreas Gerler Date: Thu, 27 Aug 2015 10:57:05 +0000 (+0200) Subject: snippets/js-mode/host X-Git-Url: http://git.bundesbrandschatzamt.de/?a=commitdiff_plain;h=053f52a723a59b98b395ddc941b5c905434c6493;p=emacsconfig.git snippets/js-mode/host - added snippet for networkinformation.json --- diff --git a/snippets/js-mode/host b/snippets/js-mode/host new file mode 100644 index 00000000..b55d7468 --- /dev/null +++ b/snippets/js-mode/host @@ -0,0 +1,20 @@ +# -*- mode: snippet -*- +# name: host +# key: host +# useful for networkinformation.json +# -- +"${1:host.site}" : { + "fqdn": "$1", + "network": { + "${2:eth0}": { + "mac": "${3:42:42:42:42:42:42$(upcase yas-text)}", + "ip": "$4", + "netmask": "${5:255.255.255.0}" + }, + "server_os": "${6:OREL V6 STANDARD}", + "nagios": { + "site": "${7:monitoring host}", + "hosttemplate": "${8:generic-linux}" + } + } +}$0