Changes between Version 8 and Version 9 of deployment


Ignore:
Timestamp:
2016-06-02T15:29:17Z (8 years ago)
Author:
Santi Oliveras
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • deployment

    v8 v9  
    1515root@graswww2:/tmp# fab -f /usr/local/bin/deploy_romsaf_web.py -l
    1616Available commands:
    17     backup_ropp              backup existing ropp files
    18     clean_local_changes      Clean local changes on operational webserver
    19     deploy_ropp              Deploy a new ropp release
    20     deploy_website           Deploy new website version from tag
    21     prepare_ropp             Tar ROPP distribution and database tables, requ...
    22     restore_ropp             Restore from previous ropp backup files
    23     status                   Show subversion state on operational servers
    24     update_website           Update operational website
    25     update_website_dry_run   Dry-run of update on operational website
    26     update_website_rollback  Rollback update of the operational website
    2717
     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...
    2834}}}
    2935
     
    4450 1. if everything looks ok, make the actual upload
    4551
    46 The above procedure should be run first on the secondary webserver `graswww2` and second on the primary webserver `graswww`.
     52The above procedure should be run first on the secondary webserver `web2` and second on the primary webserver `web1`.
    4753
    4854To examine the current status run::
    4955{{{
    50 fab -H graswww2 -f /usr/local/bin/deploy_romsaf_web.py status
     56fab -H web2 -f /usr/local/bin/deploy_romsaf_web.py status
    5157}}}
    5258
    5359To make a dry-run use:
    5460{{{
    55 fab -H graswww2 -f /usr/local/bin/deploy_romsaf_web.py update_website_dry_run
     61fab -H web2 -f /usr/local/bin/deploy_romsaf_web.py update_website_dry_run
    5662}}}
    5763
    5864To install updates run:
    5965{{{
    60 fab -H graswww2 -f /usr/local/bin/deploy_romsaf_web.py update_website
     66fab -H web2 -f /usr/local/bin/deploy_romsaf_web.py update_website
    6167}}}
    6268
    6369If necessary revert the changes using:
    6470{{{
    65 fab -H graswww2 -f /usr/local/bin/deploy_romsaf_web.py update_website_rollback
     71fab -H web2 -f /usr/local/bin/deploy_romsaf_web.py update_website_rollback
    6672}}}
    6773
     
    7177
    7278{{{
    73 fab -H graswww2 -f /usr/local/bin/deploy_romsaf_web.py deploy_ropp
     79fab -H web2 -f /usr/local/bin/deploy_romsaf_web.py deploy_ropp
    7480}}}
    7581
     
    7884In case of errors use:
    7985{{{
    80 fab -H graswww2 -f /usr/local/bin/deploy_romsaf_web.py restore_ropp
     86fab -H web2 -f /usr/local/bin/deploy_romsaf_web.py restore_ropp
    8187}}}
    8288
    8389To rollback the changes
     90
     91
     92== GBGP deployment ==
     93
     94GBGP can be deployed using the following command:
     95
     96{{{
     97fab -H web2 -f /usr/local/bin/deploy_romsaf_web.py deploy_gbgp
     98}}}
     99
     100The command will call `prepare_gbgp` and `backup_gbgp` and install the new GBGP version.
     101
     102In case of errors use:
     103{{{
     104fab -H web2 -f /usr/local/bin/deploy_romsaf_web.py restore_gbgp
     105}}}
     106
     107To rollback the changes
     108
    84109
    85110== Website Deployment, Major Change ==
     
    89114Then run:
    90115{{{
    91 fab -H graswww2 -f /usr/local/bin/deploy_romsaf_web.py deploy_website
     116fab -H web2 -f /usr/local/bin/deploy_romsaf_web.py deploy_website
    92117}}}
    93118
    94119
     120== Update Preop Website from SVN changes ==
    95121
     122To apply updates to pre-operational page from SVN changes run (in web2):
     123{{{
     124fab -H web2 -f /usr/local/bin/deploy_romsaf_web.py update_preop_website
     125}}}
    96126
     127If necessary revert the changes using:
     128{{{
     129fab -H web2 -f /usr/local/bin/deploy_romsaf_web.py update_preop_website_rollback
     130}}}
    97131
    98