Update to 2021-02-18 09:00

master
Daniel Berteaud 4 years ago
parent 4c1acbd1eb
commit 97215aadaa
  1. 3
      roles/crowdsec/defaults/main.yml
  2. 1
      roles/crowdsec/tasks/conf.yml
  3. 6
      roles/crowdsec/templates/acquis.yaml.j2
  4. 4
      roles/crowdsec/templates/config.yaml.j2

@ -7,6 +7,9 @@ crowdsec_archive_url: https://github.com/crowdsecurity/crowdsec/releases/downloa
# Expected sha1 of the archive # Expected sha1 of the archive
crowdsec_archive_sha1: 7c9dc58c6648c8fd43b297427d6a53fe940cbf13 crowdsec_archive_sha1: 7c9dc58c6648c8fd43b297427d6a53fe940cbf13
# Can be sqlite or mysql
crowdsec_db_engine: sqlite
# This is for mysql backend
crowdsec_db_server: "{{ mysql_server | default('localhost') }}" crowdsec_db_server: "{{ mysql_server | default('localhost') }}"
crowdsec_db_port: 3306 crowdsec_db_port: 3306
crowdsec_db_name: crowdsec crowdsec_db_name: crowdsec

@ -18,6 +18,7 @@
- db_user: "{{ crowdsec_db_user }}" - db_user: "{{ crowdsec_db_user }}"
- db_server: "{{ crowdsec_db_server }}" - db_server: "{{ crowdsec_db_server }}"
- db_pass: "{{ crowdsec_db_pass }}" - db_pass: "{{ crowdsec_db_pass }}"
when: crowdsec_db_engine == 'mysql'
tags: crowdsec tags: crowdsec
- when: crowdsec_lapi_pass is not defined - when: crowdsec_lapi_pass is not defined

@ -3,3 +3,9 @@ journalctl_filter:
- "_SYSTEMD_UNIT=sshd.service" - "_SYSTEMD_UNIT=sshd.service"
labels: labels:
type: syslog type: syslog
---
journalctl_filter:
- "_TRASPORT=kernel"
labels:
type: syslog

@ -22,12 +22,16 @@ cscli:
db_config: db_config:
log_level: info log_level: info
{% if crowdsec_db_engine == 'mysql' %}
type: mysql type: mysql
user: {{ crowdsec_db_user }} user: {{ crowdsec_db_user }}
password: {{ crowdsec_db_pass | quote }} password: {{ crowdsec_db_pass | quote }}
db_name: {{ crowdsec_db_name }} db_name: {{ crowdsec_db_name }}
host: {{ crowdsec_db_server }} host: {{ crowdsec_db_server }}
port: {{ crowdsec_db_port }} port: {{ crowdsec_db_port }}
{% else %}
db_path: /var/lib/crowdsec/data/crowdsec.db
{% endif %}
flush: flush:
max_items: 100000 max_items: 100000
max_age: 730d max_age: 730d

Loading…
Cancel
Save