Skip to content

Commit f2b7397

Browse files
Jenkinsopenstack-gerrit
Jenkins
authored andcommitted
Merge "Ensure swift.conf created in all scenarios"
2 parents 2840cc6 + 472253c commit f2b7397

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

manifests/swift/proxy.pp

+6-4
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,12 @@
3232
} else {
3333
$real_keystone_host = $keystone_host
3434
}
35-
class { 'swift':
36-
swift_hash_suffix => $swift_hash_suffix,
37-
package_ensure => $package_ensure,
38-
}
35+
36+
ensure_resource('class', 'swift',
37+
{ swift_hash_suffix => $swift_hash_suffix,
38+
package_ensure => $package_ensure,
39+
}
40+
)
3941

4042
if $memcached {
4143
class { 'memcached':

manifests/swift/storage-node.pp

+3-4
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@
1212
$byte_size = '1024',
1313
) {
1414

15-
if !defined(swift){
16-
class { 'swift':
17-
swift_hash_suffix => $swift_hash_suffix,
15+
ensure_resource('class', 'swift',
16+
{ swift_hash_suffix => $swift_hash_suffix,
1817
package_ensure => $package_ensure,
1918
}
20-
}
19+
)
2120

2221
case $storage_type {
2322
'loopback': {

0 commit comments

Comments
 (0)