Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

This

...

is

...

a

...

description

...

of

...

how

...

to

...

install

...

Bamboo

...

2.1.4

...

under

...

Tomcat

...

6.

...



  1. Attach the amit-dsl

...

  1. locker:

...

  1. Code Block

...

  1. 
    attach amit-dsl
    

...


  1. Make sure the dependencies are met:
    Code Block
    
    yum install curl-devel httpd-devel openssl-devel
    

...


  1. Install the Shibboleth Packages from the AMIT DSL AFS locker:
    Code Block
    
    rpm -i /mit/amit-dsl/Public/Shibboleth/x86_64/*.rpm
    

...


  1. Copy the Touchstone Shibboleth configuration files into place:
    Code Block
    
    cp /mit/amit-dsl/Public/Touchstone/config-SP/* /etc/shibboleth
    

...


  1. Run the gen-shib.sh

...

  1. script

...

  1. to

...

  1. configure

...

  1. Shibboleth

...

  1. for

...

  1. Touchstone:

...

  1. Code Block

...

  1. 
    cd /etc/shibboleth
    ./gen-shib.sh
    cd
    

...


  1. Add the following lines to the /etc/httpd/conf.d/shibd.conf

...

  1. file:

...

  1. Code Block

...

  1. 
    <Location /shibverify>
      AuthType shibboleth
      require shibboleth
      ShibRequireSessionWith MIT-WAYF-staging
      ShibRequireSession On
      require valid-user
    </Location>
    
    <Location /bamboo>
      AuthType shibboleth
      require shibboleth
      ShibRequireSessionWith MIT-WAYF-staging
      ShibRequireSession On
      require valid-user
    </Location>
    
    <Location /bamboo/mitLogin.jsp>
      AuthType shibboleth
      require shibboleth
      ShibRequireSessionWith MIT-WAYF-staging
      ShibRequireSession On
      require valid-user
    </Location>
    
    <Location /examples>
      AuthType shibboleth
      require shibboleth
      ShibRequireSessionWith MIT-WAYF-staging
      ShibRequireSession On
      require valid-user
    </Location>
    

...


  1. Create the Bamboo home directory:
    Code Block
    
    mkdir /usr/local/bamboo
    chown -R www:www /usr/local/bamboo
    

...


  1. In the MySQL client,

...

  1. create

...

  1. the

...

  1. database

...

  1. and

...

  1. grant

...

  1. the

...

  1. proper

...

  1. permissions:

...

  1. Code Block

...

  1. 
    create database bamboo;
    grant select, insert, update, delete, create, drop, index, alter, create temporary tables, lock tables on bamboo.* to 'bamboo'@'localhost' identified by '<DB Password';
    

...


  1. Extract the Tomcat 6 tarball into the /usr/local

...

  1. directory,

...

  1. and

...

  1. create

...

  1. the

...

  1. symlink:

...

  1. Code Block

...

  1. 
    cd /usr/local
    tar xzvf /mit/amit-dsl/Public/Java/apache-tomcat-6.0.18.tar.gz
    ln -s apache-tomcat-6.0.18 tomcat
    

...


  1. Copy the Tomcat init script into the /etc/init.d

...

  1. directory

...

  1. and

...

  1. enable

...

  1. it:

...

  1. Code Block

...

  1. 
    cp /mit/amit-dsl/Public/Java/tomcat /etc/init.d
    chmod a+rx /etc/init.d/tomcat
    chkconfig --levels 2345 tomcat on
    

...


  1. Enable MySQL and Shibboleth at boot time:
    Code Block
    
    chkconfig --levels 2345 mysqld on
    chkconfig --levels 2345 shibd on
    

...


  1. Place the war files in the webapps directory. Please note that the bamboo war file should be renamed to "bamboo.war"

...

  1. prior

...

  1. to

...

  1. placement:

...

  1. Code Block

...

  1. 
    mv atlassian-bamboo-2.1.4.war bamboo.war
    cp /mit/amit-dsl/Public/Bamboo/bamboo.war /usr/local/tomcat/webapps
    cp /mit/amit-dsl/Public/Java/monitor.war /usr/local/tomcat/webapps
    cp /mit/amit-dsl/Public/Shibverify/shibverify.war /usr/local/tomcat/webapps
    

...


  1. Create the VirtualHost block in the /etc/httpd/conf/httpd.conf

...

  1. file:

...

  1. Code Block

...

  1. 
    <VirtualHost *:80>
    	ServerAdmin amit@mit.edu
    	ProxyPass /bamboo/ http://localhost:8080/bamboo/
    	ProxyPassReverse /bamboo/ http://localhost:8080/bamboo/
    	ProxyPass /bamboo http://localhost:8080/bamboo/
    	ProxyPassReverse /bamboo http://localhost:8080/bamboo/
    	ServerName build-stage.mit.edu
    	RewriteEngine On
    	RewriteRule ^/(.*)  https://<Server Name>.mit.edu/$1 [L,R,QSA]
    </VirtualHost>
    

...

  1. Be

...

  1. sure

...

  1. to

...

  1. change

...

  1. the

...

  1. host

...

  1. names

...

  1. and

...

  1. any

...

  1. other

...

  1. values

...

  1. to

...

  1. ones

...

  1. that

...

  1. are

...

  1. correct

...

  1. for

...

  1. your

...

  1. installation.

...



  1. Configure the Virtual Host settings inside the Apache SSL config by adding the following block to the /etc/httpd/conf.d/ssl.conf

...

  1. file:

...

  1. Code Block

...

  1. 
    ServerAdmin amit@mit.edu
    ServerName <Server Name>.mit.edu
    

...

  1. Be

...

  1. sure

...

  1. to

...

  1. change

...

  1. the

...

  1. host

...

  1. names

...

  1. and

...

  1. any

...

  1. other

...

  1. values

...

  1. to

...

  1. ones

...

  1. that

...

  1. are

...

  1. correct

...

  1. for

...

  1. your

...

  1. installation.

...



  1. Create the bamboo.conf

...

  1. file

...

  1. in

...

  1. the

...

  1. /etc/httpd/conf.d

...

  1. directory,

...

  1. with

...

  1. the

...

  1. following

...

  1. contents:

...

  1. Code Block

...

  1. 
    LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
    
    RewriteEngine On
    
    RewriteCond    %{HTTPS} off [NC]
    RewriteRule    ^/(.*)                https://%{HTTP_HOST}/$1/
    
    RewriteCond    %{HTTP_HOST} !.*\.mit\.edu$ [NC]
    RewriteRule    ^/(.*)                https://%{HTTP_HOST}.mit.edu/$1/   [R=301,QSA]
    
    RewriteCond    %{REQUEST_FILENAME}  -d
    RewriteRule    ^(/?.*[^/])$           https://%{HTTP_HOST}/$1/  [R=301,QSA]
    
    RewriteCond    %{REQUEST_FILENAME}  !-d
    RewriteCond    %{REQUEST_FILENAME}  !-f
    RewriteRule    ^(/?.*[^/])$           https://%{HTTP_HOST}/$1/  [R=301,QSA]
    
    ProxyRequests Off
    ProxyPreserveHost Off
    
    <Proxy *>
    	Order deny,allow
    	Allow from all
    	RewriteCond %{LA-U:REMOTE_USER} (.+)
    	RewriteRule . - [E=RU:%1]
    	RequestHeader add Remote-User %{RU}e
    </Proxy>
    
    ProxyPass /bamboo/ ajp://localhost:8009/bamboo/
    ProxyPassReverse /bamboo/ http://localhost:8009/bamboo/
    
    ProxyPass /bamboo-manager/ ajp://localhost:8009/bamboo-manager/
    ProxyPassReverse /bamboo-manager/ http://localhost:8009/bamboo-manager/
    
    ProxyPass /bamboo-monitor/ ajp://localhost:8009/bamboo-monitor/
    ProxyPassReverse /bamboo-monitor/ http://localhost:8009/bamboo-monitor/
    
    ProxyPass /defltws/ ajp://localhost:8010/defltws/
    ProxyPassReverse /defltws/ http://localhost:8010/defltws/
    
    ProxyPass /defltws-manager/ ajp://localhost:8010/defltws-manager/
    ProxyPassReverse /defltws-manager/ http://localhost:8010/defltws-manager/
    
    ProxyPass /defltws-monitor/ ajp://localhost:8010/defltws-monitor/
    ProxyPassReverse /defltws-monitor/ http://localhost:8010/defltws-monitor/
    
    ProxyPass /shibverify/ ajp://localhost:8009/shibverify/
    ProxyPassReverse /shibverify/ http://localhost:8009/shibverify/
    
    <Location /defltws>
    	SSLVerifyClient require
    </Location>
    

...