mirror of https://github.com/jumpserver/jumpserver
feat: 增加clickhouse
parent
7842e3e5ab
commit
803d68f3fe
|
@ -8,6 +8,7 @@ class DatabaseTypes(BaseType):
|
|||
POSTGRESQL = 'postgresql', 'PostgreSQL'
|
||||
ORACLE = 'oracle', 'Oracle'
|
||||
SQLSERVER = 'sqlserver', 'SQLServer'
|
||||
CLICKHOUSE = 'clickhouse', 'ClickHouse'
|
||||
MONGODB = 'mongodb', 'MongoDB'
|
||||
REDIS = 'redis', 'Redis'
|
||||
|
||||
|
@ -54,6 +55,9 @@ class DatabaseTypes(BaseType):
|
|||
cls.POSTGRESQL: [{'name': 'PostgreSQL'}],
|
||||
cls.ORACLE: [{'name': 'Oracle'}],
|
||||
cls.SQLSERVER: [{'name': 'SQLServer'}],
|
||||
cls.CLICKHOUSE: [
|
||||
{'name': 'ClickHouse', 'automation': {'ansible_enabled': False}}
|
||||
],
|
||||
cls.MONGODB: [{'name': 'MongoDB'}],
|
||||
cls.REDIS: [{'name': 'Redis'}],
|
||||
}
|
||||
|
|
|
@ -15,6 +15,7 @@ class Protocol(ChoicesMixin, models.TextChoices):
|
|||
oracle = 'oracle', 'Oracle'
|
||||
postgresql = 'postgresql', 'PostgreSQL'
|
||||
sqlserver = 'sqlserver', 'SQLServer'
|
||||
clickhouse = 'clickhouse', 'ClickHouse'
|
||||
redis = 'redis', 'Redis'
|
||||
mongodb = 'mongodb', 'MongoDB'
|
||||
|
||||
|
@ -76,6 +77,10 @@ class Protocol(ChoicesMixin, models.TextChoices):
|
|||
'port': 1433,
|
||||
'secret_types': ['password'],
|
||||
},
|
||||
cls.clickhouse: {
|
||||
'port': 9000,
|
||||
'secret_types': ['password'],
|
||||
},
|
||||
cls.mongodb: {
|
||||
'port': 27017,
|
||||
'secret_types': ['password'],
|
||||
|
|
|
@ -62,6 +62,7 @@ class WebMethod(TextChoices):
|
|||
Protocol.oracle: [cls.web_cli, cls.web_gui],
|
||||
Protocol.postgresql: [cls.web_cli, cls.web_gui],
|
||||
Protocol.sqlserver: [cls.web_cli, cls.web_gui],
|
||||
Protocol.clickhouse: [cls.web_cli],
|
||||
Protocol.redis: [cls.web_cli],
|
||||
Protocol.mongodb: [cls.web_cli],
|
||||
|
||||
|
@ -192,8 +193,8 @@ class TerminalType(TextChoices):
|
|||
Protocol.ssh, Protocol.telnet,
|
||||
Protocol.mysql, Protocol.postgresql,
|
||||
Protocol.oracle, Protocol.sqlserver,
|
||||
Protocol.mariadb, Protocol.redis,
|
||||
Protocol.mongodb, Protocol.k8s,
|
||||
Protocol.mariadb, Protocol.clickhouse,
|
||||
Protocol.redis, Protocol.mongodb, Protocol.k8s,
|
||||
],
|
||||
'match': 'm2m'
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue