Automation and setup for sites I own.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

21 line
516 B

  1. resource "null_resource" "post_setup" {
  2. depends_on = [ linode_instance.prod ]
  3. connection {
  4. host = linode_instance.prod.ip_address
  5. user = "root"
  6. private_key = file("~/.ssh/id_rsa")
  7. }
  8. provisioner "remote-exec" {
  9. inline = [<<FIN
  10. apk update
  11. apk upgrade
  12. apk add nginx muacme gitea iproute2 sqlite bind-tools
  13. rc-update add nginx default
  14. rc-service nginx restart
  15. sed -i -e 's/AllowTcpForwarding .*/AllowTcpForwarding yes/g' /etc/ssh/sshd_config
  16. rc-service sshd restart
  17. FIN
  18. ]
  19. }
  20. }