This commit is contained in:
parent
32ba33296f
commit
91cc528a2f
2 changed files with 39 additions and 0 deletions
|
|
@ -5,3 +5,6 @@ my_context: minikube
|
||||||
#drone_storage_classname:
|
#drone_storage_classname:
|
||||||
#gitea_certificate: certificate_secret_name
|
#gitea_certificate: certificate_secret_name
|
||||||
#drone_storage_classname:
|
#drone_storage_classname:
|
||||||
|
trivy_namespace: trivy
|
||||||
|
trivy_version: 0.16.0
|
||||||
|
#trivy_storage_classname:
|
||||||
|
|
@ -92,3 +92,39 @@
|
||||||
- drone-runner
|
- drone-runner
|
||||||
tags:
|
tags:
|
||||||
- drone
|
- drone
|
||||||
|
|
||||||
|
# https://github.com/aquasecurity/trivy/tree/main/helm/trivy
|
||||||
|
- name: Trivy Setup
|
||||||
|
block:
|
||||||
|
- name: Git clone stable repo on HEAD
|
||||||
|
ansible.builtin.git:
|
||||||
|
repo: "https://github.com/aquasecurity/trivy.git"
|
||||||
|
dest: tmp/trivy
|
||||||
|
- name: Deploy trivy chart from local path
|
||||||
|
community.kubernetes.helm:
|
||||||
|
state: present
|
||||||
|
name: trivy
|
||||||
|
context: "{{ my_context }}"
|
||||||
|
chart_ref: tmp/trivy/helm/trivy
|
||||||
|
release_namespace: "{{ trivy_namespace }}"
|
||||||
|
create_namespace: true
|
||||||
|
values:
|
||||||
|
image:
|
||||||
|
tag: "{{ trivy_version }}"
|
||||||
|
# persistence:
|
||||||
|
# storageClass: "{{ trivy_storage_classname }}"
|
||||||
|
# trivy:
|
||||||
|
# gitHubToken: ""
|
||||||
|
# cache:
|
||||||
|
# redis:
|
||||||
|
# enabled: false
|
||||||
|
# url: "" # e.g. redis://redis.redis.svc:6379
|
||||||
|
# ingress:
|
||||||
|
# enabled: false
|
||||||
|
# annotations: {}
|
||||||
|
# # kubernetes.io/ingress.class: nginx
|
||||||
|
# hosts:
|
||||||
|
# - host: trivy.{{ traefik_domain }}
|
||||||
|
|
||||||
|
tags:
|
||||||
|
- trivy
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue