Skip to content

This Repo contains terraform and ansible scripts to install a Gitea-Instance on Google Cloud Compute Engine.

Notifications You must be signed in to change notification settings

datahunter1205/gitea_cloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Using Ansible and Terraform to install Gitea on any Cloud Environment

With the provided scripts in this Repo you will be able to install Gitea on a Google Cloud Compute Engine (VM). To run the scripts for other cloud environments, the provider in the Terraform file must be modified.

Set up automatic authentication of local GCP developments

It is assumed that the Google Cloud SDK is already installed.

  1. Open your cmd.
  2. Switch to the current project with gcloud: gcloud config set project your-project-name
  3. With gcloud allow local developments and generate a token: gcloud auth application-default login
  4. A window pops up. Confirm everything. gcloud now generates a key file in json format with which our applications are automatically authenticates itself against the GCP. So no credentials need to be specified in the code!

Edit and run the scripts

To use the scripts successfully, please adjust the variables.tf and gitea-playbook.yml files accordingly.

The following variables must be adjusted:

  • variables.tf: user, sshpath, zone, region
  • gitea_playbook.yml: remote_user

To start terraform just type the following commands:

terraform init
terraform apply

...and with terraform destroy you can delete your resources.

Enjoy 😊 !

Best Raki 👋

About

This Repo contains terraform and ansible scripts to install a Gitea-Instance on Google Cloud Compute Engine.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages