Changes between Version 1 and Version 2 of DeveloperGuidelines/DeploymentTools
- Timestamp:
- 08/18/14 17:05:11 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/DeploymentTools
v1 v2 16 16 * User may add a signle role (all) or multiple roles (db, webserver, eden) 17 17 * User may only associate a single instance (prod/demo) while creating the deployment. Others may be added after succesful deployment of the first one. 18 * On form submit, a YML file is generated in the yaml/ directory of the application (examples [https://github.com/ gnarula/eden_playbook/tree/master/examples] and ansible is ran using the web2py scheduler.18 * On form submit, a YML file is generated in the yaml/ directory of the application (examples [https://github.com/sahana/eden_playbook/tree/master/examples] and ansible is ran using the web2py scheduler. 19 19 * The success/failure is reported once the scheduler task is completed. 20 * If successful, the user may further add instances (eg. demo/test) to the same deployment or issue management tasks using tabs/buttons in the rheader (TODO)20 * If successful, the user may further add instances (eg. demo/test) to the same deployment or issue management tasks using tabs/buttons in the rheader 21 21 22 22 == Schema == 23 24 TODO: ER Diagram?25 The detailed schema is available at http://paste.ubuntu.com/7872567/26 23 27 24 The setup_deployment table is used to store various attributes related to the deployment. … … 29 26 The setup_instance table is used to store the type of instances along with its URL and a FK to scheduler_id. Each time an instance is added to the deployment, a YAML file is created in the background and ansible is called using the web2py scheduler. 30 27 31 The setup_server _roletable is used to store the role (all/db/webserver/eden) of a particular host in the deployment along with its IP and hostname.28 The setup_server table is used to store the role (all/db/webserver/eden) of a particular host in the deployment along with its IP and hostname. 32 29 33 The setup_host table acts as a link table to link all the 3 tables above.34 30 35 31 '''Background Workflow''' 36 * S3SQLInlineComponent/S3SQLInlineLink allows addition of entries in setup_server_role and setup_instance. 32 33 * S3SQLInlineComponent/S3SQLInlineLink allows addition of entries in setup_server and setup_instance. 37 34 * After form submission and record creation, an entry is added to the scheduler_task table to run ansible (row id of scheduler_task is stored in setup_instance table). Ansible playbook (yaml file) takes in the values of variables from the user input in the create form. 38 35 * Success/Failure of the deployment is displayed on the "read" method of the deployment