feat: 新增 15 个服务组件,总计 59 个
系统服务: NTP, DHCP, BIND, NFS, SAMBA, RSYNC, Sersync, vsftpd, Subversion 数据库中间件: Mycat CI/CD: GitLab, Jenkins 高可用: Keepalived, HAProxy, LVS 新增 4 个分类: 系统服务、数据库中间件、CI/CD、高可用
This commit is contained in:
@@ -74,6 +74,29 @@ import { syslogSchema, generateSyslogConf } from './syslog'
|
||||
import { ansibleSchema, generateAnsibleCfg } from './ansible'
|
||||
import { ansiblePlaybookSchema, generateAnsiblePlaybookYaml } from './ansible-playbook'
|
||||
|
||||
// ============ CI/CD ============
|
||||
import { gitlabSchema, generateGitlabRb } from './gitlab'
|
||||
import { jenkinsSchema, generateJenkinsYaml } from './jenkins'
|
||||
|
||||
// ============ 高可用 ============
|
||||
import { keepalivedSchema, generateKeepalivedConf } from './keepalived'
|
||||
import { haproxySchema, generateHaproxyCfg } from './haproxy'
|
||||
import { lvsSchema, generateLvsConf } from './lvs'
|
||||
|
||||
// ============ 系统服务 ============
|
||||
import { ntpSchema, generateNtpConf } from './ntp'
|
||||
import { dhcpSchema, generateDhcpConf } from './dhcp'
|
||||
import { bindSchema, generateBindConf } from './bind'
|
||||
import { nfsSchema, generateNfsExports } from './nfs'
|
||||
import { sambaSchema, generateSambaConf } from './samba'
|
||||
import { rsyncSchema, generateRsyncConf } from './rsync'
|
||||
import { sersyncSchema, generateSersyncXml } from './sersync'
|
||||
import { vsftpdSchema, generateVsftpdConf } from './vsftpd'
|
||||
import { subversionSchema, generateSubversionConf } from './subversion'
|
||||
|
||||
// ============ 数据库中间件 ============
|
||||
import { mycatSchema, generateMycatServerXml } from './mycat'
|
||||
|
||||
// ============================================================
|
||||
// Schema Registry
|
||||
// ============================================================
|
||||
@@ -139,6 +162,25 @@ export const schemas = {
|
||||
// 自动化运维
|
||||
ansible: ansibleSchema,
|
||||
'ansible-playbook': ansiblePlaybookSchema,
|
||||
// CI/CD
|
||||
gitlab: gitlabSchema,
|
||||
jenkins: jenkinsSchema,
|
||||
// 高可用
|
||||
keepalived: keepalivedSchema,
|
||||
haproxy: haproxySchema,
|
||||
lvs: lvsSchema,
|
||||
// 系统服务
|
||||
ntp: ntpSchema,
|
||||
dhcp: dhcpSchema,
|
||||
bind: bindSchema,
|
||||
nfs: nfsSchema,
|
||||
samba: sambaSchema,
|
||||
rsync: rsyncSchema,
|
||||
sersync: sersyncSchema,
|
||||
vsftpd: vsftpdSchema,
|
||||
subversion: subversionSchema,
|
||||
// 数据库中间件
|
||||
mycat: mycatSchema,
|
||||
}
|
||||
|
||||
// ============================================================
|
||||
@@ -190,6 +232,25 @@ export const generators = {
|
||||
syslog: generateSyslogConf,
|
||||
ansible: generateAnsibleCfg,
|
||||
'ansible-playbook': generateAnsiblePlaybookYaml,
|
||||
// CI/CD
|
||||
gitlab: generateGitlabRb,
|
||||
jenkins: generateJenkinsYaml,
|
||||
// 高可用
|
||||
keepalived: generateKeepalivedConf,
|
||||
haproxy: generateHaproxyCfg,
|
||||
lvs: generateLvsConf,
|
||||
// 系统服务
|
||||
ntp: generateNtpConf,
|
||||
dhcp: generateDhcpConf,
|
||||
bind: generateBindConf,
|
||||
nfs: generateNfsExports,
|
||||
samba: generateSambaConf,
|
||||
rsync: generateRsyncConf,
|
||||
sersync: generateSersyncXml,
|
||||
vsftpd: generateVsftpdConf,
|
||||
subversion: generateSubversionConf,
|
||||
// 数据库中间件
|
||||
mycat: generateMycatServerXml,
|
||||
}
|
||||
|
||||
// ============================================================
|
||||
@@ -277,6 +338,26 @@ export const categories = [
|
||||
icon: 'Files',
|
||||
items: ['ansible', 'ansible-playbook'],
|
||||
},
|
||||
{
|
||||
name: 'CI/CD',
|
||||
icon: 'Files',
|
||||
items: ['gitlab', 'jenkins'],
|
||||
},
|
||||
{
|
||||
name: '高可用',
|
||||
icon: 'Connection',
|
||||
items: ['keepalived', 'haproxy', 'lvs'],
|
||||
},
|
||||
{
|
||||
name: '系统服务',
|
||||
icon: 'Setting',
|
||||
items: ['ntp', 'dhcp', 'bind', 'nfs', 'samba', 'rsync', 'sersync', 'vsftpd', 'subversion'],
|
||||
},
|
||||
{
|
||||
name: '数据库中间件',
|
||||
icon: 'Coin',
|
||||
items: ['mycat'],
|
||||
},
|
||||
]
|
||||
|
||||
// ============================================================
|
||||
@@ -299,6 +380,7 @@ export function getLanguage(format) {
|
||||
cnf: 'ini',
|
||||
cfg: 'ini',
|
||||
ora: 'ini',
|
||||
rb: 'ruby',
|
||||
yml: 'yaml',
|
||||
yaml: 'yaml',
|
||||
json: 'json',
|
||||
|
||||
Reference in New Issue
Block a user