Move generic::upstart to its own file

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.
This commit is contained in:
Dan Bode 2012-03-17 01:42:15 -07:00
parent a11c1af726
commit 94fb333ab9
2 changed files with 10 additions and 10 deletions
manifests/storage

@ -52,13 +52,3 @@ define swift::storage::generic(
}
}
# 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}"],
}
}

@ -0,0 +1,10 @@
# 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}"],
}
}