Changes between Version 4 and Version 5 of installation_QCG_Broker

Show
Ignore:
Timestamp:
05/17/11 16:30:24 (13 years ago)
Author:
bartek
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • installation_QCG_Broker

    v4 v5  
    7878= Preparing the environment = 
    7979 
    80 '''IMPORTANT:''' Altought it's possible to install QCG-Broker service on any account (<tt>root</tt>, regular user) we strongly recommend to deploy QCG-Broker service on 
    81 the account designated specifically for this service (<tt>qcg-broker</tt> for example). 
    82  
    83 We recommend to create a new user (e.g. <code>qcg-broker</code>) that will be used by the service to run in unprivileged mode 
    84    
    85   mkdir -p /opt/QCG 
    86   useradd -d /opt/QCG/qcg-broker -m -s /bin/bash qcg-broker  
    87  
    88 '''IMPORTANT:''' If you want to configure QCG-Broker to use its own list of trusted CA certificates, please do not forget to copy them into ''~/.globus/certificates'' directory. 
     80'''IMPORTANT:''' Altought it's possible to install QCG-Broker service on any account (`root`, regular user) we strongly recommend to deploy QCG-Broker service on the account designated specifically for this service (`qcg-broker` for example). 
     81 
     82We recommend to create a new user (e.g. `qcg-broker`) that will be used by the service to run in unprivileged mode 
     83{{{ 
     84#!div style="font-size: 90%" 
     85{{{#!sh   
     86  # mkdir -p /opt/QCG 
     87  # useradd -d /opt/QCG/qcg-broker -m -s /bin/bash qcg-broker  
     88}}} 
     89}}} 
     90'''IMPORTANT:''' If you want to configure QCG-Broker to use its own list of trusted CA certificates, please do not forget to copy them into `~/.globus/certificates` directory. 
    8991 
    9092= Database setup = 
    91  
    92 * Create new database user (e.g. qcg-broker) authenticated via password (the same password must be later used to setup QCG-Broker deployment): 
    93  su - postgres 
    94  createuser -P qcg-broker 
     93* Create new database user (e.g. `qcg-broker`) authenticated via password (the same password must be later used to setup QCG-Broker deployment): 
     94{{{ 
     95#!div style="font-size: 90%" 
     96{{{#!sh 
     97 # su - postgres 
     98 $ createuser -P qcg-broker 
    9599 
    96100 Enter password for new role:  
     
    101105 CREATE ROLE 
    102106 
    103  exit 
    104  
    105  
    106 * Create new database (e.g. qcg-broker) owned by the ''qcg-broker'' user: 
    107  su - qcg-broker 
    108  createdb -U qcg-broker qcg-broker 
    109  exit 
    110  
    111 {{Note}} The ''qcg-broker'' user must be allowed to create new databases 
    112  
    113 * Depending on the local PostgreSQL configuration you may need to edit the <code>pg_hba.conf</code> file  (''host based authentication'' configuration file) to enable password authentication to the ''qcg-broker'' database for the ''qcg-broker'' user. 
    114  
    115 For SL5.x: edit the ''/var/lib/pgsql/data/pg_hba.conf'' file. 
     107 $ exit 
     108}}} 
     109}}} 
     110 
     111* Create new database (e.g. qcg-broker) owned by the `qcg-broker` user: 
     112 # su - qcg-broker 
     113 $ createdb -U qcg-broker qcg-broker 
     114 $ exit 
     115 
     116'''Note:''' The `qcg-broker` user must be allowed to create new databases. 
     117 
     118* Depending on the local PostgreSQL configuration you may need to edit the `pg_hba.conf` file  (''host based authentication'' configuration file) to enable password authentication to the `qcg-broker` database for the `qcg-broker` user. 
     119 
     120For SL5.x: edit the `/var/lib/pgsql/data/pg_hba.conf` file. 
    116121 
    117122If the PostgreSQL installation is fully dedicated for QCG-Broker replace the default configuration with rules (lines) given below, otherwise insert them to the configuration file in a proper place: