Skip to content

Commit

Permalink
Feature/diet (#13)
Browse files Browse the repository at this point in the history
* Remove cruft like Pig, Hive, Spark, etc
  • Loading branch information
denis-yuen committed May 20, 2016
1 parent bd88ed8 commit d881a55
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
6 changes: 3 additions & 3 deletions roles/seqware-master-infrastructure/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
dest: /etc/apt/preferences.d/cloudera.pref

- name: Install Hadoop for a master
apt: name={{ item }} state=present update_cache=yes cache_valid_time=3600
apt: name={{ item }} state=present update_cache=yes cache_valid_time=3600 install_recommends=no
register: oozie_installed
with_items:
- hadoop-0.20-mapreduce-jobtracker
Expand Down Expand Up @@ -58,7 +58,7 @@
changed_when: "'done' in reconfigure_locales"

- name: Install Hadoop for a single-node master
apt: name={{ item }} state=present update_cache=yes cache_valid_time=3600
apt: name={{ item }} state=present update_cache=yes cache_valid_time=3600 install_recommends=no
with_items:
- hadoop-0.20-mapreduce-tasktracker
- hadoop-hdfs-datanode
Expand All @@ -67,7 +67,7 @@
when: single_node

- name: Install zookeeper
apt: name={{ item }} state=present update_cache=yes cache_valid_time=3600
apt: name={{ item }} state=present update_cache=yes cache_valid_time=3600 install_recommends=no
with_items:
- zookeeper
- zookeeper-server
Expand Down
2 changes: 1 addition & 1 deletion roles/seqware-worker-infrastructure/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# file: roles/seqware-worker-infrastructure/tasks/main.yml

- name: Install Hadoop for a worker
apt: name={{ item }} state=present update_cache=yes cache_valid_time=3600
apt: name={{ item }} state=present update_cache=yes cache_valid_time=3600 install_recommends=no
with_items:
- hadoop-0.20-mapreduce-tasktracker
- hadoop-hdfs-datanode
Expand Down
17 changes: 17 additions & 0 deletions seqware-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,20 @@
roles:
- { role: seqware-cron, when: test_environment is undefined }
- { role: seqware-helloworld, when: test_environment is undefined }

# cleanup for seqware 1.2
- hosts: all
sudo: True
tasks:
- name: Clean extra packages
apt: name={{ item }} state=absent purge=yes
with_items:
- maven
- spark-core
- hive
- pig
- solr
- hbase

- name: Autoremove unused packages
command: apt-get -y autoremove

0 comments on commit d881a55

Please sign in to comment.