知识卡片
服务器角色聚合配置
服务器角色指定要应用哪些配置模块及默认参数,例如应用服务、监控、日志和网络加固。可组合多个细角色,也可用单个高层角色,或继承公共基础角色。需要保持一种明确且一致的组织方式,否则角色会逐渐变成难理解的模块和参数叠加。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 以代码构建服务器 · 查看原书依据
In addition to specifying which server code modules to apply to a server, a role may set default parameter values for the modules to use. For example, you may create an application-server role: role: application-server server_modules: - jboss - monitoring_agent - logging_agent - network_hardening parameters: - inbound_port: 8443 Assigning this role to a server applies
参考来源
- 位置:《Infrastructure As Code》第11章《以代码构建服务器》(来源项目:book-sources;源文件:extracted/Infrastructure As Code/_epub-src/OEBPS/ch11.html)
- 结论依据:原文说明服务器角色指定要应用哪些配置模块及默认参数,例如应用服务、监控、日志和网络加固;本卡据此解释其用途及适用边界。
- 原始内容:In addition to specifying which server code modules to apply to a server, a role may set default parameter values for the modules to use. For example, you may create an application-server role: role: application-server server_modules: - jboss - monitoring_agent - logging_agent - network_hardening parameters: - inbound_port: 8443 Assigning this role to a server applies