Created
December 5, 2014 16:47
-
-
Save peeterskris/2a72e782adf4976ee06c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: cluster | |
vars: | |
http_port: 80 | |
max_clients: 200 | |
remote_user: root | |
tasks: | |
- apt_repository: repo='deb http://public-repo-1.hortonworks.com/ambari/ubuntu12/1.x/updates/1.7.0 Ambari main' update_cache=no | |
- apt_repository: repo='deb http://public-repo-1.hortonworks.com/HDP/ubuntu12/2.x/GA/2.2.0.0 HDP main' update_cache=no | |
- apt_repository: repo='deb http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.20/repos/ubuntu12 HDP-UTILS main' update_cache=no | |
- apt_key: keyserver=keyserver.ubuntu.com id=B9733A7A07513CAD | |
- apt: update_cache=yes upgrade=yes | |
- hosts: cluster-manager | |
remote_user: root | |
tasks: | |
- apt: name=ambari-server | |
- shell: ambari-server setup -s >> /tmp/ambari-server-setup.log | |
- service: name=ambari-server state=restarted | |
- hosts: cluster | |
remote_user: root | |
tasks: | |
- apt: name=ambari-agent | |
- lineinfile: dest=/etc/hosts regexp='hostname=*' line='hostname=nuc01.local.nuc' state=absent | |
- lineinfile: dest=/etc/ambari-agent/conf/ambari-agent.ini regexp='hostname=*' line='hostname=nuc01.local.nuc' state=present | |
- service: name=ambari-agent state=restarted | |
#- apt_repository: repo='deb http://public-repo-1.hortonworks.com/ambari/ubuntu12/1.x/updates/1.7.0 Ambari main' update_cache=no state=absent | |
#- apt_repository: repo='deb http://public-repo-1.hortonworks.com/HDP/ubuntu12/2.x/GA/2.2.0.0 HDP main' update_cache=no state=absent | |
#- apt_repository: repo='deb http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.20/repos/ubuntu12 HDP-UTILS main' update_cache=no state=absent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment