forgejo: Working on a minimal playbook to launch helm
Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
This commit is contained in:
parent
34b866351b
commit
cf322dc271
4 changed files with 39 additions and 0 deletions
16
playbooks/openshift-apps/forgejo.yml
Normal file
16
playbooks/openshift-apps/forgejo.yml
Normal 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
|
4
roles/openshift-apps/forgejo/default/main.yml
Normal file
4
roles/openshift-apps/forgejo/default/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
forgejo_namespace: "forgejo"
|
||||
forgejo_project_description: "Forgejo Gitforge"
|
||||
forgejo_application_name: "{{ forgejo_namespace }}"
|
12
roles/openshift-apps/forgejo/tasks/call-helm.yml
Normal file
12
roles/openshift-apps/forgejo/tasks/call-helm.yml
Normal 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
|
7
roles/openshift-apps/forgejo/tasks/main.yml
Normal file
7
roles/openshift-apps/forgejo/tasks/main.yml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue