Skip to content

Commit a348b7e

Browse files
committed
[ci skip] document acceptance test helper method
This comment was previously in our spec_helper_acceptance.rb. https://github.com/voxpupuli/puppet-zabbix/pull/699/files#diff-174f7dfb508155027cb4c3e9a1840591L5
1 parent 6f4023f commit a348b7e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spec/support/acceptance/prepare_host.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
def prepare_host
22
if fact('os.family') == 'RedHat'
33
shell('rm -rf /etc/yum.repos.d/Zabbix*.repo; rm -rf /var/cache/yum/x86_64/*/Zabbix*; yum clean all --verbose')
4+
# The CentOS docker image has a yum config that won't install docs, to keep used space low
5+
# zabbix packages their SQL file as doc, we need that for bootstrapping the database
46
if fact('os.release.major').to_i == 7
57
shell('sed -i "/nodocs/d" /etc/yum.conf')
68
end

0 commit comments

Comments
 (0)