First commit
This commit is contained in:
commit
31a1e97b04
11 changed files with 334 additions and 0 deletions
30
tasks/main.yml
Normal file
30
tasks/main.yml
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
---
|
||||
# https://github.com/crowdsecurity/helm-charts/tree/main/charts/crowdsec
|
||||
- name: CrowdSec setup
|
||||
block:
|
||||
- name: Defined CrowdSec repository
|
||||
kubernetes.core.helm_repository:
|
||||
name: crowdsec
|
||||
repo_url: "https://crowdsecurity.github.io/helm-charts"
|
||||
- name: Deploy latest version of CrowdSec
|
||||
kubernetes.core.helm:
|
||||
context: "{{ my_context }}"
|
||||
name: crowdsec
|
||||
release_namespace: "{{ crowdsec_namespace }}"
|
||||
create_namespace: true
|
||||
chart_ref: crowdsec/crowdsec
|
||||
chart_version: "{{ crowdsec_chart_version }}"
|
||||
values: "{{ lookup('template', 'helm-values.yaml.j2') | from_yaml }}"
|
||||
# - name: crowdsec agent install
|
||||
# kubernetes.core.k8s:
|
||||
# state: present
|
||||
# context: "{{ my_context }}"
|
||||
# namespace: "{{ crowdsec_namespace }}"
|
||||
# resource_definition: "{{ lookup('template', item) | from_yaml }}"
|
||||
# with_items:
|
||||
# - crowdsec-agent-Service.yml.j2
|
||||
# - crowdsec-agent-DaemonSet.yml.j2
|
||||
# - crowdsec-agent-serviceMonitor.yml.j2
|
||||
|
||||
tags:
|
||||
- crowdsec
|
||||
Loading…
Add table
Add a link
Reference in a new issue