Comment blocks with link to Puppet doco
This commit is contained in:
parent
3b2eb436b7
commit
fa1bcda166
@ -1,5 +1,9 @@
|
||||
# Snippets for Puppet
|
||||
|
||||
#########################################################################
|
||||
# Python helper code #
|
||||
#########################################################################
|
||||
|
||||
global !p
|
||||
import vim
|
||||
import os.path
|
||||
@ -32,6 +36,12 @@ def get_module_namespace_and_basename():
|
||||
return "name"
|
||||
endglobal
|
||||
|
||||
###############################################################################
|
||||
# Puppet Language Constructs #
|
||||
# See http://docs.puppetlabs.com/puppet/latest/reference/lang_summary.html #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
snippet define "Definition" b
|
||||
define ${1:`!p snip.rv = get_module_namespace_and_basename()`} {
|
||||
${0:# body}
|
||||
@ -45,6 +55,12 @@ class ${1:`!p snip.rv = get_module_namespace_and_basename()`} {
|
||||
}
|
||||
endsnippet
|
||||
|
||||
#################################################################
|
||||
# Puppet Types #
|
||||
# See http://docs.puppetlabs.com/references/latest/type.html #
|
||||
# #
|
||||
#################################################################
|
||||
|
||||
snippet File "Defaults for file" b
|
||||
File {
|
||||
owner => ${1:username},
|
||||
@ -114,4 +130,11 @@ service { '${1:name}':
|
||||
}
|
||||
endsnippet
|
||||
|
||||
########################################################################
|
||||
# Puppet Functions #
|
||||
# See http://docs.puppetlabs.com/references/latest/function.html #
|
||||
# #
|
||||
########################################################################
|
||||
|
||||
|
||||
# vim:ft=snippets:
|
||||
|
Loading…
x
Reference in New Issue
Block a user