Remove deprecated Ansible and Terraform files
This commit is contained in:
parent
02ecbab19e
commit
d76c5b7fdc
15
README.md
15
README.md
@ -18,21 +18,6 @@ git clone https://github.com/printfuck/stardew-multiplayer-docker
|
|||||||
|
|
||||||
docker-compose up
|
docker-compose up
|
||||||
```
|
```
|
||||||
### Ansible !deprecated!
|
|
||||||
|
|
||||||
Create an inventory file with your hosts
|
|
||||||
|
|
||||||
```
|
|
||||||
ansible -i <your_inventori> playbook.yml
|
|
||||||
```
|
|
||||||
|
|
||||||
### Terraform (with Hetzner Cloud) !deprecated!
|
|
||||||
|
|
||||||
Enter your API Token in `terraform/vars.auto.tfvars` and modify the resource section in `main.tf` to your liking, then run the following script:
|
|
||||||
|
|
||||||
```
|
|
||||||
./terra.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
## Game Setup
|
## Game Setup
|
||||||
|
|
||||||
|
44
playbook.yml
44
playbook.yml
@ -1,44 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
- name: Stardew
|
|
||||||
hosts: "all"
|
|
||||||
become: true
|
|
||||||
|
|
||||||
roles:
|
|
||||||
- role: "nickjj.docker"
|
|
||||||
tags: ["docker"]
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
- name: Creates directory
|
|
||||||
file:
|
|
||||||
path: /var/docker/stardew
|
|
||||||
state: directory
|
|
||||||
- name: "Copy Shit over"
|
|
||||||
copy:
|
|
||||||
src: ./docker-compose.yml
|
|
||||||
dest: /var/docker/stardew/docker-compose.yml
|
|
||||||
- name: "Copy Shit over"
|
|
||||||
copy:
|
|
||||||
src: ./asound.conf
|
|
||||||
dest: /var/docker/stardew/asound.conf
|
|
||||||
- name: "Copy Shit over"
|
|
||||||
copy:
|
|
||||||
src: ./docker
|
|
||||||
dest: /var/docker/stardew/
|
|
||||||
- name: "Copy Shit over"
|
|
||||||
copy:
|
|
||||||
src: ./configs
|
|
||||||
dest: /var/docker/stardew/configs
|
|
||||||
- name: "Copy Shit over"
|
|
||||||
copy:
|
|
||||||
src: ./config
|
|
||||||
dest: /var/docker/stardew/config
|
|
||||||
- name: Pip install docker for Ansible's docker_login and docker_service modules
|
|
||||||
pip:
|
|
||||||
name: ["docker", "docker-compose"]
|
|
||||||
- name: "Start docker-compose"
|
|
||||||
docker_service:
|
|
||||||
project_src: "/var/docker/stardew"
|
|
||||||
pull: yes
|
|
||||||
|
|
||||||
|
|
9
terra.sh
9
terra.sh
@ -1,9 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# Generate SSH keys
|
|
||||||
ssh-keygen -f terraform/ssh/key -q -P ""
|
|
||||||
|
|
||||||
# Run Terraform
|
|
||||||
cd terraform
|
|
||||||
terraform init
|
|
||||||
terraform apply
|
|
@ -1,41 +0,0 @@
|
|||||||
|
|
||||||
variable "hcloud_token" {}
|
|
||||||
|
|
||||||
provider "hcloud" {
|
|
||||||
token = "${var.hcloud_token}"
|
|
||||||
}
|
|
||||||
|
|
||||||
resource "hcloud_ssh_key" "main" {
|
|
||||||
name = "main_key"
|
|
||||||
public_key = "${file("./ssh/key.pub")}"
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
resource "hcloud_server" "game_node" {
|
|
||||||
name = "game-node"
|
|
||||||
image = "debian-9"
|
|
||||||
server_type = "cx11"
|
|
||||||
ssh_keys = ["${hcloud_ssh_key.main.id}"]
|
|
||||||
|
|
||||||
provisioner "remote-exec" {
|
|
||||||
inline = [
|
|
||||||
"uname -a",
|
|
||||||
]
|
|
||||||
|
|
||||||
connection {
|
|
||||||
host = "${self.ipv4_address}"
|
|
||||||
type = "ssh"
|
|
||||||
user = "root"
|
|
||||||
private_key = "${file("./ssh/key")}"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
provisioner "local-exec" {
|
|
||||||
environment {
|
|
||||||
PUBLIC_IP = "${self.ipv4_address}"
|
|
||||||
}
|
|
||||||
|
|
||||||
working_dir = "."
|
|
||||||
command = "ANSIBLE_HOST_KEY_CHECKING=false ansible-playbook -u root --private-key ./ssh/key ../playbook.yml -i ${self.ipv4_address},"
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,27 +0,0 @@
|
|||||||
-----BEGIN OPENSSH PRIVATE KEY-----
|
|
||||||
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABFwAAAAdzc2gtcn
|
|
||||||
NhAAAAAwEAAQAAAQEAoIp7IVBt+ZsPnPOLmxN/NpDK1m2dugLtdYNgrbbdKYaCYwkfMZuq
|
|
||||||
SFikUF3sJJSMm7py4pXaFehCxjf+vGyZIxREeLikNRbDkncW8PiWsOpbWM2Ito+/af0jbx
|
|
||||||
jFndcwoQLnLxNRT3ZtVokKKpMFY921NLPINumDsmDrRKOFNneEFDCdeqiO2uWGinvJSMk8
|
|
||||||
2ONqSm0Pim78V+kbJuGJ9dW9IzR+BDC13gCwW1bAzri8zK09G1RlQRyzL2cDQ2l/ToEdUa
|
|
||||||
LXgGLA0tGScWdjjCAkSldPAXlfWtnY0gaOp8EPJ2cf0ReR1UZEhHJBDxxp2RBD5+he135m
|
|
||||||
8sQ/w7qhQQAAA8Cw0a1CsNGtQgAAAAdzc2gtcnNhAAABAQCginshUG35mw+c84ubE382kM
|
|
||||||
rWbZ26Au11g2Cttt0phoJjCR8xm6pIWKRQXewklIybunLildoV6ELGN/68bJkjFER4uKQ1
|
|
||||||
FsOSdxbw+Jaw6ltYzYi2j79p/SNvGMWd1zChAucvE1FPdm1WiQoqkwVj3bU0s8g26YOyYO
|
|
||||||
tEo4U2d4QUMJ16qI7a5YaKe8lIyTzY42pKbQ+KbvxX6Rsm4Yn11b0jNH4EMLXeALBbVsDO
|
|
||||||
uLzMrT0bVGVBHLMvZwNDaX9OgR1RoteAYsDS0ZJxZ2OMICRKV08BeV9a2djSBo6nwQ8nZx
|
|
||||||
/RF5HVRkSEckEPHGnZEEPn6F7XfmbyxD/DuqFBAAAAAwEAAQAAAQEAgXAl5q5afS2wYPNc
|
|
||||||
VCRcJT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AADAQABAAABAQCginshUG35mw+c84ubE382kMrWbZ26Au11g2Cttt0phoJjCR8xm6pIWKRQXewklIybunLildoV6ELGN/68bJkjFER4uKQ1FsOSdxbw+Jaw6ltYzYi2j79p/SNvGMWd1zChAucvE1FPdm1WiQoqkwVj3bU0s8g26YOyYOtEo4U2d4QUMJ16qI7a5YaKe8lIyTzY42pKbQ+KbvxX6Rsm4Yn11b0jNH4EMLXeALBbVsDOuLzMrT0bVGVBHLMvZwNDaX9OgR1RoteAYsDS0ZJxZ2OMICRKV08BeV9a2djSBo6nwQ8nZx/RF5HVRkSEckEPHGnZEEPn6F7XfmbyxD/DuqFB a3x@idun
|
|
@ -1,2 +0,0 @@
|
|||||||
# Enter Hetzner Cloud Token
|
|
||||||
hcloud_token = ""
|
|
Loading…
Reference in New Issue
Block a user