Add ansible files

This commit is contained in:
Evrard Van Espen
2025-11-23 11:22:45 +00:00
parent 8fc60f9d8b
commit bc439597cb
26 changed files with 1364 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
- name: Setup OneDev
vars_files:
- secrets/git_secrets.yaml
- config/config_vars.yaml
hosts:
- localhost
tasks:
- name: Add OneDev chart repo
kubernetes.core.helm_repository:
name: onedev
repo_url: "https://code.onedev.io/onedev/~helm"
- name: Setup OneDev
kubernetes.core.helm:
name: onedev
chart_ref: onedev/onedev
update_repo_cache: true
create_namespace: true
release_namespace: onedev
values:
onedev:
separateSSH:
enabled: true
persistence:
storageClassName: "nfs-csi"
size: 20Gi
initSettings:
user: "{{ git_admin_username }}"
password: "{{ git_admin_password }}"
email: "{{ git_admin_email }}"
serverUrl: "{{ git.domain }}"
- name: Setup OneDev service
kubernetes.core.k8s:
template: files/onedev_svc.template.yaml
state: present