# gitea is a PITA to automate installation of, watch this pr for when it'll be # fully setup-able from the cli https://github.com/go-gitea/gitea/issues/9210 variable "gitea_db_passwd" { type = string } resource "null_resource" "functionalidiot_com_setup_new_gitea" { depends_on = [ null_resource.gitea_install ] count = fileexists("${path.module}/attic/gitea.txz") ? 0 : 1 connection { host = linode_instance.prod.ip_address user = "root" private_key = file("~/.ssh/id_rsa") } provisioner "file" { source = "setup_gitea.sh" destination = "/tmp/setup_gitea.sh" } provisioner "remote-exec" { inline = [< /var/www/default/htdocs/index.html rc-service nginx restart FIN ] } }