forgejo: Working on a minimal playbook to launch helm

Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
This commit is contained in:
David Kirwan 2025-01-24 12:08:32 +00:00
parent 34b866351b
commit cf322dc271
No known key found for this signature in database
GPG key ID: A5893AB6474AC37D
4 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,16 @@
---
- name: Make the app be real
hosts: os_control_stg #:os_control
user: root
gather_facts: false
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
tasks:
- name: Forgejo Role
ansible.builtin.include_role:
name: openshift-apps/forgejo
tasks_from: main

View file

@ -0,0 +1,4 @@
---
forgejo_namespace: "forgejo"
forgejo_project_description: "Forgejo Gitforge"
forgejo_application_name: "{{ forgejo_namespace }}"

View file

@ -0,0 +1,12 @@
---
# From git
- name: Git clone stable repo on HEAD
ansible.builtin.git:
repo: "http://github.com/helm/charts.git"
dest: /tmp/helm_repo
- name: Deploy Grafana chart from local path
kubernetes.core.helm:
name: test
chart_ref: /tmp/helm_repo/stable/grafana
release_namespace: test-helm

View file

@ -0,0 +1,7 @@
---
- name: Ensures /root/ocp4/openshift-apps/forgejo/ dir exists
ansible.builtin.file:
path: "/root/ocp4/openshift-apps/forgejo/"
state: directory
- include_tasks: call-helm.yml