Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
bc3a8a00
Commit
bc3a8a00
authored
5 years ago
by
holmesb
Committed by
Kubernetes Prow Robot
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fixes issue #5299 (#5300)
parent
45d151a6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
contrib/network-storage/glusterfs/roles/glusterfs/server/tasks/main.yml
+13
-1
13 additions, 1 deletion
...k-storage/glusterfs/roles/glusterfs/server/tasks/main.yml
with
13 additions
and
1 deletion
contrib/network-storage/glusterfs/roles/glusterfs/server/tasks/main.yml
+
13
−
1
View file @
bc3a8a00
...
...
@@ -36,7 +36,7 @@
-
"
{{
gluster_brick_dir
}}"
-
"
{{
gluster_mount_dir
}}"
-
name
:
Configure Gluster volume
.
-
name
:
Configure Gluster volume
with replicas
gluster_volume
:
state
:
present
name
:
"
{{
gluster_brick_name
}}"
...
...
@@ -46,6 +46,18 @@
host
:
"
{{
inventory_hostname
}}"
force
:
yes
run_once
:
true
when
:
groups['gfs-cluster']|length >
1
-
name
:
Configure Gluster volume without replicas
gluster_volume
:
state
:
present
name
:
"
{{
gluster_brick_name
}}"
brick
:
"
{{
gluster_brick_dir
}}"
cluster
:
"
{%
for
item
in
groups['gfs-cluster']
-%}{{
hostvars[item]['ip']|default(hostvars[item].ansible_default_ipv4['address'])
}}{%
if
not
loop.last
%},{%
endif
%}{%-
endfor
%}"
host
:
"
{{
inventory_hostname
}}"
force
:
yes
run_once
:
true
when
:
groups['gfs-cluster']|length <=
1
-
name
:
Mount glusterfs to retrieve disk size
mount
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment