Sun Role Manager 5.0 quick install

Sun Role Manager 5.0 is available for download.

As with any web application the installation involves a bit of unpacking, copying, configuration and database preparation. 

The steps are all documented and I guess folks will script up these tasks as suits them.  The dolphin knocked up a standalone ant build file to help with this and I gilded his lily. The script unpacks the product war file, copies in custom jar files, modifies configuration files (like the jdbc.properties file and log4j.properties file), sanity checks the configuration of the MySQL database, allows the schema name of the database to be changed and rebundles the war file.  Finally it prints some friendly reminders about heap size and environment variables.

The advantage of an ant script is that it is cross platform (tested on Mac OS X and Windows XP).  It is tested against MySQL, but is easily extensible to other databases.  The zip file is here.

To get started, unzip the file and type 'ant'--this shows the targets and help text.

You need to copy dependencies to the custom directory--they will be bundled into the generated war file by the script:

  • The weka jar file for role mining can be downloaded here
  • For repositories other than MySQL you will need to copy the jdbc driver into the custom directory.

Modify the build-config.properties file to define for example the location of the product zip file, the home directory for SRM, the database connectivity parameters and the log file location.

You can now run the script to do the installation.  A typical run would go like this:

ant -projecthelp
ant show-build-properties
ant clean
ant repo-drop-mysql
ant repo-create-mysql
ant dist

You can now deploy the generated war file from the dist directory, for example for Tomcat:

cp dist/rbacx.war ${TOMCAT_HOME}/webapps

Lovely.

 
  

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

user12587121

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today