Skip to content

Commit df9fe81

Browse files
committed
zabbix::web: Allow httpd to speak to the database
Turns out our acceptance tests fail in vagrant because the default centos image has selinux enabled. The docker image on travis not. The is an selinux boolean to allow the httpd service to speak to a database. By default this is of. This PR fixes this.
1 parent 00c3ad4 commit df9fe81

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

manifests/web.pp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,9 +468,15 @@
468468

469469
# check if selinux is active and allow zabbix
470470
if fact('os.selinux.enabled') == true and $manage_selinux {
471+
# allow httpd to speak to the zabbix service
471472
selboolean{'httpd_can_connect_zabbix':
472473
persistent => true,
473474
value => 'on',
474475
}
476+
# allow httpd to speak to the database
477+
selboolean{'httpd_can_network_connect_db':
478+
persistent => true,
479+
value => 'on',
480+
}
475481
}
476482
}

0 commit comments

Comments
 (0)