Skip to content

Commit

Permalink
Merge pull request #17 from nc-fosterr/master
Browse files Browse the repository at this point in the history
Private Mirror Option
  • Loading branch information
robertdebock authored Dec 6, 2023
2 parents 74f52b7 + 6b982a9 commit 680ed56
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,16 @@ clamav_configuration:
- line: "LogFile /var/log/clamd.scan"
```

### [Playbook Variables](#playbook-variables)

Aside from variables documented in `vars/main.yml` that can be overridden, if you have local clamav mirrors (as recommended by ClamAV), you will also need to define a list variable with your mirrors to add, as the following example indicate.

```
freshclam_private_mirrors:
- mirror1.mynetwork.com
- mirror2.mynetwork.com
```
## [Requirements](#requirements)
- pip packages listed in [requirements.txt](https://github.com/robertdebock/ansible-role-clamav/blob/master/requirements.txt).
Expand Down
5 changes: 5 additions & 0 deletions templates/freshclam.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ DatabaseMirror database.clamav.net
# Default: disabled
#PrivateMirror mirror1.mynetwork.com
#PrivateMirror mirror2.mynetwork.com
{% if freshclam_private_mirrors is defined %}
{% for mirror in freshclam_private_mirrors %}
PrivateMirror {{ mirror }}
{% endfor %}
{% endif %}

# Number of database checks per day.
# Default: 12 (every two hours)
Expand Down

0 comments on commit 680ed56

Please sign in to comment.