summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalph Bean <rbean@redhat.com>2016-08-01 15:33:07 +0000
committerRalph Bean <rbean@redhat.com>2016-08-01 15:33:07 +0000
commit741b48ee1450c8ed44ed1b93b9f654cd8caa519c (patch)
tree1b0ccf008b8e262edfa4716dd48fcb23bf02f315
parentd5d344e58bc368598dae2b1d456ee45550b71a89 (diff)
downloadansible-741b48ee1450c8ed44ed1b93b9f654cd8caa519c.tar.gz
ansible-741b48ee1450c8ed44ed1b93b9f654cd8caa519c.tar.xz
ansible-741b48ee1450c8ed44ed1b93b9f654cd8caa519c.zip
Turn on the tmpfs mock plugin for stg koji builders.
Let's see what happens!
-rw-r--r--roles/koji_builder/templates/builders/site-defaults.cfg9
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/koji_builder/templates/builders/site-defaults.cfg b/roles/koji_builder/templates/builders/site-defaults.cfg
index 44571db98..385794536 100644
--- a/roles/koji_builder/templates/builders/site-defaults.cfg
+++ b/roles/koji_builder/templates/builders/site-defaults.cfg
@@ -1,3 +1,12 @@
config_opts['plugin_conf']['package_state_enable'] = False
config_opts['plugin_conf']['ccache_enable'] = False
config_opts['dnf_common_opts'] = ['--setopt=install_weak_deps=0']
+
+{% if env == 'staging' %}
+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'] = '768m'
+config_opts['plugin_conf']['tmpfs_opts']['mode'] = '0755'
+config_opts['plugin_conf']['tmpfs_opts']['keep_mounted'] = False
+{% endif %}