165
部署
•
微调基础配置来适应新环境。例如
DNS
配置和路由信息会有不同。
•
给引导服务器上(或资产管理系统中)的新机器分配角色。
•
初始化主机并且允许它们安装和自我配置。
To simplify synchronization of settings between datacenters, it
’
s best to keep all
datacenter-specific configurations in a separate service or set of services. This makes
it possible for you to attain maximum reuse out of the service definitions.
小结
如果不能将硬件快速应用到服务程序中,那么对所需硬件的了解就不起什么作用
了。利用类似配置管理和自动安装的工具使基础设施自动化,确保你的部署过程
高效且可重复。自动化将系统管理任务一次性任务转变到可多次利用的构建模块。
延展阅读
1. K. Morris.
Infrastructure as Code.
2. M. Taylor and S. Vargo. (2014).
Learning Chef: A Guide to Configuration
Management and Automation.
3. M. Marschall. (2015).
Chef Infrastructure Automation Cookbook
.
4. L. Hochstein. (2014).
Ansible: Up and Running, Automating Configuration
Management and Deployment ...