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