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:
parent
a11c1af726
commit
94fb333ab9
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}"],
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
10
manifests/storage/generic/upstart.pp
Normal file
10
manifests/storage/generic/upstart.pp
Normal file
@ -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}"],
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user