-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 1d716c3
Showing
7 changed files
with
91 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2020 4lie | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Fluentd Ansible Role | ||
|
||
Fluentd is an open source data collector for unified logging layer. | ||
|
||
## Installation | ||
|
||
``` yaml | ||
# requirments.yaml | ||
- src: [email protected]:4lie/ansible-role-fluentd.git | ||
scm: git | ||
version: master | ||
name: fluentd | ||
``` | ||
## Role Variables | ||
``` yaml | ||
``` | ||
|
||
## Example Playbook | ||
|
||
``` yaml | ||
- hosts: servers | ||
roles: | ||
- fluentd | ||
``` |
Empty file.
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- name: Restart td-agent | ||
service: | ||
name: td-agent | ||
state: restarted |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
galaxy_info: | ||
role_name: fluentd | ||
author: Rashad Ansari | ||
description: Set up Fluentd in Ubuntu systems | ||
company: $lie | ||
min_ansible_version: 2.6 | ||
platforms: | ||
- name: Ubuntu | ||
versions: | ||
- all | ||
galaxy_tags: | ||
- fluentd | ||
|
||
dependencies: [] |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
- name: Download fluentd installer (Ubuntu 16.04) | ||
get_url: | ||
url: https://toolbelt.treasuredata.com/sh/install-ubuntu-xenial-td-agent4.sh | ||
dest: /tmp/td-agent.sh | ||
mode: 755 | ||
force: yes | ||
when: ansible_distribution_major_version > '16' | ||
|
||
- name: Download fluentd installer (Ubuntu 18.04) | ||
get_url: | ||
url: https://toolbelt.treasuredata.com/sh/install-ubuntu-bionic-td-agent4.sh | ||
dest: /tmp/td-agent.sh | ||
mode: 755 | ||
force: yes | ||
when: ansible_distribution_major_version > '18' | ||
|
||
- name: Download fluentd installer (Ubuntu 20.04) | ||
get_url: | ||
url: https://toolbelt.treasuredata.com/sh/install-ubuntu-focal-td-agent4.sh | ||
dest: /tmp/td-agent.sh | ||
mode: 755 | ||
force: yes | ||
when: ansible_distribution_major_version > '20' | ||
|
||
- name: Execute the fluentd installer | ||
command: "/tmp/td-agent.sh" |
Empty file.