Merge branch 'master' into testing
This commit is contained in:
commit
2c11008df9
@ -2,80 +2,76 @@
|
|||||||
|
|
||||||
snippet /^class/ "Class declaration" r
|
snippet /^class/ "Class declaration" r
|
||||||
class ${1:name} {
|
class ${1:name} {
|
||||||
${0:# body}
|
${0:# body}
|
||||||
}
|
}
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet File "Defaults for file" b
|
snippet File "Defaults for file" b
|
||||||
File {
|
File {
|
||||||
owner => '${1:username}',
|
owner => ${1:username},
|
||||||
group => '${2:groupname}',
|
group => ${2:groupname},
|
||||||
}
|
}
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
# Resource types
|
# Resource types
|
||||||
snippet package "Package resource type" b
|
snippet package "Package resource type" b
|
||||||
package { "${1:name}":
|
package { '${1:name}':
|
||||||
ensure => '${2:installed}',
|
ensure => ${2:installed},
|
||||||
}
|
}
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet file "File resource type" b
|
snippet file "File resource type" b
|
||||||
file { '${1:name}':
|
file { '${1:name}':
|
||||||
source => 'puppet://${2:path}',
|
source => "puppet://${2:path}",
|
||||||
mode => '${3:mode}',
|
mode => ${3:mode},
|
||||||
}
|
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet group "Group resource type" b
|
snippet group "Group resource type" b
|
||||||
group { '${1:groupname}':
|
group { '${1:groupname}':
|
||||||
ensure => '${3:present}',
|
ensure => ${3:present},
|
||||||
gid => '${2:gid}',
|
gid => ${2:gid},
|
||||||
}
|
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet user "user resource type" b
|
snippet user "user resource type" b
|
||||||
user { '${1:username}':
|
group { '${1:username}':
|
||||||
ensure => '${2:present}',
|
ensure => ${2:present},
|
||||||
uid => '${3:uid}',
|
uid => ${3:uid},
|
||||||
gid => '${4:gid}',
|
gid => ${4:gid},
|
||||||
comment => '${5:gecos}',
|
comment => ${5:gecos},
|
||||||
home => '${6:homedirectory}',
|
home => ${6:homedirectory},
|
||||||
homeagain => '$6',
|
managehome => false,
|
||||||
managehome => false,
|
require => Group['${7:group'],
|
||||||
require => Group['${7:group}'],
|
|
||||||
}
|
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet exec "Exec resource type" b
|
snippet exec "Exec resource type" b
|
||||||
exec { '${1:command}':
|
exec { '${1:command}':
|
||||||
refreshonly => true,
|
refreshonly => true,
|
||||||
}
|
}
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet cron "Cron resource type" b
|
snippet cron "Cron resource type" b
|
||||||
cron { '${1:name}':
|
cron { '${1:name}':
|
||||||
user => '${2:user}',
|
user => ${2:user},
|
||||||
command => '${3:command}',
|
command => '${3:command}',
|
||||||
minute => '${3:minute}',
|
minute => ${3:minute},
|
||||||
hour => '${4:hour}',
|
hour => ${4:hour},
|
||||||
}
|
}
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet mount "Mount resource type" b
|
snippet mount "Mount resource type" b
|
||||||
mount { '${1:path}':
|
mount { '${1:path}':
|
||||||
device => '${2:/dev}',
|
device => '${2:/dev}',
|
||||||
fstype => '${3:filesystem}',
|
fstype => '${3:filesystem}',
|
||||||
ensure => 'mounted',
|
ensure => mounted,
|
||||||
options => 'rw,errors=remount-ro',
|
options => 'rw,errors=remount-ro',
|
||||||
}
|
}
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet service "Service resource type" b
|
snippet service "Service resource type" b
|
||||||
service { '${1:name}':
|
service { '${1:name}':
|
||||||
hasstatus => true,
|
hasstatus => true,
|
||||||
enable => true,
|
enable => true,
|
||||||
ensure => 'running',
|
ensure => running,
|
||||||
}
|
}
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
|
@ -1364,6 +1364,8 @@ Contributors listed in chronological order:
|
|||||||
Matthew Strawbridge (pxc)
|
Matthew Strawbridge (pxc)
|
||||||
Josh Strater (jstrater)
|
Josh Strater (jstrater)
|
||||||
jinzhu
|
jinzhu
|
||||||
|
Rene Vergara (ravl1084)
|
||||||
|
Johan Haals (JHaals)
|
||||||
|
|
||||||
Thank you for your support.
|
Thank you for your support.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user