Skip to content
Snippets Groups Projects
Commit 5b7be119 authored by void's avatar void
Browse files

Futru als Octoprint Serverf

parent 1b9a2950
No related branches found
No related tags found
No related merge requests found
# Host spezifische Variablen
motd_lines:
- "Interner Server @ warpzone"
- "Haupt-IP @ enp1s0: {{ansible_enp1s0.ipv4.address}}"
debian_sources:
- "deb http://ftp2.de.debian.org/debian/ buster main contrib non-free"
- "deb http://security.debian.org/ buster/updates main contrib non-free"
- "deb https://download.docker.com/linux/debian buster stable"
debian_keys_id:
debian_keys_url:
- "https://download.docker.com/linux/debian/gpg"
# Primäre IP Adressen des Hosts
#ext_ip4: <keine>
#ext_ip6: <keine>
int_ip4: 10.0.2.188
administratorenteam:
- "void"
- "sandhome"
# Docker konfigurationen
docker:
# Interne Docker-Netzwerke
......@@ -7,6 +7,9 @@
# https://wiki.warpzone.ms/intern:warpzone_internal_it_infrastructure#host_fuer_interne_dienste_watchguard_xtm_505
warpsrvint ansible_ssh_host=192.168.0.201
# Octoprint Server für 3d Drucker
octoprint1 ansible_ssh_host=10.0.2.188
# Öffentlicher Root Server Warpzone bei Hetzner
tiffany ansible_ssh_host=159.69.57.15
......
---
- name: "create folder struct for {{servicename}}"
file:
path: "/srv/{{servicename}}"
state: "directory"
- name: "create folder struct for {{servicename}}"
file:
path: "{{ item }}"
state: "directory"
with_items:
- "/srv/{{servicename}}/data"
- name: "create docker-compose file"
template:
src: "{{ item }}"r
dest: "/srv/{{ servicename }}/{{ item }}"
with_items:
- docker-compose.yml
- name: "start {{servicename}} docker"
docker_compose:
project_src: /srv/{{servicename}}/
state: present
version: "3"
services:
app:
image: octoprint/octoprint:1.7.2
restart: always
ports:
- "{{octoprint_port}}:80"
devices:
- /dev/ttyACM0:/dev/ttyACM0
#- /dev/video0:/dev/video0
volumes:
- "/srv/{{servicename}}/data:/octoprint"
environment:
TZ: Europe/Berlin
ENABLE_MJPG_STREAMER: "false"
......@@ -22,6 +22,25 @@
- { role: common/cronapt, tags: cronapt }
- hosts: octoprint1
remote_user: root
roles:
- { role: common/cronapt, tags: cronapt }
- { role: common/docker, tags: docker }
- { role: common/prometheus-node, tags: prometheus-node }
- {
role: common/docker_dockerstats, tags: dockerstats,
servicename: dockerstats,
basedir: /srv/dockerstats
}
- {
role: octoprint/docker_octoprint, tags: octoprint,
servicename: octoprint,
basedir: /srv/octoprint,
octoprint_port: 80
}
- hosts: warpsrvint
remote_user: root
roles:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment