Changeset 878


Ignore:
Timestamp:
05/17/13 17:54:47 (11 years ago)
Author:
olahaye
Message:

[rpm packaging:jobmonarch.spec.in] Removed main (meta) package.
Moved password generation into jobarchived post install.
Updated sub packages description accordingly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.0/pkg/rpm/jobmonarch.spec.in

    r873 r878  
    2727BuildRoot: %{_tmppath}/%{name}
    2828BuildRequires: fakeroot
    29 Requires: jobmonarch-jobarchived jobmonarch-jobmond jobmonarch-webfrontend
    3029
    3130AutoReqProv: no
     
    3433Job Monarch is a set of tools to monitor and optionally archive (batch)job
    3534information. It is a addon for the Ganglia monitoring system and plugs into an
    36 existing Ganglia setup. jobmond is the job monitoring daemon that gathers
    37 PBS/Torque/SGE batch statistics on jobs/nodes and submits them into Ganglia's
    38 XML stream. jobarchived is the Job Archiving Daemon. It listens to Ganglia's
    39 XML stream and archives the job and node statistics. It stores the job
    40 statistics in a Postgres SQL database and the node statistics in RRD
    41 files. Through this daemon, users are able to lookup a old/finished job and
    42 view all it's statistics. The Job Monarch web frontend interfaces with the
    43 jobmond data and (optionally) the jobarchived and presents the data and
    44 graphs. It does this in a similar layout/setup as Ganglia itself, so the
    45 navigation and usage is intuitive.
    46 
    47 This package is the meta package that for installation of all jobmonarche components:
    48 (jobmonarch-jobarchived - jobmonarch-jobmond - jobmonarch-webfrontend)
    49 
     35existing Ganglia setup.
    5036
    5137%package -n jobmonarch-jobarchived
     
    5743Requires: python-psycopg2
    5844Requires: rrdtool-python rrdtool
     45Requires: jobmonarch-webfrontend
    5946
    6047%description -n jobmonarch-jobarchived
    61 jobmonach-jobarchived is the Job Archiving Daemon. It listens to Ganglia's
     48Job-Monarch is a set of tools to monitor and optionally archive (batch)job
     49information. It is a addon for the Ganglia monitoring system and plugs into an
     50existing Ganglia setup.
     51jobarchived is the Job-Monarch's job archiving daemon. It listens to Ganglia's
    6252XML stream and archives the job and node statistics. It stores the job
    6353statistics in a Postgres SQL database and the node statistics in RRD
     
    6858Summary: jobmond is the job monitoring daemon for jobmonarch.
    6959Requires: python >= 2.5
    70 Requires: pbs_python
    7160Requires: ganglia-gmetad
    72 # Requires: lsf_python
     61#Requires(hint): pbs_python
     62#Requires(hint): python-pylsf
     63#Requires(hint): python-pyslurm
     64#Requires(hint): pythongrid
    7365
    7466%description -n jobmonarch-jobmond
    75 jobmonarch-jobmond is the job monitoring daemon that gathers PBS/Torque/SGE
     67Job-Monarch is a set of tools to monitor and optionally archive (batch)job
     68information. It is a addon for the Ganglia monitoring system and plugs into an
     69existing Ganglia setup.
     70jobmond is the Job-Monarch's job monitoring daemon that gathers PBS/Torque/SLURM/LSF/SGE
    7671batch statistics on jobs/nodes and submits them into Ganglia's XML stream.
    7772
     
    8984
    9085%description -n jobmonarch-webfrontend
    91  The Job Monarch web frontend interfaces with the
     86Job-Monarch is a set of tools to monitor and optionally archive (batch)job
     87information. It is a addon for the Ganglia monitoring system and plugs into an
     88existing Ganglia setup.
     89webfrontend is The Job-Monarch's web frontend interfaces with the
    9290jobmond data and (optionally) the jobarchived and presents the data and
    9391graphs. It does this in a similar layout/setup as Ganglia itself, so the
     
    118116%__rm -rf $RPM_BUILD_ROOT
    119117
    120 %post
     118%post -n jobmonarch-jobmond
    121119# $1 = 1 => install ($1 = 2 => upgrade)
    122120if [ "$1" = 1 ]; then
     121    # Enable the service
     122    /sbin/chkconfig --add jobmond
     123    echo ""
     124    echo "Additional manual changes are required to setup jobmond:"
     125    echo ""
     126    echo "1) Edit /etc/jobmond.conf to reflect your local settings and setup:"
     127    echo "   - BATCH_API: pbs, slurm, sge (experimental), lsf (experimental)"
     128    echo "2) Install the python interface to the selected batch system"
     129    echo "   - pbs_python (for pbs)"
     130    echo "   - python-pyslurm (for slurm)"
     131    echo "   - pythongrid (for sge)"
     132    echo "   - python-pylsf (for lsf)"
     133    echo ""
     134elif [ "$1" = 2 ]; then
     135    /sbin/service jobmond condrestart
     136fi
     137
     138%post -n jobmonarch-jobarchived
     139# $1 = 1 => install ($1 = 2 => upgrade)
     140if [ "$1" = 1 ]; then
     141    # Enable the service
     142    /sbin/chkconfig --add jobarchived
    123143    echo "Generating random password and updating apropriate files"
    124144    # Generate a 8 char password for the database:
     
    130150    # Set the password in the ganglia conf.php
    131151    sed -i -e "s|^//\$JOB_ARCHIVE_SQL_PASSWORD.*|\$JOB_ARCHIVE_SQL_PASSWORD = \"$DB_PASSWD\"|g" %{gangliaaddonsdir}/job_monarch/conf.php
    132 fi
    133 
    134 %post -n jobmonarch-jobmond
    135 # $1 = 1 => install ($1 = 2 => upgrade)
    136 if [ "$1" = 1 ]; then
    137     # Enable the service
    138     /sbin/chkconfig --add jobmond
    139     echo ""
    140     echo "Additional manual changes are required to setup jobmond:"
    141     echo ""
    142     echo "Edit /etc/jobmond.conf to reflect your local settings and setup:"
    143     echo "   - BATCH_API: pbs, slurm, sge (experimental), lsf (experimental)"
    144     echo ""
    145 elif [ "$1" = 2 ]; then
    146     /sbin/service jobmond condrestart
    147 fi
    148 
    149 %post -n jobmonarch-jobarchived
    150 # $1 = 1 => install ($1 = 2 => upgrade)
    151 if [ "$1" = 1 ]; then
    152     # Enable the service
    153     /sbin/chkconfig --add jobarchived
    154152    echo ""
    155153    echo "Additional manual changes are required to setup jobarchived:"
     
    205203fi
    206204
    207 %files
    208 %doc AUTHORS CHANGELOG INSTALL LICENSE README TODO UPGRADE
    209 
    210205%files -n jobmonarch-jobmond
    211206%doc jobmond/examples
     207%doc AUTHORS CHANGELOG INSTALL LICENSE README TODO UPGRADE
    212208%config(noreplace) %{_sysconfdir}/jobmond.conf
    213209%{_sysconfdir}/sysconfig/jobmond
     
    218214%files -n jobmonarch-jobarchived
    219215%doc jobarchived/examples
     216%doc AUTHORS CHANGELOG INSTALL LICENSE README TODO UPGRADE
    220217%config(noreplace) %{_sysconfdir}/jobarchived.conf
    221218%{_sysconfdir}/sysconfig/jobarchived
     
    228225
    229226%files -n jobmonarch-webfrontend
     227%doc AUTHORS CHANGELOG INSTALL LICENSE README TODO UPGRADE
    230228%dir %{gangliatemplatedir}/job_monarch
    231229%dir %{gangliaaddonsdir}/job_monarch
Note: See TracChangeset for help on using the changeset viewer.