Changes between Version 21 and Version 22 of InstallingUsingRPMS

Show
Ignore:
Timestamp:
06/13/11 11:49:04 (13 years ago)
Author:
mmamonski
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • InstallingUsingRPMS

    v21 v22  
    112112= Installation using provided RPMS = 
    113113* Create the following users: 
    114  * `qcg_comp` - needed by the QCG-Computing service 
    115  * `qcg_broker` - the user that the [http://apps.man.poznan.pl/trac/qcg-broker QCG-Broker] service would be mapped to  
    116 {{{ 
    117 #!div style="font-size: 90%" 
    118 {{{#!sh 
    119 useradd -d /opt/plgrid/var/log/qcg-comp/ -m qcg_comp  
    120 useradd -d /opt/plgrid/var/log/qcg-broker/ -m qcg_broker   
     114 * `qcg-comp` - needed by the QCG-Computing service 
     115 * `qcg-broker` - the user that the [http://apps.man.poznan.pl/trac/qcg-broker QCG-Broker] service would be mapped to  
     116{{{ 
     117#!div style="font-size: 90%" 
     118{{{#!sh 
     119useradd -d /opt/plgrid/var/log/qcg-comp/ -m qcg-comp  
     120useradd -d /opt/plgrid/var/log/qcg-broker/ -m qcg-broker   
    121121}}} 
    122122}}} 
    123123* and the following group: 
    124  * `qcg_dev` - this group is allowed to read the configuration and log files. Please add the qcg services' developers to this group. 
    125 {{{ 
    126 #!div style="font-size: 90%" 
    127 {{{#!sh 
    128 groupadd qcg_dev 
     124 * `qcg-dev` - this group is allowed to read the configuration and log files. Please add the qcg services' developers to this group. 
     125{{{ 
     126#!div style="font-size: 90%" 
     127{{{#!sh 
     128groupadd qcg-dev 
    129129}}} 
    130130}}} 
     
    172172   
    173173Use local PostgreSQL server? (y/n) [y]: y 
    174 Database [qcg_comp]:  
    175 User [qcg_comp]:  
    176 Password [qcg_comp]: MojeTajneHaslo 
     174Database [qcg-comp]:  
     175User [qcg-comp]:  
     176Password [qcg-comp]: MojeTajneHaslo 
    177177Create database? (y/n) [y]: y 
    178178Create user? (y/n) [y]: y 
    179179   
    180 Checking for system user qcg_comp...OK 
     180Checking for system user qcg-comp...OK 
    181181Checking whether PostgreSQL server is installed...OK 
    182182Checking whether PostgreSQL server is running...OK 
    183183   
    184184Performing installation 
    185 * Creating user qcg_comp...OK 
    186 * Creating database qcg_comp...OK 
     185* Creating user qcg-comp...OK 
     186* Creating database qcg-comp...OK 
    187187* Creating database schema...OK 
    188 * Checking for ODBC data source qcg_comp... 
     188* Checking for ODBC data source qcg-comp... 
    189189* Installing ODBC data source...OK 
    190190     
    191 Remember to add appropriate entry to /var/lib/pgsql/data/pg_hba.conf (as the first rule!) to allow user qcg_comp to 
    192 access database qcg_comp. For instance: 
    193    
    194 host    qcg_comp       qcg_comp       127.0.0.1/32    md5 
     191Remember to add appropriate entry to /var/lib/pgsql/data/pg_hba.conf (as the first rule!) to allow user qcg-comp to 
     192access database qcg-comp. For instance: 
     193   
     194host    qcg-comp       qcg-comp       127.0.0.1/32    md5 
    195195   
    196196and reload Postgres server. 
     
    272272}}} 
    273273 
    274 Add appropriate rights for the `qcg_comp` and `qcg_broker` users in the Maui scheduler configuaration file: 
     274Add appropriate rights for the `qcg-comp` and `qcg-broker` users in the Maui scheduler configuaration file: 
    275275{{{ 
    276276#!div style="font-size: 90%" 
     
    279279# primary admin must be first in list 
    280280ADMIN1                root 
    281 ADMIN2                qcg_broker 
    282 ADMIN3                qcg_comp 
     281ADMIN2                qcg-broker 
     282ADMIN3                qcg-comp 
    283283}}} 
    284284}}} 
     
    289289cp /etc/grid-security/hostcert.pem /opt/plgrid/qcg/etc/certs/qcgcert.pem 
    290290cp /etc/grid-security/hostkey.pem /opt/plgrid/qcg/etc/certs/qcgkey.pem 
    291 chown qcg_comp /opt/plgrid/qcg/etc/certs/qcgcert.pem 
    292 chown qcg_comp /opt/plgrid/qcg/etc/certs/qcgkey.pem  
     291chown qcg-comp /opt/plgrid/qcg/etc/certs/qcgcert.pem 
     292chown qcg-comp /opt/plgrid/qcg/etc/certs/qcgkey.pem  
    293293chmod 0600 /opt/plgrid/qcg/etc/certs/qcgkey.pem 
    294294}}} 
     
    411411   
    412412                        <Database> 
    413                                 <DSN>qcg_comp</DSN> 
    414                                 <User>qcg_comp</User> 
    415                                 <Password>qcg_comp</Password> 
     413                                <DSN>qcg-comp</DSN> 
     414                                <User>qcg-comp</User> 
     415                                <Password>qcg-comp</Password> 
    416416                        </Database> 
    417417   
    418                         <UnprivilegedUser>qcg_comp</UnprivilegedUser> 
     418                        <UnprivilegedUser>qcg-comp</UnprivilegedUser> 
    419419   
    420420                        <FactoryAttributes> 
     
    433433   the hostname of the machine where the service is deployed  
    434434 `Transport/Module/Authentication/Module/X509CertFile`  and  `Transport/Module/Authentication/Module/X509KeyFile` ::  
    435   the service private key and X.509 certificate. Make sure that the key and certificate is owned by the `qcg_comp` user.  If you installed cert and key file in the recommended location you do not need to edit these fields. 
     435  the service private key and X.509 certificate. Make sure that the key and certificate is owned by the `qcg-comp` user.  If you installed cert and key file in the recommended location you do not need to edit these fields. 
    436436 `Module[type="smc:notification_wsn"]/Module/ServiceURL` ::  
    437437  the URL of the QCG-Notification service (You can do it later, i.e. after [http://www.qoscosgrid.org/trac/qcg-notification/wiki/installation_in_PL-Grid installing the QCG-Notification service]) 
     
    439439  path to the DRMAA library (the `libdrmaa.so`). Also, if you installed the DRMAA library using provided SRC RPM you do not need to change this path. 
    440440 `Database/Password` ::  
    441   the `qcg_comp` database password 
     441  the `qcg-comp` database password 
    442442 `FactoryAttributes/CommonName` ::  
    443443  a common name of the cluster (e.g. reef.man.poznan.pl). You can use any name that is unique among all systems (e.g. cluster name + domain name of your institution) 
     
    693693#!div style="font-size: 90%" 
    694694{{{#!sh 
    695 psql -h localhost qcg_comp qcg_comp  
    696 Password for user qcg_comp:  
     695psql -h localhost qcg-comp qcg-comp  
     696Password for user qcg-comp:  
    697697Welcome to psql 8.1.23, the PostgreSQL interactive terminal. 
    698698   
     
    703703     \q to quit 
    704704 
    705 qcg_comp=> \o jobs.acc 
    706 qcg_comp=> SELECT * FROM jobs_acc where end_time < date '2010-01-10'; 
    707 qcg_comp=> \o reservations.acc 
    708 qcg_comp=> SELECT * FROM reservations_acc where end_time < date '2010-01-10'; 
    709 qcg_comp=> \o 
    710 qcg_comp=> DELETE FROM jobs_acc where end_time < date '2010-01-10'; 
    711 qcg_comp=> DELETE FROM reservation_acc where end_time < date '2010-01-10'; 
    712 }}} 
    713 }}} 
     705qcg-comp=> \o jobs.acc 
     706qcg-comp=> SELECT * FROM jobs_acc where end_time < date '2010-01-10'; 
     707qcg-comp=> \o reservations.acc 
     708qcg-comp=> SELECT * FROM reservations_acc where end_time < date '2010-01-10'; 
     709qcg-comp=> \o 
     710qcg-comp=> DELETE FROM jobs_acc where end_time < date '2010-01-10'; 
     711qcg-comp=> DELETE FROM reservation_acc where end_time < date '2010-01-10'; 
     712}}} 
     713}}}