[jenkins-ci PATCH 3/3] guests: Configure ccache

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

 



Disk size for guests is somewhat limited, so we need to tell
ccache to only consume a reasonable chunk of it.

Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx>
---
 guests/files/ccache.conf |  1 +
 guests/tasks/user.yml    | 10 ++++++++++
 2 files changed, 11 insertions(+)
 create mode 100644 guests/files/ccache.conf

diff --git a/guests/files/ccache.conf b/guests/files/ccache.conf
new file mode 100644
index 0000000..48c3756
--- /dev/null
+++ b/guests/files/ccache.conf
@@ -0,0 +1 @@
+max_size = 2G
diff --git a/guests/tasks/user.yml b/guests/tasks/user.yml
index 781c3d4..3db5258 100644
--- a/guests/tasks/user.yml
+++ b/guests/tasks/user.yml
@@ -30,3 +30,13 @@
     validate: 'visudo -cf %s'
   when:
     - flavor == 'test'
+
+- name: '{{ flavor }}: Configure ccache'
+  file:
+    path: /home/{{ flavor }}/.ccache
+    state: directory
+
+- name: '{{ flavor }}: Configure ccache'
+  copy:
+    src: files/ccache.conf
+    dest: /home/{{ flavor }}/.ccache/ccache.conf
-- 
2.14.3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux