File tree Expand file tree Collapse file tree 2 files changed +33
-11
lines changed Expand file tree Collapse file tree 2 files changed +33
-11
lines changed Original file line number Diff line number Diff line change 1+ case $facts [' os' ][' name' ] {
2+ ' Debian' : {
3+ # On Debian it seems that make is searching for mkdir in /usr/bin/ but mkdir
4+ # does not exist. Symlink it from /bin/mkdir to make it work.
5+ file { '/usr/bin/mkdir' :
6+ ensure => link,
7+ target => ' /bin/mkdir' ,
8+ }
9+ }
10+ ' Ubuntu' : {
11+ # The Ubuntu 18.04+ docker image has a dpkg config that won't install docs, to keep used space low
12+ # zabbix packages their SQL file as doc, we need that for bootstrapping the database
13+ file { '/etc/dpkg/dpkg.cfg.d/excludes' :
14+ ensure => absent ,
15+ }
16+ }
17+ default: {}
18+ }
19+
20+ case $facts [' os' ][' family' ] {
21+ ' RedHat' : {
22+ if $facts [' os' ][' release' ][' major' ] == ' 7' {
23+ # The CentOS docker image has a yum config that won't install docs, to keep used space low
24+ # zabbix packages their SQL file as doc, we need that for bootstrapping the database
25+ augeas { 'remove tsflags=nodocs from yum.conf' :
26+ changes => [
27+ ' rm /files/etc/yum.conf/main/tsflags' ,
28+ ],
29+ }
30+ }
31+ }
32+ default: {}
33+ }
Original file line number Diff line number Diff line change 33def prepare_host
44 if fact ( 'os.family' ) == 'RedHat'
55 shell ( 'rm -rf /etc/yum.repos.d/Zabbix*.repo; rm -rf /var/cache/yum/x86_64/*/Zabbix*; yum clean all --verbose' )
6- # The CentOS docker image has a yum config that won't install docs, to keep used space low
7- # zabbix packages their SQL file as doc, we need that for bootstrapping the database
8- shell ( 'sed -i "/nodocs/d" /etc/yum.conf' ) if fact ( 'os.release.major' ) . to_i == 7
96 end
107
11- # The Ubuntu 18.04+ docker image has a dpkg config that won't install docs, to keep used space low
12- # zabbix packages their SQL file as doc, we need that for bootstrapping the database
13- shell ( 'rm -f /etc/dpkg/dpkg.cfg.d/excludes' ) if fact ( 'os.distro.id' ) == 'Ubuntu'
14-
15- # On Debian it seems that make is searching for mkdir in /usr/bin/ but mkdir
16- # does not exist. Symlink it from /bin/mkdir to make it work.
17- shell ( 'ln -sf /bin/mkdir /usr/bin/mkdir' ) if fact ( 'os.distro.id' ) == 'Debian'
18-
198 cleanup_puppet = <<-SHELL
209 $services = $facts['os']['family'] ? {
2110 'RedHat' => ['zabbix-server', 'httpd'],
You can’t perform that action at this time.
0 commit comments