-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from SeqWare/feature/oozie-sge_inside_docker
Feature/oozie sge inside docker
- Loading branch information
Showing
12 changed files
with
100 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
# file: docker-start.yml | ||
# This file is used for installing a seqware container | ||
|
||
- hosts: all | ||
sudo: True | ||
tasks: | ||
- name: Start all required services | ||
service: name={{ item }} state=restarted | ||
with_items: | ||
- postgresql | ||
- hadoop-hdfs-datanode | ||
- hadoop-hdfs-namenode | ||
- hadoop-0.20-mapreduce-jobtracker | ||
- hadoop-0.20-mapreduce-tasktracker | ||
- oozie | ||
- gridengine-master | ||
- gridengine-exec | ||
- name: Bump up control node memory allocation for high-mem machines | ||
lineinfile: dest=~seqware/.seqware/settings regexp='^SW_CONTROL_NODE_MEMORY.*' line='SW_CONTROL_NODE_MEMORY=4000' state=present | ||
when: ansible_memtotal_mb > 100000 | ||
- name: Redirect oozie working directory so that workflow runs are persisted | ||
lineinfile: dest=~seqware/.seqware/settings regexp='^OOZIE_WORK_DIR.*' line='OOZIE_WORK_DIR=/datastore' state=present | ||
- name: Start tomcat7 | ||
service: name=tomcat7 state=started | ||
ignore_errors: yes | ||
|
||
- hosts: all | ||
sudo: True | ||
roles: | ||
- { role: grid-engine, single_node: True , grid_engine_master: True } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Docker role | ||
------------- | ||
This sets up random stuff that is needed to run inside docker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
- name: install extra stuff that is normally present | ||
apt: pkg={{ item }} state=present update_cache=yes cache_valid_time=3600 | ||
with_items: | ||
- sudo | ||
- curl | ||
- vim | ||
- openssh-server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{{ inventory_hostname }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
sleep 1 | ||
perl -pi -e 's/^load_thresholds.*$/load_thresholds np_load_avg={{ ansible_processor_vcpus }}/' $1 | ||
perl -pi -e 's/^slots.*$/slots {{ ansible_processor_vcpus }}{% for host in groups['all_groups'] %},[{{ host }}={{ ansible_processor_vcpus }}] {% endfor %}/' $1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
# Weird, why does this fail in a container? | ||
- name: restart tomcat7 | ||
service: name=tomcat7 state=restarted | ||
ignore_errors: yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters