summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclime <clime@redhat.com>2016-11-22 16:48:58 +0100
committerclime <clime@redhat.com>2016-11-22 16:57:58 +0100
commite7aa36f1699ddb0bcb9050f5aba9f8ca7ee26b3f (patch)
tree770404d5eefb33759eedbd6e034ad1c15b677eed
parent79ebeb098b44cb4993900c5687e28ed0ca247c30 (diff)
downloadansible-e7aa36f1699ddb0bcb9050f5aba9f8ca7ee26b3f.tar.gz
ansible-e7aa36f1699ddb0bcb9050f5aba9f8ca7ee26b3f.tar.xz
ansible-e7aa36f1699ddb0bcb9050f5aba9f8ca7ee26b3f.zip
copr-backend: do not enable tmpfs mock plugin on ppc64le builders
we do not have the same disk space available as on x86_64 builders
-rw-r--r--roles/copr/backend/files/provision/files/mock/site-defaults.cfg2
1 files changed, 2 insertions, 0 deletions
diff --git a/roles/copr/backend/files/provision/files/mock/site-defaults.cfg b/roles/copr/backend/files/provision/files/mock/site-defaults.cfg
index d8491025e..399126e6f 100644
--- a/roles/copr/backend/files/provision/files/mock/site-defaults.cfg
+++ b/roles/copr/backend/files/provision/files/mock/site-defaults.cfg
@@ -14,12 +14,14 @@ config_opts['plugin_conf']['compress_logs_enable'] = True
config_opts['plugin_conf']['compress_logs_opts'] = {}
config_opts['plugin_conf']['compress_logs_opts']['command'] = "/usr/bin/gzip -9 --force"
+{% if ansible_architecture == 'x86_64' %}
config_opts['plugin_conf']['tmpfs_enable'] = True
config_opts['plugin_conf']['tmpfs_opts'] = {}
config_opts['plugin_conf']['tmpfs_opts']['required_ram_mb'] = 1024
config_opts['plugin_conf']['tmpfs_opts']['max_fs_size'] = '75g'
config_opts['plugin_conf']['tmpfs_opts']['mode'] = '0755'
config_opts['plugin_conf']['tmpfs_opts']['keep_mounted'] = False
+{% endif %}
{% if ansible_distribution == 'Fedora' and ansible_distribution_major_version|int > 21 %}
config_opts['yum_command'] = '/usr/bin/yum-deprecated'