You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
2.3 KiB
YAML

---
- name: Create the configuration directory for dsh
file: path=/root/.dsh/group owner=root group=root state=directory
- name: Install the dsh host groups
template: src=dsh-{{ item }}.j2 dest=/root/.dsh/group/{{ item }}
with_items:
- quorum
- namenodes
- datanodes
- hbase-master
- jobtrackers
tags:
- system
# Install the global start/stop/restart scripts. jobtracker drives all the other nodes
- name: Install the Hadoop cluster start/stop scripts
template: src={{item }}.j2 dest=/usr/local/bin/{{ item }} owner=root group=root mode=555
with_items:
- service-hdfs-journalnode
- service-hdfs-zkfc
- service-hdfs-namenode
- service-hdfs-secondarynamenode
- service-hdfs-datanode
- service-hdfs-httpfs
- service-zookeeper-server
- service-hbase-master
- service-hbase-regionserver
- service-hbase-rest
- service-hbase-thrift
- service-mapreduce-jobtracker
- service-mapreduce-jobtracker-zkfc
- service-mapreduce-tasktracker
- service-global-hadoop-cluster
- service-global-hbase
- service-global-mapred
- service-global-hdfs
tags:
- system
- name: Install the shell functions library
copy: src={{ item }}.sh dest=/usr/local/lib/{{ item }} owner=root group=root mode=444
with_items:
- service-hadoop-common-functions
tags:
- system
- name: Another name for the zookeeper script
file: src=/usr/local/bin/service-zookeeper-server dest=/usr/local/bin/service-global-zookeeper state=link
tags:
- system
- name: update nginx config
template: src={{ portal_nginx_conf }}-nginx.conf.j2 dest=/etc/nginx/sites-available/{{ portal_nginx_conf }}
notify: Reload nginx
tags:
- portal
- name: symlink nginx config
file: src=/etc/nginx/sites-available/{{ portal_nginx_conf }} dest=/etc/nginx/sites-enabled/{{ portal_nginx_conf }} state=link
notify: Reload nginx
tags:
- portal
- name: Create the web root if it doesn''t exist
file: dest={{ portal_web_root }} state=directory
tags:
- portal
- name: Create a fake favicon
copy: content="" dest={{ portal_web_root }}/favicon.ico owner=root group=root mode=0444
tags:
- portal
- name: Install the index file
template: src=management-portal-index.html.j2 dest={{ portal_web_root }}/index.html mode=444
tags:
- portal