Changes between Version 8 and Version 9 of deployment
- Timestamp:
- 2016-06-02T15:29:17Z (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
deployment
v8 v9 15 15 root@graswww2:/tmp# fab -f /usr/local/bin/deploy_romsaf_web.py -l 16 16 Available commands: 17 backup_ropp backup existing ropp files18 clean_local_changes Clean local changes on operational webserver19 deploy_ropp Deploy a new ropp release20 deploy_website Deploy new website version from tag21 prepare_ropp Tar ROPP distribution and database tables, requ...22 restore_ropp Restore from previous ropp backup files23 status Show subversion state on operational servers24 update_website Update operational website25 update_website_dry_run Dry-run of update on operational website26 update_website_rollback Rollback update of the operational website27 17 18 backup_gbgp backup existing gbgp files 19 backup_ropp backup existing ropp files 20 clean_local_changes Clean local changes on operational webser... 21 deploy_gbgp Deploy a new gbgp release 22 deploy_ropp Deploy a new ropp release 23 deploy_website Deploy new website version from tag 24 prepare_gbgp Tar GBGP distribution and database tables... 25 prepare_ropp Tar ROPP distribution and database tables... 26 restore_gbgp Restore from previous gbgp backup files 27 restore_ropp Restore from previous ropp backup files 28 status Show subversion state on operational serv... 29 update_preop_website Update pre-operational website 30 update_preop_website_rollback Rollback update of the pre-operational we... 31 update_website Update operational website 32 update_website_dry_run Dry-run of update on operational website 33 update_website_rollback Rollback update of the operational websit... 28 34 }}} 29 35 … … 44 50 1. if everything looks ok, make the actual upload 45 51 46 The above procedure should be run first on the secondary webserver ` graswww2` and second on the primary webserver `graswww`.52 The above procedure should be run first on the secondary webserver `web2` and second on the primary webserver `web1`. 47 53 48 54 To examine the current status run:: 49 55 {{{ 50 fab -H graswww2 -f /usr/local/bin/deploy_romsaf_web.py status56 fab -H web2 -f /usr/local/bin/deploy_romsaf_web.py status 51 57 }}} 52 58 53 59 To make a dry-run use: 54 60 {{{ 55 fab -H graswww2 -f /usr/local/bin/deploy_romsaf_web.py update_website_dry_run61 fab -H web2 -f /usr/local/bin/deploy_romsaf_web.py update_website_dry_run 56 62 }}} 57 63 58 64 To install updates run: 59 65 {{{ 60 fab -H graswww2 -f /usr/local/bin/deploy_romsaf_web.py update_website66 fab -H web2 -f /usr/local/bin/deploy_romsaf_web.py update_website 61 67 }}} 62 68 63 69 If necessary revert the changes using: 64 70 {{{ 65 fab -H graswww2 -f /usr/local/bin/deploy_romsaf_web.py update_website_rollback71 fab -H web2 -f /usr/local/bin/deploy_romsaf_web.py update_website_rollback 66 72 }}} 67 73 … … 71 77 72 78 {{{ 73 fab -H graswww2 -f /usr/local/bin/deploy_romsaf_web.py deploy_ropp79 fab -H web2 -f /usr/local/bin/deploy_romsaf_web.py deploy_ropp 74 80 }}} 75 81 … … 78 84 In case of errors use: 79 85 {{{ 80 fab -H graswww2 -f /usr/local/bin/deploy_romsaf_web.py restore_ropp86 fab -H web2 -f /usr/local/bin/deploy_romsaf_web.py restore_ropp 81 87 }}} 82 88 83 89 To rollback the changes 90 91 92 == GBGP deployment == 93 94 GBGP can be deployed using the following command: 95 96 {{{ 97 fab -H web2 -f /usr/local/bin/deploy_romsaf_web.py deploy_gbgp 98 }}} 99 100 The command will call `prepare_gbgp` and `backup_gbgp` and install the new GBGP version. 101 102 In case of errors use: 103 {{{ 104 fab -H web2 -f /usr/local/bin/deploy_romsaf_web.py restore_gbgp 105 }}} 106 107 To rollback the changes 108 84 109 85 110 == Website Deployment, Major Change == … … 89 114 Then run: 90 115 {{{ 91 fab -H graswww2 -f /usr/local/bin/deploy_romsaf_web.py deploy_website116 fab -H web2 -f /usr/local/bin/deploy_romsaf_web.py deploy_website 92 117 }}} 93 118 94 119 120 == Update Preop Website from SVN changes == 95 121 122 To apply updates to pre-operational page from SVN changes run (in web2): 123 {{{ 124 fab -H web2 -f /usr/local/bin/deploy_romsaf_web.py update_preop_website 125 }}} 96 126 127 If necessary revert the changes using: 128 {{{ 129 fab -H web2 -f /usr/local/bin/deploy_romsaf_web.py update_preop_website_rollback 130 }}} 97 131 98