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.
|
# 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.
|
# The index value must be unique.
|
||||||
# Storage policies can be set to "deprecated: yes" which will mean they are not used
|
# 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
|
# 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
|
# 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.
|
# drives, so the same settings can be used.
|
||||||
@ -33,6 +35,7 @@
|
|||||||
# index: 1
|
# index: 1
|
||||||
# repl_number: 2
|
# repl_number: 2
|
||||||
# deprecated: yes
|
# deprecated: yes
|
||||||
|
# mount_point: /mnt
|
||||||
# drives:
|
# drives:
|
||||||
# - name: sdb
|
# - name: sdb
|
||||||
# - name: sdc
|
# - name: sdc
|
||||||
|
@ -5,7 +5,7 @@ bind_port = {{ swift_account_port }}
|
|||||||
# backlog = 4096
|
# backlog = 4096
|
||||||
user = {{ system_user }}
|
user = {{ system_user }}
|
||||||
# swift_dir = /etc/swift
|
# swift_dir = /etc/swift
|
||||||
devices = {{ swift_vars.mount_point }}
|
devices = {{ swift_vars.mount_point | default(swift.mount_point) }}
|
||||||
# mount_check = true
|
# mount_check = true
|
||||||
# disable_fallocate = false
|
# disable_fallocate = false
|
||||||
#
|
#
|
||||||
|
@ -5,7 +5,7 @@ bind_port = {{ swift_container_port }}
|
|||||||
# backlog = 4096
|
# backlog = 4096
|
||||||
user = {{ system_user }}
|
user = {{ system_user }}
|
||||||
# swift_dir = /etc/swift
|
# swift_dir = /etc/swift
|
||||||
devices = {{ swift_vars.mount_point }}
|
devices = {{ swift_vars.mount_point | default(swift.mount_point) }}
|
||||||
# mount_check = true
|
# mount_check = true
|
||||||
# disable_fallocate = false
|
# disable_fallocate = false
|
||||||
#
|
#
|
||||||
|
@ -5,7 +5,7 @@ bind_port = {{ swift_object_port }}
|
|||||||
# backlog = 4096
|
# backlog = 4096
|
||||||
user = {{ system_user }}
|
user = {{ system_user }}
|
||||||
swift_dir = /etc/swift
|
swift_dir = /etc/swift
|
||||||
devices = {{ swift_vars.mount_point }}
|
devices = {{ swift_vars.mount_point | default(swift.mount_point) }}
|
||||||
# mount_check = true
|
# mount_check = true
|
||||||
# disable_fallocate = false
|
# disable_fallocate = false
|
||||||
# expiring_objects_container_divisor = 86400
|
# expiring_objects_container_divisor = 86400
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
- name: "Set ownership on mounted drives"
|
- name: "Set ownership on mounted drives"
|
||||||
file:
|
file:
|
||||||
dest: "{{ swift_vars.mount_point }}/{{ item.name }}"
|
dest: "{{ swift_vars.mount_point | default(swift.mount_point) }}/{{ item.name }}"
|
||||||
owner: "{{ system_user }}"
|
owner: "{{ system_user }}"
|
||||||
group: "{{ system_group }}"
|
group: "{{ system_group }}"
|
||||||
state: "directory"
|
state: "directory"
|
||||||
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
- name: "Set ownership on default mounted drives"
|
- name: "Set ownership on default mounted drives"
|
||||||
file:
|
file:
|
||||||
dest: "{{ swift_vars.mount_point }}/{{ item.name }}"
|
dest: "{{ swift_vars.mount_point | default(swift.mount_point) }}/{{ item.name }}"
|
||||||
owner: "{{ system_user }}"
|
owner: "{{ system_user }}"
|
||||||
group: "{{ system_group }}"
|
group: "{{ system_group }}"
|
||||||
state: "directory"
|
state: "directory"
|
||||||
|
Loading…
Reference in New Issue
Block a user