* Add documentation for setting multiple options. * Do not set `cluster' to myhostname, if cluster is not set. This will cause parse error, since module will try to parse the brick and hosts. * Also fixes issue #40410pull/4420/head
parent
858f0fc000
commit
0211fb7a78
|
@ -111,6 +111,16 @@ EXAMPLES = """
|
||||||
options:
|
options:
|
||||||
performance.cache-size: 256MB
|
performance.cache-size: 256MB
|
||||||
|
|
||||||
|
- name: Set multiple options on GlusterFS volume
|
||||||
|
gluster_volume:
|
||||||
|
state: present
|
||||||
|
name: test1
|
||||||
|
options:
|
||||||
|
{ performance.cache-size: 128MB,
|
||||||
|
write-behind: 'off',
|
||||||
|
quick-read: 'on'
|
||||||
|
}
|
||||||
|
|
||||||
- name: start gluster volume
|
- name: start gluster volume
|
||||||
gluster_volume:
|
gluster_volume:
|
||||||
state: started
|
state: started
|
||||||
|
@ -409,8 +419,8 @@ def main():
|
||||||
if cluster is not None and len(cluster) > 1 and cluster[-1] == '':
|
if cluster is not None and len(cluster) > 1 and cluster[-1] == '':
|
||||||
cluster = cluster[0:-1]
|
cluster = cluster[0:-1]
|
||||||
|
|
||||||
if cluster is None or cluster[0] == '':
|
if cluster is None:
|
||||||
cluster = [myhostname]
|
cluster = []
|
||||||
|
|
||||||
if brick_paths is not None and "," in brick_paths:
|
if brick_paths is not None and "," in brick_paths:
|
||||||
brick_paths = brick_paths.split(",")
|
brick_paths = brick_paths.split(",")
|
||||||
|
|
Loading…
Reference in New Issue