prise en compte mysql + script init ha

This commit is contained in:
2019-02-08 17:43:22 +01:00
parent d3948bcd06
commit 227f568aab
4 changed files with 40 additions and 26 deletions

View File

@ -80,16 +80,18 @@ PORT = 2633
LISTEN_ADDRESS = "127.0.0.1"
%if %%one_database_type == "sqlite"
DB = [ BACKEND = "sqlite" ]
%else
# Sample configuration for MySQL
# DB = [ BACKEND = "mysql",
# SERVER = "localhost",
# PORT = 0,
# USER = "oneadmin",
# PASSWD = "oneadmin",
# DB_NAME = "opennebula",
# CONNECTIONS = 50 ]
DB = [ BACKEND = "mysql",
SERVER = "%%one_database_host",
PORT = %%one_database_port,
USER = "%%one_database_user",
PASSWD = "%%one_database_pass",
DB_NAME = "%%one_database_name",
CONNECTIONS = 50 ]
%end if
VNC_PORTS = [
START = 5900