library/roles/hadoop/HDP: Role that installs the Nortonworks HDP ambari packages. In future it will do some basic initialization too.

This commit is contained in:
Andrea Dell'Amico 2016-09-30 18:37:48 +02:00
parent e4097fa045
commit bedaa43a30
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,7 @@
---
# See http://docs.hortonworks.com/HDPDocuments/Ambari-2.4.1.0/bk_ambari-installation/content/download_the_ambari_repo_ubuntu14.html
hdp_ambari_install: False
hdp_ambari_repo_url: 'http://public-repo-1.hortonworks.com/ambari/ubuntu14/2.x/updates/2.4.1.0/ambari.list'
hdp_ambari_repo_key: 'B9733A7A07513CAD'
ambari_use_separate_postgres_db: False

18
hadoop/HDP/tasks/main.yml Normal file
View File

@ -0,0 +1,18 @@
---
- block:
- name: apt key for the Hortonworks ambari repository
apt_key: keyserver=keyserver.ubuntu.com id={{ hdp_ambari_repo_key }} state=present
- name: Install the Hortonworks ambari repository
get_url: url={{ hdp_ambari_repo_url }} dest=/etc/apt/sources.list.d/ambari.list
register: ambari_repo
- name: Update the apt cache
apt: update_cache=yes
when: ( ambari_repo | changed )
- name: Install the ambari server
apt: pkg=ambari-server state=latest
when: hdp_ambari_install
tags: [ 'hdp', 'hadoop', 'ambari' ]