Skip to content

Commit

Permalink
Merge branch 'release/1.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
SolomonShorser-OICR committed Feb 10, 2016
2 parents 09c9ac3 + d1d6834 commit fd1e42c
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 34 deletions.
20 changes: 10 additions & 10 deletions mini-seqware-install.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
---
---
# file: mini-seqware-install.yml
# This file is used for installing just SeqWare White Star as the bare-bones minimum to run SeqWare workflows

# The grid master depends on the hosts file, as we need to know at least who we
# are by this stage.
- hosts: master
# are by this stage.
- hosts: master
sudo: True
roles:
- { role: java, java_provider: Cloudera }
- { role: seqware-code,
- { role: java, java_provider: Oracle8 }
- { role: seqware-code,
seqware_provider: artifactory ,
user_name: seqware,
setup_hdfs_user: False,
user_name: seqware,
setup_hdfs_user: False,
create_user: False,
workflow_engine: whitestar,
workflow_engine: whitestar,
sw_metadata_method: inmemory,
oozie_work_dir: /datastore
}

- hosts: master
sudo: True
roles:
Expand Down
2 changes: 2 additions & 0 deletions roles/java/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@
- include: 'openjdk7.yml'
when: java_provider == "OpenJDK7"

- include: 'oracle8.yml'
when: java_provider == "Oracle8"
26 changes: 26 additions & 0 deletions roles/java/tasks/oracle8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
# file: roles/java/tasks/oracle8.yml

- name: add repo for java 8
apt_repository: repo='ppa:webupd8team/java' state=present

- name: set licence selected
shell: /bin/echo debconf shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections
sudo: yes
changed_when: false

- name: set licence seen
shell: /bin/echo debconf shared/accepted-oracle-license-v1-1 seen true | /usr/bin/debconf-set-selections
sudo: yes
changed_when: false

- name: install java 8
apt: name=oracle-java8-installer state=latest update-cache=yes force=yes
sudo: yes

- name: Java | Set JAVA_HOME
lineinfile:
line: 'JAVA_HOME=/usr/lib/jvm/java-8-oracle'
dest: /etc/environment
state: present
create: yes
2 changes: 1 addition & 1 deletion roles/java/vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
# file: roles/common/vars/main.yml

java_provider: "OpenJDK7"
java_provider: "Oracle8"
14 changes: 7 additions & 7 deletions seqware-admin-webservice-install.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
---
# file: seqware-admin-webservice-install.yml
# This file is used for installing two hosts, a database server and a webapp server with the admin web service

# Not sure why, but I needed this to create a /etc/hosts that actually works with the Ubuntu image here on openstack
- hosts: all
sudo: True
Expand All @@ -15,15 +15,15 @@
with_items: groups['all']

# The grid master depends on the hosts file, as we need to know at least who we
# are by this stage.
- hosts: dbserver
# are by this stage.
- hosts: dbserver
sudo: True
roles:
- { role: java, java_provider: Cloudera }
- { role: java, java_provider: Oracle8 }
- { role: postgres }

- hosts: webserver
- hosts: webserver
sudo: True
roles:
- { role: java, java_provider: Cloudera }
- { role: java, java_provider: Oracle8 }
- { role: glassfish }
32 changes: 16 additions & 16 deletions seqware-install.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
---
# file: seqware-install.yml
# This file is used for installing a seqware cluster

# Not sure why, but I needed this to create a /etc/hosts that actually works with the Ubuntu image here on openstack
- hosts: all
sudo: True
Expand Down Expand Up @@ -31,9 +31,9 @@
- hosts: all
sudo: True
tasks:
- name: Determine number of hosts in fugly way
- name: Determine number of hosts in fugly way
include: roles/common/tasks/determine_num_hosts.yml

- hosts: all
sudo: True
vars:
Expand All @@ -42,46 +42,46 @@
lvm_device_whitelist: /dev/xvdd,/dev/xvde
include: roles/storage/common/tasks/play_deploy_shared_storage.yml
when: single_node_lvm is defined

- hosts: all
sudo: True
vars:
shared_storage_system: glusterfs
vendor_data: /mnt/seqware-oozie
glusterfs_version: 3.5
glusterfs_version: 3.5
include: roles/storage/common/tasks/play_deploy_shared_storage.yml

- hosts: all
- hosts: all
sudo: True
roles:
- { role: docker }

# The grid master depends on the hosts file, as we need to know at least who we
# are by this stage.
- hosts: master
# are by this stage.
- hosts: master
sudo: True
roles:
- { role: java, java_provider: Cloudera }
- { role: java, java_provider: Oracle8 }
- { role: grid-engine, grid_engine_master: True }
- { role: seqware-master-infrastructure }
- { role: seqware-code }
- { role: seqware-webservice }

- hosts: worker
- hosts: worker
sudo: True
roles:
- { role: java, java_provider: Cloudera }
- { role: java, java_provider: Oracle8 }
- { role: grid-engine, grid_engine_master: False }
- { role: seqware-worker-infrastructure }
- hosts: master

- hosts: master
sudo: yes
sudo_user: seqware
vars:
vars:
run_integration_tests: false
roles:
- { role: seqware-integration-tests, when: "{{ run_integration_tests }} == True" }

- hosts: master
sudo: True
roles:
Expand Down

0 comments on commit fd1e42c

Please sign in to comment.