
I am not so sure that having multiple resource types in the same file is supported as of 2.7.11 I am refactoring this code so that the upstart define resides in its own file according to our standards.
11 lines
332 B
Puppet
11 lines
332 B
Puppet
# TODO this should be removed when the upstart packages are fixed.
|
|
define swift::storage::generic::upstart() {
|
|
file { "/etc/init/swift-${name}.conf":
|
|
mode => '0644',
|
|
owner => 'root',
|
|
group => 'root',
|
|
source => "puppet:///modules/swift/swift-${name}.conf.upstart",
|
|
before => Service["swift-${name}"],
|
|
}
|
|
}
|