Skip to content

Commit

Permalink
Merge pull request #9 from gabops/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
gabops authored Feb 16, 2021
2 parents ea23160 + 61f5480 commit d85e483
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ services: docker

env:
matrix:
- TEST_DISTRO: centos:6
- TEST_DISTRO: centos:7
- TEST_DISTRO: amazonlinux:1
- TEST_DISTRO: amazonlinux:2
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Role Variables
| papertrail_config_file_path | /etc/papertrail_conf.yml | Name of the configuration file for remote_syslog. |
| papertrail_service_enabled | true | Configure remote_syslog for starting when the system is booted. |
| papertrail_service_state | started | Defines the status of the service. |
| papertrail_check_download_certs | true | Configures whether or not the server certificates where the package is being downloaded need to be checked or not. This options has been added just for covering some edgy cases and should be left to true always. |
| papertrail_managed_conf_file | true | If false, no configuration will be applied (All variables below will be ignored). Just the installation and nothing else. |
| papertrail_custom_hostname | "" | By default remote_syslog2 uses the hostname of the node. This can be this can be overwritten here. |
| papertrail_destination_host | "" | Defines the Papertrail destination host to send the logs to. Check your papertrail account for it. |
Expand Down
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ papertrail_service_enabled: true

papertrail_service_state: started

papertrail_check_download_certs: true

papertrail_managed_conf_file: true

papertrail_managed_conf_file_owner: root
Expand Down
1 change: 1 addition & 0 deletions molecule/configured/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
hosts: all
vars:
papertrail_version: "0.19"
papertrail_check_download_certs: false
papertrail_destination_host: localhost
papertrail_destination_port: 12345
papertrail_custom_hostname: "host-01"
Expand Down
2 changes: 2 additions & 0 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
yum:
name: "{{ papertrail_download_url }}/{{ papertrail_package_name }}"
state: present
validate_certs: "{{ papertrail_check_download_certs }}"
when: ansible_os_family == "RedHat"

- name: Install Papertrail (Debian)
apt:
deb: "{{ papertrail_download_url }}/{{ papertrail_package_name }}"
update_cache: true
force: "{{ False if papertrail_check_download_certs | bool else papertrail_check_download_certs }}"
when: ansible_os_family == "Debian"

0 comments on commit d85e483

Please sign in to comment.