[PATCH 2/2] Replace non working option by a jinja2 snippet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Asking to gluster devs, they were surprised this would be
working in the first place.
---
 roles/gluster/client/templates/client.config | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/roles/gluster/client/templates/client.config b/roles/gluster/client/templates/client.config
index 668aa6a..ffd059e 100644
--- a/roles/gluster/client/templates/client.config
+++ b/roles/gluster/client/templates/client.config
@@ -38,7 +38,7 @@ end-volume
 
 volume iocache
 	type performance/io-cache
-	option cache-size `grep 'MemTotal' /proc/meminfo  | awk '{print $2 * 0.2 / 1024}' | cut -f1 -d.`MB
+	option cache-size {{ (ansible_memtotal_mb / 5) |round |int }}MB
 	option cache-timeout 30
 	subvolumes iothreads
 end-volume
-- 
1.8.3.1
_______________________________________________
infrastructure mailing list
infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
https://lists.fedoraproject.org/admin/lists/infrastructure@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux