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

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
主站蜘蛛池模板: 汉源县| 来宾市| 康马县| 南靖县| 大竹县| 赫章县| 囊谦县| 定兴县| 天镇县| 仙游县| 华坪县| 龙州县| 宜都市| 姜堰市| 萍乡市| 内丘县| 屏东市| 嘉善县| 海伦市| 蓝田县| 广宁县| 平和县| 平和县| 车致| 大兴区| 江安县| 繁昌县| 南投市| 新兴县| 婺源县| 峨山| 德江县| 易门县| 莱阳市| 西和县| 舞钢市| 洛川县| 岢岚县| 青岛市| 普定县| 阿瓦提县|