Skip to content

Commit

Permalink
fix(repo): ensure debconf-utils is installed for Debian-based OSes
Browse files Browse the repository at this point in the history
* To avoid the problem: `'debconf.set' is not available`
  • Loading branch information
myii committed Oct 12, 2019
1 parent 4facac6 commit 4980350
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
7 changes: 7 additions & 0 deletions zabbix/debconf.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{%- from "zabbix/map.jinja" import zabbix with context %}
{%- if grains.os_family == 'Debian' %}
zabbix_debconf-utils:
pkg.installed:
- name: debconf-utils
{%- endif %}
5 changes: 5 additions & 0 deletions zabbix/frontend/conf.sls
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
include:
- zabbix.frontend
{%- if grains.os_family == 'Debian' %}
- zabbix.debconf
{%- endif %}
{{ zabbix.frontend.config }}:
Expand Down Expand Up @@ -39,4 +42,6 @@ zabbix-frontend_debconf:
'zabbix-frontend-php/restart-webserver': {'type': 'boolean', 'value': False}
- prereq:
- pkg: zabbix-frontend-php
- require:
- sls: zabbix.debconf
{%- endif %}
5 changes: 5 additions & 0 deletions zabbix/server/conf.sls
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
include:
- zabbix.server
{%- if grains.os_family == 'Debian' %}
- zabbix.debconf
{%- endif %}
{{ zabbix.server.config }}:
Expand Down Expand Up @@ -35,4 +38,6 @@ zabbix-server_debconf:
'zabbix-server-mysql/dbconfig-upgrade': {'type': 'boolean', 'value': False}
- prereq:
- pkg: zabbix-server
- require:
- sls: zabbix.debconf
{%- endif %}

0 comments on commit 4980350

Please sign in to comment.