Commit 32fa0262 authored by Georgios Ouzounis's avatar Georgios Ouzounis

LAM-49 init scripts are copied with the appropriate permission.

parent 6d18c39e
......@@ -5,7 +5,7 @@
- download
- name: Uncompress Apache Flink.
unarchive: src="{{ download_path }}/flink-{{ version }}-{{ version_for }}.tgz" dest="{{ installation_path }}" copy=no
unarchive: src="{{ download_path }}/flink-{{ version }}-{{ version_for }}.tgz" dest="{{ installation_path }}" copy=no owner=flink group=lambda
tags:
- uncompress
......@@ -15,12 +15,12 @@
- uncompress
- name: Configure Apache Flink.
template: src=flink-conf.j2 dest="{{ installation_path }}/flink/conf/flink-conf.yaml" owner=root group=root mode=0644
template: src=flink-conf.j2 dest="{{ installation_path }}/flink/conf/flink-conf.yaml" owner=flink group=lambda mode=0644
tags:
- configure
- name: Copy Apache Flink init script.
template: src=flink-init.j2 dest=/etc/init.d/flink-init owner=root group=root mode=0755
template: src=flink-init.j2 dest=/etc/init.d/flink-init owner=flink group=lambda mode=0740
- name: Start Apache Flink.
shell: /etc/init.d/flink-init start # Should use Ansible module "service: name=flink-init state=started" when the bug in version 1.9.1 is fixed.
......
---
- name: Copy Apache HDFS init script.
template: src=hdfs-init.j2 dest=/etc/init.d/hdfs-init owner=root group=root mode=0755
template: src=hdfs-init.j2 dest=/etc/init.d/hdfs-init owner=hduser group=lambda mode=0740
- name: Copy Apache Yarn init script.
template: src=yarn-init.j2 dest=/etc/init.d/yarn-init owner=root group=root mode=0755
template: src=yarn-init.j2 dest=/etc/init.d/yarn-init owner=hduser group=lambda mode=0740
- name: Format Apache HDFS.
shell: "yes | {{ installation_path }}/hadoop/bin/hadoop namenode -format"
......
......@@ -9,4 +9,4 @@
file: src="{{ installation_path }}/kafka_{{ scala_version }}-{{ version }}" dest="{{ installation_path }}/kafka" state=link
- name: Copy Apache Kafka init script.
template: src=kafka-init.j2 dest=/etc/init.d/kafka-init owner=kafka group=lambda mode=0754
template: src=kafka-init.j2 dest=/etc/init.d/kafka-init owner=kafka group=lambda mode=0740
......@@ -3,7 +3,7 @@
include: install.yml
- name: Copy Apache Zookeeper init script.
template: src=zookeeper-init.j2 dest=/etc/init.d/zookeeper-init owner=root group=root mode=0755
template: src=zookeeper-init.j2 dest=/etc/init.d/zookeeper-init owner=kafka group=lambda mode=0740
- name: Configure Apache kafka.
copy: src=server.properties dest="{{ installation_path }}/kafka/config/server.properties" owner=kafka group=lambda mode=0644
......
......@@ -9,7 +9,7 @@
template: src=hosts.j2 dest=/etc/hosts backup=no owner=root group=lambda mode=0750
- name: Copy environment file.
template: src=environment.j2 dest=/etc/environment backup=no owner=root group=root mode=0750
template: src=environment.j2 dest=/etc/environment backup=no owner=root group=lambda mode=0750
- name: Generate ssh key.
shell: cat /dev/zero | ssh-keygen -q -N ""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment