diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-06-12 18:06:31 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-06-12 18:06:31 +0000 |
commit | f2331fe312fa935872a0d469ca9e1cd9eee17ca3 (patch) | |
tree | 8a1916908115011f1a7d9a9fe4cf6de450d14478 /docker/services | |
parent | 38f811ca144387226dd617e01276e15f4b436b00 (diff) | |
parent | ef8572acfe04e04fcc4f8e1a17489f89c544d26f (diff) |
Merge "Fix containerized SwiftRawDisks usage"
Diffstat (limited to 'docker/services')
-rw-r--r-- | docker/services/swift-storage.yaml | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/docker/services/swift-storage.yaml b/docker/services/swift-storage.yaml index 017fb123..55aea208 100644 --- a/docker/services/swift-storage.yaml +++ b/docker/services/swift-storage.yaml @@ -46,6 +46,11 @@ parameters: via parameter_defaults in the resource registry. This mapping overrides those in ServiceNetMapDefaults. type: json + SwiftRawDisks: + default: {} + description: 'A hash of additional raw devices to use as Swift backend (eg. {sdb: {}})' + type: json + resources: @@ -66,7 +71,11 @@ outputs: description: Role data for the swift storage services. value: service_name: {get_attr: [SwiftStorageBase, role_data, service_name]} - config_settings: {get_attr: [SwiftStorageBase, role_data, config_settings]} + config_settings: + map_merge: + - {get_attr: [SwiftStorageBase, role_data, config_settings]} + # FIXME (cschwede): re-enable this once checks works inside containers + - swift::storage::all::mount_check: false step_config: &step_config get_attr: [SwiftStorageBase, role_data, step_config] service_config_settings: {get_attr: [SwiftStorageBase, role_data, service_config_settings]} @@ -348,6 +357,18 @@ outputs: with_items: - /var/log/containers/swift - /srv/node + - name: Format and mount devices defined in SwiftRawDisks + mount: + name: /srv/node/{{ item }} + src: /dev/{{ item }} + fstype: xfs + opts: noatime + state: mounted + with_items: + - repeat: + template: 'DEVICE' + for_each: + DEVICE: {get_param: SwiftRawDisks} upgrade_tasks: - name: Stop and disable swift storage services tags: step2 |