diff --git a/infrastructure/templates/infrastructure/sh/hostscripts/create.sh b/infrastructure/templates/infrastructure/sh/hostscripts/create.sh new file mode 100644 index 0000000..ad607bc --- /dev/null +++ b/infrastructure/templates/infrastructure/sh/hostscripts/create.sh @@ -0,0 +1,2 @@ +enough --domain d.hostea.org host create {{subdomain}}-host +enough --domain d.hostea.org service create --host {{subdomain}}-host gitea diff --git a/infrastructure/templates/infrastructure/sh/hostscripts/rm.sh b/infrastructure/templates/infrastructure/sh/hostscripts/rm.sh new file mode 100644 index 0000000..0eeb490 --- /dev/null +++ b/infrastructure/templates/infrastructure/sh/hostscripts/rm.sh @@ -0,0 +1 @@ +enough --domain d.hostea.org host delete hostea001-host diff --git a/infrastructure/templates/infrastructure/yml/backups.yml b/infrastructure/templates/infrastructure/yml/backups.yml new file mode 100644 index 0000000..540dc86 --- /dev/null +++ b/infrastructure/templates/infrastructure/yml/backups.yml @@ -0,0 +1,3 @@ +pets: + hosts: + {{ subdomain }}-host: diff --git a/infrastructure/templates/infrastructure/yml/gitea.yml b/infrastructure/templates/infrastructure/yml/gitea.yml new file mode 100644 index 0000000..8a3c99e --- /dev/null +++ b/infrastructure/templates/infrastructure/yml/gitea.yml @@ -0,0 +1,83 @@ +--- +# +####################################### +# +# Public hostname of the Gitea instance +# +# +gitea_host: "gitea.{{ domain }}" +# +####################################### +# +# Mailer from +# +# +gitea_mailer_from: "noreply@enough.community" +# +####################################### +# +# SSH port of the Gitea instance +# +# +gitea_ssh_port: "22" +# +####################################### +# +# Gitea version +# +# +gitea_version: "1.16.8" +# +####################################### +# +# Admin user name +# +gitea_user: root +# +####################################### +# +# Admin user password +# +#gitea_password: etquofEtseudett +# +####################################### +# +# Admin user email +# +gitea_email: contact@enough.community +# +####################################### +# +# Unique hostname of the woodpecker server relative to {{ domain }} +# +woodpecker_hostname: "woodpecker" +# +####################################### +# +# Public hostname of the Woodpecker instance +# +woodpecker_host: "{{ woodpecker_hostname }}.{{ domain }}" +# +####################################### +# +# Gitea users with admin rights on woodpecker +# +woodpecker_admins: "{{ gitea_user }}" +# +####################################### +# +# Woodpecker shared agent secret `openssl rand -hex 32` +# +#woodpecker_agent_secret: c2cd326f7104c2ca93e6d22da0b28d1e33b4aeaa071c08945e0ade576b3192ce +# +####################################### +# +# Woodpecker version +# +woodpecker_version: "v0.15.2" +# +####################################### +# +# Woodpecker max procs +# +woodpecker_max_procs: 1 diff --git a/infrastructure/templates/infrastructure/yml/provision.yml b/infrastructure/templates/infrastructure/yml/provision.yml new file mode 100644 index 0000000..09998e7 --- /dev/null +++ b/infrastructure/templates/infrastructure/yml/provision.yml @@ -0,0 +1 @@ +openstack_flavor: "\{\{ {{ vm_size }} \}\}"