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

Modeling a simple Python application

Here we will consider a web.py application that has two primary components: a web server and a database server. We will provision one host for each role, bootstrap them, and deploy the software onto our new hosts.

Our application stack will consist of the following:

  • web.py as our web framework
  • PostgreSQL for data storage
  • EC2 for virtual hosts

We want to define two primary roles that represent our web server and our database server. In addition, we will construct a baseline role for all our servers that will supply any common data we need such as user accounts, SSH keys, network configuration data, shells, common utilities, libraries, and so on.

We will need to find or write cookbooks for the following components we will use:

  • Python
  • supervisord
  • PostgreSQL
  • User accounts
  • Our custom web application
主站蜘蛛池模板: 左贡县| 建宁县| 商洛市| 多伦县| 友谊县| 文水县| 固原市| 广州市| 永安市| 博兴县| 华阴市| 墨竹工卡县| 黄浦区| 拉孜县| 东光县| 长岛县| 武隆县| 谢通门县| 新和县| 林甸县| 宜丰县| 华坪县| 邳州市| 湖北省| 江西省| 于都县| 安陆市| 济宁市| 孝感市| 洞头县| 青岛市| 金门县| 辉南县| 皮山县| 邹城市| 大石桥市| 厦门市| 额济纳旗| 伊金霍洛旗| 房产| 三河市|