This repository has been archived by the owner on Dec 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from torian/devel
Release 6.0.0
- Loading branch information
Showing
12 changed files
with
142 additions
and
118 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,39 @@ | ||
--- | ||
|
||
- name: Elastic APT Key | ||
apt_key: | ||
state=present | ||
url="{{filebeat_gpg_key}}" | ||
when: filebeat_use_repo | ||
- block: | ||
|
||
- name : FileBeat APT Repository | ||
apt_repository: | ||
state=present | ||
repo="deb {{filebeat_apt_repository}} stable main" | ||
update_cache=yes | ||
when: filebeat_use_repo | ||
- name: Elastic APT Key | ||
apt_key: | ||
state: present | ||
url: "{{filebeat_gpg_key}}" | ||
|
||
- name : FileBeat APT Repository | ||
apt_repository: | ||
state: present | ||
repo: "deb {{filebeat_apt_repository}} stable main" | ||
update_cache: yes | ||
|
||
- name: Install FileBeat (Debian) | ||
apt: | ||
state: "{{ (filebeat_upgrade) | ternary('latest', 'present') }}" | ||
name: "{{filebeat_package}}" | ||
notify: filebeat restart | ||
|
||
- name: Install FileBeat (Debian) | ||
apt: | ||
state="{{ (filebeat_upgrade) | ternary('latest', 'present') }}" | ||
name="{{item}}" | ||
with_items: "{{filebeat_packages}}" | ||
notify: filebeat restart | ||
when: filebeat_use_repo | ||
|
||
- name: Download FileBeat DEB | ||
get_url: | ||
url: "{{filebeat_package_baseurl}}/{{item}}-{{filebeat_version}}-amd64.deb" | ||
dest: "/var/cache/apt/archives/{{item}}-{{filebeat_version}}-amd64.deb" | ||
with_items: "{{filebeat_packages}}" | ||
when: not filebeat_use_repo | ||
- block: | ||
|
||
- name: Download FileBeat DEB | ||
get_url: | ||
url: "{{filebeat_package_url}}" | ||
dest: "/var/cache/apt/archives/filebeat-{{filebeat_version}}-amd64.deb" | ||
|
||
- name: Install FileBeat DEB | ||
apt: | ||
deb: "/var/cache/apt/archives/filebeat-{{filebeat_version}}-amd64.deb" | ||
state: present | ||
notify: filebeat restart | ||
|
||
- name: Install FileBeat DEB | ||
apt: | ||
deb: "/var/cache/apt/archives/{{item}}-{{filebeat_version}}-amd64.deb" | ||
state: present | ||
with_items: "{{filebeat_packages}}" | ||
notify: filebeat restart | ||
when: not filebeat_use_repo | ||
|
||
# vi:ts=2:sw=2:et:ft=yaml |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,38 @@ | ||
--- | ||
|
||
- name: FileBeat Yum Repository | ||
copy: | ||
dest="/etc/yum.repos.d/filebeat-{{filebeat_version}}.repo" | ||
content="{{filebeat_yum_config}}" | ||
owner="root" | ||
group="root" | ||
mode="0644" | ||
|
||
- name: Install FileBeat (RedHat) | ||
yum: | ||
state="{{ (filebeat_upgrade) | ternary('latest', 'present') }}" | ||
name="{{item}}" | ||
update_cache=yes | ||
with_items: "{{filebeat_packages}}" | ||
notify: filebeat restart | ||
|
||
- name: Download FileBeat RPM | ||
get_url: | ||
url: "{{filebeat_package_baseurl}}/{{item}}-{{filebeat_version}}-{{ansible_architecture}}.rpm" | ||
dest: "/var/cache/yum/{{ansible_architecture}}/{{item}}-{{filebeat_version}}-{{ansible_architecture}}.rpm" | ||
with_items: "{{filebeat_packages}}" | ||
when: not filebeat_use_repo | ||
- block: | ||
|
||
- name: FileBeat Yum Repository | ||
copy: | ||
dest: "/etc/yum.repos.d/filebeat-{{filebeat_version}}.repo" | ||
content: "{{filebeat_yum_config}}" | ||
owner: "root" | ||
group: "root" | ||
mode: "0644" | ||
|
||
- name: Install FileBeat (RedHat) | ||
yum: | ||
state: "{{ (filebeat_upgrade) | ternary('latest', 'present') }}" | ||
name: "{{filebeat_package}}" | ||
update_cache: yes | ||
notify: filebeat restart | ||
|
||
when: filebeat_use_repo | ||
|
||
- block: | ||
|
||
- name: Download FileBeat RPM | ||
get_url: | ||
url: "{{filebeat_package_url}}" | ||
dest: "/var/cache/yum/{{ansible_architecture}}/filebeat-{{filebeat_version}}-{{ansible_architecture}}.rpm" | ||
|
||
- name: Install FileBeat from RPM | ||
yum: | ||
state: present | ||
name: "/var/cache/yum/{{ansible_architecture}}/filebeat-{{filebeat_version}}-{{ansible_architecture}}.rpm" | ||
notify: filebeat restart | ||
|
||
- name: Install FileBeat from RPM | ||
yum: | ||
name: "/var/cache/yum/{{ansible_architecture}}/{{item}}-{{filebeat_version}}-{{ansible_architecture}}.rpm" | ||
state: present | ||
with_items: "{{filebeat_packages}}" | ||
notify: filebeat restart | ||
when: not filebeat_use_repo | ||
|
||
|
||
# vi:ts=2:sw=2:et:ft=yaml |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
pre_tasks: | ||
|
||
- name: Uninstall previous filebeat version | ||
apt: | ||
package: | ||
name: 'filebeat' | ||
state: absent | ||
|
||
|
This file contains 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
Oops, something went wrong.