From 0a3c7288addb07997633a1bf1b686cff62351c44 Mon Sep 17 00:00:00 2001 From: Peter Foley Date: Sun, 23 Jun 2013 16:03:30 +1000 Subject: [PATCH] Re-arranged Types section so it is alphabetized --- UltiSnips/puppet.snippets | 63 +++++++++++++++++++-------------------- 1 file changed, 31 insertions(+), 32 deletions(-) diff --git a/UltiSnips/puppet.snippets b/UltiSnips/puppet.snippets index 8f32f90..d792ec7 100644 --- a/UltiSnips/puppet.snippets +++ b/UltiSnips/puppet.snippets @@ -60,17 +60,18 @@ endsnippet # # ################################################################# -snippet File "Defaults for file" b -File { - owner => ${1:username}, - group => ${2:groupname}, +snippet cron "Cron resource type" b +cron { '${1:name}': + user => ${2:user}, + command => '${3:command}', + minute => ${3:minute}, + hour => ${4:hour}, } endsnippet -# Resource types -snippet package "Package resource type" b -package { '${1:name}': - ensure => ${2:installed}, +snippet exec "Exec resource type" b +exec { '${1:command}': + refreshonly => true, } endsnippet @@ -80,12 +81,34 @@ file { '${1:name}': mode => ${3:mode}, endsnippet +snippet File "Defaults for file" b +File { + owner => ${1:username}, + group => ${2:groupname}, +} +endsnippet + snippet group "Group resource type" b group { '${1:groupname}': ensure => ${3:present}, gid => ${2:gid}, endsnippet +snippet mount "Mount resource type" b +mount { '${1:path}': + device => '${2:/dev}', + fstype => '${3:filesystem}', + ensure => mounted, + options => 'rw,errors=remount-ro', +} +endsnippet + +snippet package "Package resource type" b +package { '${1:name}': + ensure => ${2:installed}, +} +endsnippet + snippet user "user resource type" b user { '${1:username}': ensure => ${2:present}, @@ -97,30 +120,6 @@ user { '${1:username}': require => Group['${7:group'}], endsnippet -snippet exec "Exec resource type" b -exec { '${1:command}': - refreshonly => true, -} -endsnippet - -snippet cron "Cron resource type" b -cron { '${1:name}': - user => ${2:user}, - command => '${3:command}', - minute => ${3:minute}, - hour => ${4:hour}, -} -endsnippet - -snippet mount "Mount resource type" b -mount { '${1:path}': - device => '${2:/dev}', - fstype => '${3:filesystem}', - ensure => mounted, - options => 'rw,errors=remount-ro', -} -endsnippet - snippet service "Service resource type" b service { '${1:name}': hasstatus => true,