Merge pull request #514 from andymcc/mount_point_def
Default out mount_point and drives
This commit is contained in:
commit
dbd6f044fc
@ -10,6 +10,8 @@
|
||||
# You can set one policy to be "default: yes" this will be the default storage policy for non-legacy containers that are created.
|
||||
# The index value must be unique.
|
||||
# Storage policies can be set to "deprecated: yes" which will mean they are not used
|
||||
# You can specify a default mount_point to avoid having to specify it for each node.
|
||||
# This can be overridden by specifying it for a specific node.
|
||||
# You can specify default drives in the global_overrides section, these drives will be used
|
||||
# if no other drives are specified per device. These work in the same way as the per node
|
||||
# drives, so the same settings can be used.
|
||||
@ -33,6 +35,7 @@
|
||||
# index: 1
|
||||
# repl_number: 2
|
||||
# deprecated: yes
|
||||
# mount_point: /mnt
|
||||
# drives:
|
||||
# - name: sdb
|
||||
# - name: sdc
|
||||
|
@ -5,7 +5,7 @@ bind_port = {{ swift_account_port }}
|
||||
# backlog = 4096
|
||||
user = {{ system_user }}
|
||||
# swift_dir = /etc/swift
|
||||
devices = {{ swift_vars.mount_point }}
|
||||
devices = {{ swift_vars.mount_point | default(swift.mount_point) }}
|
||||
# mount_check = true
|
||||
# disable_fallocate = false
|
||||
#
|
||||
|
@ -5,7 +5,7 @@ bind_port = {{ swift_container_port }}
|
||||
# backlog = 4096
|
||||
user = {{ system_user }}
|
||||
# swift_dir = /etc/swift
|
||||
devices = {{ swift_vars.mount_point }}
|
||||
devices = {{ swift_vars.mount_point | default(swift.mount_point) }}
|
||||
# mount_check = true
|
||||
# disable_fallocate = false
|
||||
#
|
||||
|
@ -5,7 +5,7 @@ bind_port = {{ swift_object_port }}
|
||||
# backlog = 4096
|
||||
user = {{ system_user }}
|
||||
swift_dir = /etc/swift
|
||||
devices = {{ swift_vars.mount_point }}
|
||||
devices = {{ swift_vars.mount_point | default(swift.mount_point) }}
|
||||
# mount_check = true
|
||||
# disable_fallocate = false
|
||||
# expiring_objects_container_divisor = 86400
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
- name: "Set ownership on mounted drives"
|
||||
file:
|
||||
dest: "{{ swift_vars.mount_point }}/{{ item.name }}"
|
||||
dest: "{{ swift_vars.mount_point | default(swift.mount_point) }}/{{ item.name }}"
|
||||
owner: "{{ system_user }}"
|
||||
group: "{{ system_group }}"
|
||||
state: "directory"
|
||||
@ -24,7 +24,7 @@
|
||||
|
||||
- name: "Set ownership on default mounted drives"
|
||||
file:
|
||||
dest: "{{ swift_vars.mount_point }}/{{ item.name }}"
|
||||
dest: "{{ swift_vars.mount_point | default(swift.mount_point) }}/{{ item.name }}"
|
||||
owner: "{{ system_user }}"
|
||||
group: "{{ system_group }}"
|
||||
state: "directory"
|
||||
|
Loading…
Reference in New Issue
Block a user