From bff7609ec4a28ecaaa906a53bc13d304587b6412 Mon Sep 17 00:00:00 2001 From: genofire Date: Fri, 18 Sep 2020 11:15:15 +0000 Subject: [PATCH] add gitea --- .gitmodules | 3 +++ gitea.yml | 5 +++++ host_vars/emma.ccchb.de | 17 +++++++++++++++++ host_vars/gitea.emma.ccchb.de.yml | 27 +++++++++++++++++++++++++++ hosts/10_gitea | 2 ++ hosts/50_debian | 1 + roles/gitea | 1 + 7 files changed, 56 insertions(+) create mode 100644 .gitmodules create mode 100644 gitea.yml create mode 100644 host_vars/gitea.emma.ccchb.de.yml create mode 100644 hosts/10_gitea create mode 160000 roles/gitea diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..01d7e6d --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "roles/gitea"] + path = roles/gitea + url = https://github.com/thomas-maurice/ansible-role-gitea.git diff --git a/gitea.yml b/gitea.yml new file mode 100644 index 0000000..e68b226 --- /dev/null +++ b/gitea.yml @@ -0,0 +1,5 @@ +--- +- hosts: gitea + become: yes + roles: + - gitea diff --git a/host_vars/emma.ccchb.de b/host_vars/emma.ccchb.de index 288a821..d0e830c 100644 --- a/host_vars/emma.ccchb.de +++ b/host_vars/emma.ccchb.de @@ -31,6 +31,23 @@ bhyve_guests: ram: 1G cpus: 1 image: debian-10.5.0-amd64-netinst.iso + order: + - ISO + - DISKS + disks: + - name: disk + properties: + volsize: 32g + volblocksize: 64k + primarycache: metadata + + - name: gitea + index: 2 + enabled: true + ram: 1G + cpus: 1 + password: foobar + image: debian-10.5.0-amd64-netinst.iso order: - DISKS disks: diff --git a/host_vars/gitea.emma.ccchb.de.yml b/host_vars/gitea.emma.ccchb.de.yml new file mode 100644 index 0000000..7f4e0e1 --- /dev/null +++ b/host_vars/gitea.emma.ccchb.de.yml @@ -0,0 +1,27 @@ +vm_index: 2 + +gitea_version: "1.12.4" +gitea_app_name: "dev.ccchb.de" +gitea_ssh_domain: "dev.ccchb.de" +gitea_http_domain: "dev.ccchb.de" +gitea_root_url: "https://dev.ccchb.de" + +gitea_http_listen: "[::]" +gitea_http_port: 443 +gitea_systemd_cap_net_bind_service: true +gitea_protocol: "https" +gitea_http_letsencrypt_mail: "webmaster@ccchb.de" + +gitea_ssh_listen: "[::]" +gitea_ssh_port: 2222 +gitea_start_ssh: true + +# Don't use a public CDN for frontend assets +gitea_offline_mode: true +gitea_disable_gravatar: true +gitea_enable_captcha: false + +user_mgmt: + genofire: + state: present + groups: sudo diff --git a/hosts/10_gitea b/hosts/10_gitea new file mode 100644 index 0000000..e13d74c --- /dev/null +++ b/hosts/10_gitea @@ -0,0 +1,2 @@ +[gitea] +gitea.emma.ccchb.de diff --git a/hosts/50_debian b/hosts/50_debian index 06813b0..e8490fa 100644 --- a/hosts/50_debian +++ b/hosts/50_debian @@ -3,3 +3,4 @@ dn42.emma.ccchb.de [debian:children] nextcloud +gitea diff --git a/roles/gitea b/roles/gitea new file mode 160000 index 0000000..f2c8610 --- /dev/null +++ b/roles/gitea @@ -0,0 +1 @@ +Subproject commit f2c8610cc41bad258076ea8df664da228ed467b6