diff options
author | Jenkins <jenkins@review.openstack.org> | 2016-08-24 21:43:58 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2016-08-24 21:43:58 +0000 |
commit | 5d13a6397c4dccc78dc13c4bf23d651485868904 (patch) | |
tree | 0cb9792a426f118df31775fe7a6f117bdacf1b1c /puppet/swift-storage.yaml | |
parent | fbe9ec9405ad670da3ab21533aa29743388ee243 (diff) | |
parent | b542ce77775631bd0f7621a9a4decfdbc42ff891 (diff) |
Merge "Permit usage of raw disks as backends for Swift storage"
Diffstat (limited to 'puppet/swift-storage.yaml')
-rw-r--r-- | puppet/swift-storage.yaml | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/puppet/swift-storage.yaml b/puppet/swift-storage.yaml index dc28ee76..1f3022b8 100644 --- a/puppet/swift-storage.yaml +++ b/puppet/swift-storage.yaml @@ -101,6 +101,10 @@ parameters: type: string description: Command which will be run whenever configuration data changes default: os-refresh-config --timeout 14400 + SwiftRawDisks: + default: {} + description: 'A hash of additional raw devices to use as Swift backend (eg. {sdb: {}})' + type: json resources: @@ -377,7 +381,14 @@ outputs: description: Swift device formatted for swift-ring-builder value: str_replace: - template: 'r1z1-IP:%PORT%/d1' + template: + list_join: + - ',' + - ['r1z1-IP:%PORT%/d1'] + - repeat: + template: 'r1z1-IP:%PORT%/DEVICE' + for_each: + DEVICE: {get_param: SwiftRawDisks} params: IP: get_attr: |