Skip to content

Commit

Permalink
Merge pull request #6 from itkg-bfouche/master
Browse files Browse the repository at this point in the history
add system parameter
  • Loading branch information
yauh committed Aug 26, 2014
2 parents 6be2829 + 8f61c43 commit 91cf1c2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ The following variables can be used with the solr role:
solr_destination: /usr/local/src # where to install Solr to
solr_home: "{{solr_destination}}/solr/example" # the Solr home directory, unless specified, this will use example
solr_memory: 1024 # maximum memory for the Solr process
solr_home_system: multicore # the system loaded by jetty

Dependencies
------------
Expand Down
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ solr_destination: /usr/local/src
solr_home: "{{solr_destination}}/solr/example"
solr_memory: 1024
solr_basename: solr-{{solr_version}}
solr_home_system: multicore
2 changes: 1 addition & 1 deletion templates/solr.j2
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ NAME="solr"
# Daemon name, where is the actual executable
DAEMON=/usr/bin/java
# Read about the available options at: http://docs.oracle.com/javase/1.3/docs/tooldocs/solaris/java.html
DAEMON_ARGS="-Xmx{{solr_memory}}m -DSTOP.PORT=8079 -DSTOP.KEY=stopkey -Dsolr.solr.home=multicore -jar start.jar"
DAEMON_ARGS="-Xmx{{solr_memory}}m -DSTOP.PORT=8079 -DSTOP.KEY=stopkey -Dsolr.solr.home={{solr_home_system}} -jar start.jar"
# pid file for the daemon
PIDFILE=/var/run/$NAME.pid
# script name
Expand Down

0 comments on commit 91cf1c2

Please sign in to comment.