mirror of
https://github.com/arthur-pbty/homelab.git
synced 2026-08-01 20:29:15 +02:00
test terraform
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
[jellyfin]
|
||||||
|
192.168.1.50
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
- name: Setup Jellyfin server
|
||||||
|
hosts: jellyfin
|
||||||
|
become: true
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: Update apt
|
||||||
|
apt:
|
||||||
|
update_cache: yes
|
||||||
|
|
||||||
|
- name: Install Docker
|
||||||
|
apt:
|
||||||
|
name: docker.io
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Start Docker
|
||||||
|
service:
|
||||||
|
name: docker
|
||||||
|
state: started
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
- name: Create Jellyfin folder
|
||||||
|
file:
|
||||||
|
path: /opt/jellyfin
|
||||||
|
state: directory
|
||||||
|
|
||||||
|
- name: Copy docker-compose
|
||||||
|
copy:
|
||||||
|
src: ../docker/jellyfin/compose.yml
|
||||||
|
dest: /opt/jellyfin/compose.yml
|
||||||
|
|
||||||
|
- name: Run Jellyfin
|
||||||
|
shell: docker compose up -d
|
||||||
|
args:
|
||||||
|
chdir: /opt/jellyfin
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
services:
|
||||||
|
jellyfin:
|
||||||
|
image: jellyfin/jellyfin
|
||||||
|
container_name: jellyfin
|
||||||
|
ports:
|
||||||
|
- "8096:8096"
|
||||||
|
volumes:
|
||||||
|
- ./config:/config
|
||||||
|
- ./media:/media
|
||||||
|
restart: unless-stopped
|
||||||
Generated
+24
@@ -0,0 +1,24 @@
|
|||||||
|
# This file is maintained automatically by "terraform init".
|
||||||
|
# Manual edits may be lost in future updates.
|
||||||
|
|
||||||
|
provider "registry.terraform.io/bpg/proxmox" {
|
||||||
|
version = "0.111.0"
|
||||||
|
constraints = "~> 0.70"
|
||||||
|
hashes = [
|
||||||
|
"h1:RHGueoNj9kiaBMD5mbWFudB4sSvMuqlZJ8UfMfmgnss=",
|
||||||
|
"zh:07afbe99e262f36b6285df259fa5b371bdb0ca62515a6da486ee004562ddcc1d",
|
||||||
|
"zh:0b3f17c240a488c8768dc8415c8b80b285495c801a300a784bae677a49eff8bc",
|
||||||
|
"zh:1fae807c8aec1b51685197414881ad2f62815e1258e3a02686dd938db0ff73eb",
|
||||||
|
"zh:324766437eb30912c304d5cb3a7d08386e9aef00673bdb0cc09e0b2e37a72782",
|
||||||
|
"zh:59280417f562df0b7a2ef9b18c4b760237b3e2b10e1a4a9a0d7082f8dcb8bdf6",
|
||||||
|
"zh:62d702525c44eafce794c9fdda2914bd2fb747cf1ce225d94f28592e2a365a05",
|
||||||
|
"zh:792d19ac8448c4ecec245fc5b7c9980123971e5f55812d5ba653eb377e373b71",
|
||||||
|
"zh:8a1e9531bd4ae0d47c433de5cbef552d337b2777c443c182b11f19a77fedf439",
|
||||||
|
"zh:9787b9d153527882875150fcb970122a4bec24af430a1bc96626d0be6d4056ee",
|
||||||
|
"zh:ba4db2859844bbac4aa55af6277c35f125fbd15e7acbdb41cb0c2fa593b7a441",
|
||||||
|
"zh:cac48236b323ab32a0c3f7cfcec63658eec28c5c7113ea6ca4903ccbe6de564b",
|
||||||
|
"zh:d3ca52ad4aa8e270e5e65158da3499cd5c87d0080e9b7553ac64fde07666b76c",
|
||||||
|
"zh:e139f53d785d7f91934057a9c255bb12399ea8930058673fe12fbe42eb141ecd",
|
||||||
|
"zh:f26e0763dbe6a6b2195c94b44696f2110f7f55433dc142839be16b9697fa5597",
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
terraform {
|
||||||
|
required_providers {
|
||||||
|
proxmox = {
|
||||||
|
source = "bpg/proxmox"
|
||||||
|
version = "~> 0.70"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
provider "proxmox" {
|
||||||
|
endpoint = var.proxmox_endpoint
|
||||||
|
username = var.proxmox_user
|
||||||
|
password = var.proxmox_password
|
||||||
|
insecure = true
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
variable "proxmox_endpoint" {}
|
||||||
|
variable "proxmox_user" {}
|
||||||
|
variable "proxmox_password" {
|
||||||
|
sensitive = true
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user