* 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 #40410
This commit is contained in:
parent
858f0fc000
commit
0211fb7a78
1 changed files with 12 additions and 2 deletions
|
@ -111,6 +111,16 @@ EXAMPLES = """
|
|||
options:
|
||||
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
|
||||
gluster_volume:
|
||||
state: started
|
||||
|
@ -409,8 +419,8 @@ def main():
|
|||
if cluster is not None and len(cluster) > 1 and cluster[-1] == '':
|
||||
cluster = cluster[0:-1]
|
||||
|
||||
if cluster is None or cluster[0] == '':
|
||||
cluster = [myhostname]
|
||||
if cluster is None:
|
||||
cluster = []
|
||||
|
||||
if brick_paths is not None and "," in brick_paths:
|
||||
brick_paths = brick_paths.split(",")
|
||||
|
|
Loading…
Reference in a new issue