官术网_书友最值得收藏!

Deploying software with Chef

There are numerous benefits to deploying your software using Chef; the primary benefit is automation—the chef-client can be run periodically, and it can execute fully-automated deployments whenever changes are made to the source code repository. Additionally, Chef stores all your configuration data, so you can avoid storing sensitive secrets and hard-coding URLs or other dynamic data in your configuration. For example, if you have an application with a database pool, and you add a new database host to your pool, Chef can use a simple search to populate the list of hosts to include in the connection pool so that it is always up to date with your infrastructure.

However, deploying software with Chef does require some coordination between your application and Chef. You will need to maintain recipes required for deploying your application, and you will also want to use Chef as the authoritative source for your configuration data, which involves writing configuration templates. By using Chef to manage your deployments, you can also generate any configuration data needed to run your software based on your infrastructure configuration; in our case, a simple config.py file for your web.py application. This method can also be used to manage the database.yml file (and any other YAML files) for Rails applications, the server.yml file for a Dropwizard application, or any other configuration files needed to run your service.

Tip

YAML is a simple markup language to store configuration data. It is popular with modern developers because it is easy to parse and is very expressive, similar to JSON.

主站蜘蛛池模板: 镶黄旗| 松江区| 建德市| 成武县| 淮阳县| 三门峡市| 白城市| 江华| 定西市| 宣威市| 阳春市| 南平市| 富川| 吉首市| 黎川县| 克什克腾旗| 金门县| 南澳县| 托克逊县| 泾阳县| 洮南市| 四川省| 二连浩特市| 玛纳斯县| 舟山市| 汉沽区| 青龙| 张家界市| 奈曼旗| 利辛县| 城固县| 泸定县| 辰溪县| 当雄县| 房产| 沁水县| 灌南县| 明光市| 富锦市| 平和县| 吴江市|