bacula: Added postgresql support to bacula::web.
This commit is contained in:
parent
9a81434b7e
commit
22fe5d29bf
2 changed files with 9 additions and 0 deletions
|
@ -466,6 +466,11 @@ class bacula::web($htaccess,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"sqlite": { }
|
"sqlite": { }
|
||||||
|
"postgresql": {
|
||||||
|
class { "php::pgsql":
|
||||||
|
before => File["/usr/local/src/bacula-web.tar.gz"],
|
||||||
|
}
|
||||||
|
}
|
||||||
default: {
|
default: {
|
||||||
fail("Invalid \$dbadapter '${dbadapter}' in bacula::web")
|
fail("Invalid \$dbadapter '${dbadapter}' in bacula::web")
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,11 @@ $config[0]['host'] = '<%= @dbserver %>';
|
||||||
$config[0]['login'] = '<%= @dbuser %>';
|
$config[0]['login'] = '<%= @dbuser %>';
|
||||||
$config[0]['password'] = '<%= @dbpassword %>';
|
$config[0]['password'] = '<%= @dbpassword %>';
|
||||||
$config[0]['db_name'] = '<%= @dbname %>';
|
$config[0]['db_name'] = '<%= @dbname %>';
|
||||||
|
<% if @dbadapter == 'postgresql' -%>
|
||||||
|
$config[0]['db_type'] = 'pgsql';
|
||||||
|
<% else -%>
|
||||||
$config[0]['db_type'] = 'mysql';
|
$config[0]['db_type'] = 'mysql';
|
||||||
|
<% end -%>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Add table
Reference in a new issue