This repository has been archived by the owner on Jun 19, 2023. It is now read-only.
-
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.
feat(IMPORT): import role from legacy provisioner project
- Loading branch information
1 parent
3a2c5ee
commit 453ca82
Showing
35 changed files
with
1,591 additions
and
83 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
--- | ||
# .ansible-lint | ||
skip_list: [] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,15 +1,23 @@ | ||
--- | ||
sudo: required | ||
language: bash | ||
jobs: | ||
include: | ||
- os: osx | ||
osx_image: xcode12.5 | ||
env: | ||
- SCENARIO=hostmachine1 | ||
- os: osx | ||
osx_image: xcode12.5 | ||
env: | ||
- SCENARIO=no_clamwatch | ||
- os: osx | ||
osx_image: xcode12.5 | ||
env: | ||
- SCENARIO=clamwatch | ||
before_install: [] | ||
install: | ||
- sudo python3 -m pip install poetry | ||
- poetry install | ||
- sudo python3 -m pip install poetry | ||
- poetry install | ||
script: | ||
- poetry run molecule lint | ||
- poetry run molecule test -s "${SCENARIO}" | ||
- poetry run molecule lint | ||
- travis_wait 30 poetry run molecule test -s "${SCENARIO}" | ||
notifications: | ||
slack: | ||
secure: Xs0i+ZZRLngRMMmjeCoj9XI7A+ffePR+TMLeLZPUgowTOEOHHIpCB7Sic5fpR+NfN6RnbmV2n3QFlYpG/ItWNxvLJWUeYTK7IUFQHfMqPGV4je72gCMCDPVUwrhi535IcN1oBjVcwtE5SIxJ1bhtB18HW82dMnhPyN4TmIgxsCeZvQHejR7DJAJLJVUkeUGyzNudezrIhxAiAohx07ze5IMbp/RVUxhmMLLd6Sfh33RGoYEaLWdTPEzyjhVEGK4lJrTuhfddtwO9yx1Ws/hmcEHfV6X5WkLlWMc7MUU1QJ/NThi3oWv2X2IT6j2321GmlRA2UlUSHscTswq+JPs5I/hm9iCDu+Doz9ROuMj31MMGL5FbrEQ8NueaW6ytqXo8A6zi0SCD6KWQqG53i6eiYn/jt6LxHwJ0cWZuBaWR+c2SKgBgB7a3koxc4hBz5Q/G1MGUuctPvVHkADLkk1pFfud55qMLtc51pbAOBWLF0pNEsZ6LXUOoT+zmwt9VJZrrIB4J/Bz+euVqJ+/AbOZcI43CQ8+l1m4B2cL28RR2fVFHLXJonHW+MzoESbxfSQ7q2pQRRkijg6IogvIGsapleBMCB+eaC7YMioNW3mV3lI4uYfl5gM9YCAsGHQtUelZrxG+BN9xJJV0DORITpA+OiFG1+PMhl5fPw3l8SY78+2o= |
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,2 +1,19 @@ | ||
--- | ||
# defaults file for role-clamav | ||
# defaults file for clamav | ||
|
||
clamav_clamwatch: true | ||
|
||
clamav_clamwatch_target_folder: "{{ lookup('env','HOME') }}/Downloads" | ||
clamav_clamwatch_quarantine_folder: "{{ lookup('env','HOME') }}/Quarantine" | ||
clamav_clamwatch_log_file: /var/log/clamav.clamwatch.log | ||
clamav_clamwatch_stderr_log_file: /var/log/clamav.clamwatch.error.log | ||
|
||
clamav_freshclam_log_file: /var/log/clamav.freshclam.log | ||
clamav_freshclam_stderr_log_file: /var/log/clamav.freshclam.error.log | ||
|
||
clamav_clamd_log_file: /var/log/clamav.clamd.log | ||
clamav_clamd_stderr_log_file: /var/log/clamav.clamd.error.log | ||
|
||
clamav_database_location: /usr/local/var/lib/clamav | ||
|
||
clamav_homebrew_retries: 3 |
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,12 @@ | ||
#!/bin/bash | ||
|
||
# $1 - The folder to watch | ||
# $2 - The quarantine folder to move items to | ||
# $3 - The log file location | ||
|
||
/usr/local/bin/fswatch "${1}" | while read -r FILE | ||
do | ||
if [[ -f ${FILE} ]]; then | ||
/usr/local/bin/clamdscan --no-summary --move="${2}" "${FILE}" >> "${3}" | ||
fi | ||
done |
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,2 +1,33 @@ | ||
--- | ||
# handlers file for role-clamav | ||
# handlers file for clamav | ||
|
||
- name: Update Virus Definitions | ||
become: true | ||
ansible.builtin.command: /usr/local/bin/freshclam | ||
changed_when: true | ||
listen: "Update Virus Definitions" | ||
|
||
- name: Restart Clamd | ||
become: true | ||
community.general.launchd: | ||
name: "clamav.clamd" | ||
enabled: true | ||
state: restarted | ||
listen: "Restart Clamd" | ||
|
||
- name: Restart Freshclam | ||
become: true | ||
community.general.launchd: | ||
name: "clamav.freshclam" | ||
enabled: true | ||
state: restarted | ||
listen: "Restart Freshclam" | ||
|
||
- name: Restart Clamwatch | ||
become: true | ||
community.general.launchd: | ||
name: "clamav.clamwatch" | ||
enabled: true | ||
state: restarted | ||
force_stop: yes | ||
listen: "Restart Clamwatch" |
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
File renamed without changes.
Oops, something went wrong.