feat: 新增 MongoDB、Ansible、Ansible Playbook 三个组件
- MongoDB: WiredTiger 引擎、认证、TLS、副本集、Oplog、压缩算法 - Ansible: SSH 连接、Pipelining、Become 提权、Forks、日志、事实缓存 - Ansible Playbook: 变量、包管理、服务管理、文件复制、模板渲染、Shell、Handlers - 更新 README 组件矩阵与项目结构 - 更新 Schema 注册中心,新增自动化运维分类
This commit is contained in:
+16
-1
@@ -1,23 +1,32 @@
|
||||
import { nginxSchema, generateNginxConf } from './nginx'
|
||||
import { redisSchema, generateRedisConf } from './redis'
|
||||
import { mysqlSchema, generateMysqlConf } from './mysql'
|
||||
import { mongodbSchema, generateMongodbConf } from './mongodb'
|
||||
import { k8sDeploymentSchema, generateK8sDeploymentYaml } from './k8s-deployment'
|
||||
import { k8sServiceSchema, generateK8sServiceYaml } from './k8s-service'
|
||||
import { ansibleSchema, generateAnsibleCfg } from './ansible'
|
||||
import { ansiblePlaybookSchema, generateAnsiblePlaybookYaml } from './ansible-playbook'
|
||||
|
||||
export const schemas = {
|
||||
nginx: nginxSchema,
|
||||
redis: redisSchema,
|
||||
mysql: mysqlSchema,
|
||||
mongodb: mongodbSchema,
|
||||
'k8s-deployment': k8sDeploymentSchema,
|
||||
'k8s-service': k8sServiceSchema,
|
||||
ansible: ansibleSchema,
|
||||
'ansible-playbook': ansiblePlaybookSchema,
|
||||
}
|
||||
|
||||
export const generators = {
|
||||
nginx: generateNginxConf,
|
||||
redis: generateRedisConf,
|
||||
mysql: generateMysqlConf,
|
||||
mongodb: generateMongodbConf,
|
||||
'k8s-deployment': generateK8sDeploymentYaml,
|
||||
'k8s-service': generateK8sServiceYaml,
|
||||
ansible: generateAnsibleCfg,
|
||||
'ansible-playbook': generateAnsiblePlaybookYaml,
|
||||
}
|
||||
|
||||
export const categories = [
|
||||
@@ -34,13 +43,18 @@ export const categories = [
|
||||
{
|
||||
name: '数据库',
|
||||
icon: 'Coin',
|
||||
items: ['mysql'],
|
||||
items: ['mysql', 'mongodb'],
|
||||
},
|
||||
{
|
||||
name: '云原生',
|
||||
icon: 'Box',
|
||||
items: ['k8s-deployment', 'k8s-service'],
|
||||
},
|
||||
{
|
||||
name: '自动化运维',
|
||||
icon: 'Files',
|
||||
items: ['ansible', 'ansible-playbook'],
|
||||
},
|
||||
]
|
||||
|
||||
export function getDefaultValues(schema) {
|
||||
@@ -57,6 +71,7 @@ export function getLanguage(format) {
|
||||
const map = {
|
||||
conf: 'ini',
|
||||
cnf: 'ini',
|
||||
cfg: 'ini',
|
||||
yaml: 'yaml',
|
||||
json: 'json',
|
||||
toml: 'toml',
|
||||
|
||||
Reference in New Issue
Block a user