bacula: Added postgresql support to bacula::web.

This commit is contained in:
Timo Mkinen 2013-05-12 11:28:18 +03:00
parent 9a81434b7e
commit 22fe5d29bf
2 changed files with 9 additions and 0 deletions

View file

@ -466,6 +466,11 @@ class bacula::web($htaccess,
}
}
"sqlite": { }
"postgresql": {
class { "php::pgsql":
before => File["/usr/local/src/bacula-web.tar.gz"],
}
}
default: {
fail("Invalid \$dbadapter '${dbadapter}' in bacula::web")
}

View file

@ -19,7 +19,11 @@ $config[0]['host'] = '<%= @dbserver %>';
$config[0]['login'] = '<%= @dbuser %>';
$config[0]['password'] = '<%= @dbpassword %>';
$config[0]['db_name'] = '<%= @dbname %>';
<% if @dbadapter == 'postgresql' -%>
$config[0]['db_type'] = 'pgsql';
<% else -%>
$config[0]['db_type'] = 'mysql';
<% end -%>
<% end -%>
?>