Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions ansible/playbooks/installExist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
# add inet.d startup
# change sudoer file
# sudoer changes
# change port to 80 or make firewall change
# memory settings
# WHAT ELSE?
#
Expand All @@ -25,7 +24,7 @@
existLn: /usr/local/existlatest
existShLn: /usr/local/exist
#java_home: /usr/lib/jvm/java
existJettyPort: 80
existJettyPort: 8080
jettyConfFile: /usr/local/existlatest/tools/jetty/etc/jetty.xml
wrapperConfFile: /usr/local/existlatest/tools/wrapper/conf/wrapper.conf
# MBytes
Expand All @@ -49,6 +48,9 @@
- name: test
debug: msg="test is successful"
when_string: ${buildSuccess.stdout} != 'BUILD SUCCESSFUL'

- name: add user svcexist
user: name=svcexist

- name: install java-1.7.0-openjdk latest version
action: yum pkg=java-1.7.0-openjdk state=latest
Expand All @@ -68,6 +70,12 @@
action: command svn checkout ${existSvnUrl} ${existDir}
when_string: ${buildSuccess.stdout} != 'BUILD SUCCESSFUL'

- name: add missing directories
file: dest={{ item }} state=directory
with_items:
- {{ existDir }}/lib/extensions
- {{ existDir }}/extensions/modules/lib

- name: build existdb with javac in this location ${existDir}
action: script ../../bash/buildExistdb.sh ${existDir}
when_string: ${buildSuccess.stdout} != 'BUILD SUCCESSFUL'
Expand Down Expand Up @@ -121,4 +129,4 @@

- name: set the jetty wrapper port for http to ${existJettyPort}
action: lineinfile backup="yes" dest="${jettyConfFile}" state=present line='<Set name="port"><SystemProperty name="jetty.port" default="${existJettyPort}"/></Set>' regexp='<Set name="port"><SystemProperty\sname="jetty.port"\s'


4 changes: 2 additions & 2 deletions ansible/templates/ec2ExistRclocal.template
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ EXIST_HOME={{ existLn }}
echo 'Starting the eXist native XML database from within /etc/rc.d/rc.local ...'
grep 'jetty.port' $EXIST_HOME/tools/jetty/etc/jetty.xml
echo 'Stating with the following max memory (MB)'
grep 'wrapper.java.maxmemory' $EXIST_HOME/tools/wrapper/wrapper.conf
/etc/init.d/exist start
grep 'wrapper.java.maxmemory' $EXIST_HOME/tools/wrapper/conf/wrapper.conf
/etc/init.d/exist start