From aee822f4f7fbe56c70cda56279d4a046176f6ca0 Mon Sep 17 00:00:00 2001 From: preussal Date: Thu, 5 Sep 2019 13:16:49 +0700 Subject: [PATCH] Update director.sls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit changed pkg order to install "bareos-database-mysql" or "bareos-database-postgresql" or others. Before always the "bareos-database-postgresql" was installed. and the mysql always after that. that comes from the dependencies in the bareos-database-common apt-cache depends bareos-database-common bareos-database-common   | PreDepends: debconf    PreDepends:      cdebconf      debconf    Depends: bareos-common   | Depends: bareos-database-postgresql   | Depends: bareos-database-mysql    Depends: bareos-database-sqlite3    Depends: dbconfig-common    Depends: lsb-base    Depends: libc6    Depends: libgcc1    Depends: libstdc ++ 6 --- bareos/director.sls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bareos/director.sls b/bareos/director.sls index 8022a00..b6eef0e 100644 --- a/bareos/director.sls +++ b/bareos/director.sls @@ -4,7 +4,7 @@ {% set dir_config = bareos.director.config if bareos.director.config is defined else {} %} {% set require_password = ['client', 'console', 'director', 'storage'] %} {% set backend_db_pkg = "bareos-database-" + bareos.director.database.backend %} -{% set pkgs = [bareos.director.pkg, backend_db_pkg] %} +{% set pkgs = [backend_db_pkg, bareos.director.pkg] %} include: - bareos.generate_password