Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
the-hive: download specifically 4.0.0-1 version
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Sokołowski <[email protected]>
  • Loading branch information
jakubgs committed Oct 12, 2020
1 parent c12b93d commit 7e74e1a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion ansible/roles/the-hive/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ the_hive_files_path: '{{ the_hive_data_path }}/files'
the_hive_logs_level: 'info'

# Binary release
the_hive_binary_url: 'https://download.thehive-project.org/thehive4-latest.zip'
the_hive_version: '4.0.0-1'
the_hive_binary_url: 'https://download.thehive-project.org/thehive4-{{ the_hive_version }}.zip'
the_hive_binary_md5: 'e7fe6b258dc59352b57630a7c060fdc0'

# Secret for cookies and built-in encryption
Expand Down
6 changes: 3 additions & 3 deletions ansible/roles/the-hive/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

- name: Check if already installed
stat:
path: '/opt/thehive4-4.0.0-1'
path: '/opt/thehive4-{{ the_hive_version }}'
register: the_hive_symlink

- name: Download binary release zip
Expand All @@ -24,12 +24,12 @@
group: '{{ the_hive_service_user }}'
mode: 0755
remote_src: true
creates: /opt/thehive4-4.0.0-1/bin/thehive
creates: /opt/thehive4-{{ the_hive_version }}/bin/thehive
when: not the_hive_symlink.stat.exists

- name: Symlinks specific version
file:
src: '/opt/thehive4-4.0.0-1'
src: '/opt/thehive4-{{ the_hive_version }}'
dest: '{{ the_hive_install_path }}'
state: 'link'

Expand Down
4 changes: 2 additions & 2 deletions ansible/roles/the-hive/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
#- name: Install The Hive
# import_tasks: install.yml
- name: Install The Hive
import_tasks: install.yml

- name: Create config files
import_tasks: config.yml
Expand Down

0 comments on commit 7e74e1a

Please sign in to comment.