forgejo: install runnerhost dependencies at vm creationtime

Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
This commit is contained in:
David Kirwan 2026-03-09 14:30:26 +00:00
commit a24b5e49dc
Signed by untrusted user: dkirwan
GPG key ID: A5893AB6474AC37D
2 changed files with 11 additions and 0 deletions

View file

@ -2,3 +2,7 @@
forgejo_namespace: "forgejo"
forgejo_project_description: "Forgejo Gitforge"
forgejo_application_name: "{{ forgejo_namespace }}"
forgejo_runnerhost_packages:
- podman
- git

View file

@ -57,4 +57,11 @@ spec:
expire: false
password: "{{ (env == 'production') | ternary(forgejo_runnerhostvm_password, forgejo_stg_runnerhostvm_password) }}"
user: "{{ (env == 'production') | ternary(forgejo_runnerhostvm_user, forgejo_stg_runnerhostvm_user) }}"
{% if forgejo_runnerhost_packages | default([]) | length > 0 %}
package_update: true
packages:
{% for pkg in forgejo_runnerhost_packages %}
- {{ pkg }}
{% endfor %}
{% endif %}
name: cloudinitdisk