Skip to content
Snippets Groups Projects
Commit bb9f5f62 authored by Pavel Valach's avatar Pavel Valach
Browse files

Ansible/Warden-Filer-Receiver: fix installation

The main task file now:
 - creates the bin directory (default /opt/warden-filer)
 - copies the binaries properly
 - applies executable permission to the init.d script
 - creates main binary symlink at /usr/local/bin/warden_filer.py
 - creates /etc/default/warden_filer_receiver file in the correct path
parent d2538766
No related branches found
No related tags found
1 merge request!1Ansible/Warden-Filer-Receiver: fix installation
...@@ -5,10 +5,20 @@ ...@@ -5,10 +5,20 @@
version: warden-client-3.0-beta3 version: warden-client-3.0-beta3
dest: /tmp/warden_client_repository dest: /tmp/warden_client_repository
- name: Create bin dir for warden_filer
file:
path: "{{ warden_filer_bin_path }}"
state: directory
owner: root
group: root
mode: "755"
- name: Install Filer binaries - name: Install Filer binaries
copy: copy:
src: "/tmp/warden_client_repository/{{ src }}" remote_src: true
dest: "{{ warden_filer_bin_path }}/{{ dest }}" src: "/tmp/warden_client_repository/{{ item.src }}"
dest: "{{ warden_filer_bin_path }}/{{ item.dest }}"
mode: "755"
with_items: with_items:
- src: warden_client/warden_client.py - src: warden_client/warden_client.py
dest: warden_client.py dest: warden_client.py
...@@ -17,15 +27,26 @@ ...@@ -17,15 +27,26 @@
- src: warden_filer/check_file_count - src: warden_filer/check_file_count
dest: check_file_count dest: check_file_count
- name: Link Filer binary to /usr/local/bin
file:
src: "{{ warden_filer_bin_path }}/warden_filer.py"
dest: "/usr/local/bin/warden_filer.py"
state: link
owner: root
group: root
mode: "755"
- name: Install Warden Filer config - name: Install Warden Filer config
template: template:
src: "{{ item }}" src: "{{ item }}"
dest: "/{{ item }}" dest: "/{{ item }}"
with_items: with_items:
- etc/warden_filer.cfg - etc/warden_filer.cfg
- etc/defaults/warden_filer_receiver - etc/default/warden_filer_receiver
- name: Install Warden Filer init script - name: Install Warden Filer init script
copy: copy:
remote_src: true
src: /tmp/warden_client_repository/warden_filer/warden_filer_receiver src: /tmp/warden_client_repository/warden_filer/warden_filer_receiver
dest: /etc/init.d/warden_filer_receiver dest: /etc/init.d/warden_filer_receiver
mode: "755"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment