Skip to content

Commit 9e3da95

Browse files
committed
Some cleanup for
1 parent 68efaf2 commit 9e3da95

File tree

15 files changed

+30
-341
lines changed

15 files changed

+30
-341
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
## About container-host-bag
22

33
This project consists of a set of Ansible playbooks that allow you to deploy a host running Docker and the [Consonance](https://github.com/Consonance/consonance) worker daemon. This host then is capable of running jobs scheduled out to Consonance, a cloud orchestration system capable of managing large fleets of worker hosts on clouds. These jobs are any tools or workflows available at [Dockstore](https://dockstore.org). See the [Consonance](https://github.com/Consonance/consonance) project page for more information.
4+
5+
### Usage
6+
7+
Run the ansible playbook with the following command
8+
9+
```
10+
ansible-playbook -i inventory install.yml --extra-vars="@params-consonance2.json"
11+
```

example_params.json

Lines changed: 0 additions & 22 deletions
This file was deleted.

example_params_bwa.json

Lines changed: 0 additions & 21 deletions
This file was deleted.

install.yml

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -72,36 +72,6 @@
7272
- { role: swap-enabled, when: swap_on and ansible_swaptotal_mb < 9000 }
7373
- { role: java, java_provider: Oracle8 }
7474
- { role: install-docker }
75-
# - { role: seqware-container }
76-
# - { role: workflow-dewrapper-dependencies, when: (workflow_name is defined and 'DEWrapper' in workflow_name ) }
77-
78-
79-
#- hosts: master:worker
80-
# become: yes
81-
# become_user: root
82-
# vars:
83-
# user_name: ubuntu
84-
# tasks:
85-
# - name: Copy gnos.pem keys to worker
86-
# copy: src={{ item }} dest=/home/{{ user_name }}/.gnos/ owner={{ user_name }} group={{ user_name }}
87-
# with_fileglob:
88-
# - /home/{{ user_name }}/.gnos/*
89-
90-
#- hosts: master
91-
# become: yes
92-
# become_user: root
93-
# vars:
94-
# installed_workflows_path: /workflows
95-
# target_workflow_path: /workflows
96-
# user_name: ubuntu
97-
# roles:
98-
# - { role: workflow, when: http_workflows is defined or s3_workflows is defined }
99-
100-
#- hosts: master
101-
# become: yes
102-
# become_user: root
103-
# roles:
104-
# - { role: containers, when: containers is defined or http_containers is defined or s3_containers is defined }
10575

10676
# Install monitoring components onto the client, once it is set up with all necessary containers. Maybe should happen before the consonance stuff...
10777
# Not strictly needed for consonance 2 development
@@ -114,7 +84,3 @@
11484
become_user: root
11585
roles:
11686
- { role: consonance }
117-
118-
#- hosts: master
119-
# roles:
120-
# - { role: test, when: test_workflows is defined and test_workflows }

params-consonance2.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,12 @@
11
{
2-
"SENSU_SERVER_IP_ADDRESS": "",
32
"FLEET_NAME": "broken_sword",
43
"aws_key": "FOOBAR",
54
"aws_secret_key": "FOOBAR",
6-
"seqware_version": "1.1.1",
7-
"workflow_name": "DEWrapper",
8-
"workflows": [
9-
"Workflow_Bundle_HelloWorld_1.0-SNAPSHOT_SeqWare_1.1.0"
10-
],
11-
"install_workflow": "false",
12-
"test_workflows": "false",
135
"queueHost": "192.168.0.208",
146
"queueName": "consonance_arch",
157
"lvm_device_whitelist": "/dev/xvdb,/dev/xvdc,/dev/xvdd,/dev/xvde",
168
"single_node_lvm": false,
17-
"consonance_arch_version": "2.0-alpha.9",
9+
"consonance_arch_version": "2.0-alpha.11",
1810
"seqware_engine": "whitestar",
1911
"seqware_use_custom_settings": false,
2012
"azure": false

roles/consonance/tasks/main.yml

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
- name: Get Architecture3 jar file
3-
get_url: url=https://www.dropbox.com/s/giy9ayxlvpoohiz/consonance-arch-2.0-alpha.11-SNAPSHOT.jar?dl=1 dest=/home/ubuntu/consonance-arch-{{ consonance_arch_version }}.jar
4-
#get_url: url=https://seqwaremaven.oicr.on.ca/artifactory/simple/seqware-release/io/consonance/consonance-arch/{{ consonance_arch_version }}/consonance-arch-{{ consonance_arch_version }}.jar dest=/home/ubuntu/consonance-arch-{{ consonance_arch_version }}.jar
3+
get_url: url=https://github.com/Consonance/consonance/releases/download/{{ consonance_arch_version }}/consonance-arch-{{ consonance_arch_version }}.jar dest=/home/ubuntu/consonance-arch-{{ consonance_arch_version }}.jar
54

65
# The "endless" flag for the worker is not a true/false, it's "--endless" or "".
76
- name: Conditionally turn endless_worker_flag on
@@ -42,32 +41,37 @@
4241
- /home/ubuntu/.gnos/*
4342
- /home/ubuntu/.aws/*
4443

44+
- name: Install setuptools
45+
pip: name=setuptools executable=pip2.7 version=34.2.0
46+
4547
- name: Install avro
4648
pip: name=avro executable=pip2.7 version=1.8.1
4749

4850
- name: Install schema-salad
49-
pip: name=schema-salad executable=pip2.7 version=1.14.20160708181155
51+
pip: name=schema-salad executable=pip2.7 version=2.2.20170222151604
5052

5153
- name: Install cwltool
52-
pip: name=cwltool executable=pip2.7 version=1.0.20160712154127
54+
pip: name=cwltool executable=pip2.7 version=1.0.20170217172322
55+
56+
# this part is fragile and did not survive the new cwltool versions (i.e. cannot resolve equivalent of merge conflict)
5357

54-
- name: Copy over patched job files
55-
copy: src=roles/consonance/files/job_new.py dest=/usr/local/lib/python2.7/dist-packages/cwltool/job.py owner=root
58+
#- name: Copy over patched job files
59+
# copy: src=roles/consonance/files/job_new.py dest=/usr/local/lib/python2.7/dist-packages/cwltool/job.py owner=root
5660

57-
- name: Copy over patched process files
58-
copy: src=roles/consonance/files/process_new.py dest=/usr/local/lib/python2.7/dist-packages/cwltool/process.py owner=root
61+
#- name: Copy over patched process files
62+
# copy: src=roles/consonance/files/process_new.py dest=/usr/local/lib/python2.7/dist-packages/cwltool/process.py owner=root
5963

60-
- name: Copy over patched main files
61-
copy: src=roles/consonance/files/main_new.py dest=/usr/local/lib/python2.7/dist-packages/cwltool/main.py owner=root
64+
#- name: Copy over patched main files
65+
# copy: src=roles/consonance/files/main_new.py dest=/usr/local/lib/python2.7/dist-packages/cwltool/main.py owner=root
6266

63-
- name: Delete compiled job files
64-
command: rm -f /usr/local/lib/python2.7/dist-packages/cwltool/job.pyc
67+
#- name: Delete compiled job files
68+
# command: rm -f /usr/local/lib/python2.7/dist-packages/cwltool/job.pyc
6569

66-
- name: Delete compiled process files
67-
command: rm -f /usr/local/lib/python2.7/dist-packages/cwltool/process.pyc
70+
#- name: Delete compiled process files
71+
# command: rm -f /usr/local/lib/python2.7/dist-packages/cwltool/process.pyc
6872

69-
- name: Delete compiled main files
70-
command: rm -f /usr/local/lib/python2.7/dist-packages/cwltool/main.pyc
73+
#- name: Delete compiled main files
74+
# command: rm -f /usr/local/lib/python2.7/dist-packages/cwltool/main.pyc
7175

7276
# install dcc-storage
7377

roles/consonance/templates/workerConfig.j2

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,4 @@ preworkerSleep=5
1010
postworkerSleep=5
1111
max-runs=1
1212
hostUserName={{ hostUser }}
13-
endless=false
14-
# If you do not specify an engine, the whitestar engine will be used by default.
15-
seqware-engine={{ seqware_engine }}
16-
# Only enable seqware-settings-file if you actually have one.
17-
#seqware-settings-file=/home/ubuntu/.seqware/settings
13+
endless=false

roles/consonance/vars/main.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
---
2-
#consonance_arch_version: 1.1-alpha.5
3-
#queueName: pancancer_arch_3
4-
#queueHost: "{{ lookup('env','PUBLIC_IP_ADDRESS') }}"
52
queueUser: queue_user
63
queuePassword: queue
74
hostUser: ubuntu
8-
seqware_engine: whitestar
95
dcc_storage_version: 0.0.48
106
dcc_target: collab

roles/containers/tasks/main.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

roles/seqware-container/tasks/main.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)