Skip to content

Commit

Permalink
updated the esmond paths in configuration script
Browse files Browse the repository at this point in the history
* updated the esmond paths to use the same puppet variables as the
  regular testing class
  • Loading branch information
rwf14f committed Apr 6, 2016
1 parent 6b74671 commit 9cc68d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions manifests/esmond.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
$dbname = $::perfsonar::params::esmond_dbname,
$dbuser = $::perfsonar::params::esmond_dbuser,
$dbpassword = $::perfsonar::params::esmond_dbpass,
$esmondroot = $::perfsonar::params::esmond_root,
$esmondconf = $::perfsonar::params::esmond_conf_path,
) inherits perfsonar::params {
if $use_db_module {
class { 'postgresql::server': }
Expand Down
7 changes: 3 additions & 4 deletions templates/configure_esmond.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@ fi
sed -i '/^JVM_OPTS="\$JVM_OPTS -Dcom.sun.management.jmx/ s/^/#/' /etc/cassandra/conf/cassandra-env.sh

#set esmond env variables
#export ESMOND_ROOT=/usr/lib/esmond
#export ESMOND_CONF=/etc/esmond/esmond.conf
#export DJANGO_SETTINGS_MODULE=esmond.settings
. /etc/profile.d/esmond.sh
export ESMOND_ROOT=<%= @esmondroot %>
export ESMOND_CONF=<%= @esmondconf -%>/esmond.conf
export DJANGO_SETTINGS_MODULE=esmond.settings

#initialize python
cd $ESMOND_ROOT
Expand Down

0 comments on commit 9cc68d8

Please sign in to comment.