]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
snippets/js-mode/host
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Thu, 27 Aug 2015 10:57:05 +0000 (12:57 +0200)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Thu, 27 Aug 2015 10:57:05 +0000 (12:57 +0200)
- added snippet for networkinformation.json

snippets/js-mode/host [new file with mode: 0644]

diff --git a/snippets/js-mode/host b/snippets/js-mode/host
new file mode 100644 (file)
index 0000000..b55d746
--- /dev/null
@@ -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