Merge pull request #297 from jby/puppet-snippets
Some extensions to service and, primarily, file snippet for puppet
This commit is contained in:
commit
c8faad0f23
@ -223,14 +223,22 @@ snippet define
|
|||||||
}
|
}
|
||||||
|
|
||||||
snippet service
|
snippet service
|
||||||
service{ "${1:service}":
|
service { '${1:service}' :
|
||||||
enable => ${2:true},
|
ensure => running,
|
||||||
ensure => ${0:running},
|
enable => true,
|
||||||
hasstatus => true,
|
require => [ Package['${2:package}'], File['${3:file}'], ],
|
||||||
|
subscribe => [ File['${4:configfile1}'], File['${5:configfile2}'], Package['${6:package}'], ]
|
||||||
}
|
}
|
||||||
|
|
||||||
snippet file
|
snippet file
|
||||||
file{ "${1:path}":
|
file { '${1:filename}' :
|
||||||
${2} => ${0}
|
ensure => ${2:present},
|
||||||
|
owner => '${3:root}',
|
||||||
|
group => '${4:root}',
|
||||||
|
mode => '${5:0644}',
|
||||||
|
source => 'puppet:///modules/${6:module}/${7:source}',
|
||||||
|
content => template('/etc/puppet/templates/${8:template}'),
|
||||||
|
alias => '${9:alias}',
|
||||||
|
require => [ Package['${10:package}'], File['${11:file}'], ],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user