Created
December 5, 2014 16:48
-
-
Save peeterskris/1f61d4278700f4028e5d to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
| - apt: name=ambari-agent | |
| - lineinfile: dest=/etc/ambari-agent/conf/ambari-agent.ini regexp='hostname=*' line='hostname=nuc01.local.nuc' state=present | |
| - service: name=ambari-agent state=restarted | |
| - 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment