forked from ISTI-ansible-roles/ansible-roles
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:
parent
e4097fa045
commit
bedaa43a30
|
@ -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
|
|
@ -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' ]
|
Loading…
Reference in New Issue