From ad46181f6ebf6a37d22de36db2be89522270711b Mon Sep 17 00:00:00 2001 From: Mathieu Broillet Date: Wed, 14 Jun 2023 14:51:59 +0200 Subject: [PATCH] remove resources from pdj repo --- resources/config.json | 10 ---- resources/lxc/100/config.json | 49 ----------------- .../data/config/traefikv2/docker-compose.yml | 40 -------------- .../lxc/100/data/config/traefikv2/traefik.env | 3 -- .../100/data/config/traefikv2/traefik.toml | 52 ------------------ resources/lxc/100/data/traefikv2/acme.json | 1 - resources/lxc/100/data/traefikv2/treafik.log | 0 resources/qemu/id/0000/config.json | 0 resources/scripts/install-docker.sh | 54 ------------------- 9 files changed, 209 deletions(-) delete mode 100644 resources/config.json delete mode 100644 resources/lxc/100/config.json delete mode 100644 resources/lxc/100/data/config/traefikv2/docker-compose.yml delete mode 100644 resources/lxc/100/data/config/traefikv2/traefik.env delete mode 100644 resources/lxc/100/data/config/traefikv2/traefik.toml delete mode 100644 resources/lxc/100/data/traefikv2/acme.json delete mode 100644 resources/lxc/100/data/traefikv2/treafik.log delete mode 100644 resources/qemu/id/0000/config.json delete mode 100644 resources/scripts/install-docker.sh diff --git a/resources/config.json b/resources/config.json deleted file mode 100644 index 9d82390..0000000 --- a/resources/config.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "pve":{ - "host": "192.168.11.99", - "user": "root", - "port": 22, - "local": false - }, - "settings": { - } -} \ No newline at end of file diff --git a/resources/lxc/100/config.json b/resources/lxc/100/config.json deleted file mode 100644 index 4a8c24b..0000000 --- a/resources/lxc/100/config.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "lxc_hostname": "traefik", - "os": { - "name": "alpine", - "release": "3.17" - }, - "resources": { - "cpu": 2, - "memory": 1024, - "swap": 256, - "disk": 8, - "storage": "local-lvm" - }, - "network": { - "bridge": "vmbr0", - "ipv4": "dhcp", - "ipv6": "auto", - "mac": "92:A6:71:77:8E:D8", - "gateway4": "", - "gateway6": "", - "vlan": "" - }, - "options": { - "privileged": false, - "start_on_boot": false, - "startup_order": 2, - "password": "qwertz1234", - "tags": "2-proxy+auth" - }, - "creation": { - "conditions": { - "programs": ["docker"], - "folders": ["/var/data/traefik", "/var/data/config/traefik"], - "files": ["/var/data/traefik/traefik.toml", "/var/data/config/traefikv2/docker-compose.yml"] - }, - "steps": [ - { - "type": "script", - "local_path": "global/scripts/install-docker.sh" - }, - { - "type": "folder_copy", - "path": "data/", - "destination": "/var/" - } - ] - }, - "deploy": {} -} \ No newline at end of file diff --git a/resources/lxc/100/data/config/traefikv2/docker-compose.yml b/resources/lxc/100/data/config/traefikv2/docker-compose.yml deleted file mode 100644 index aeb6b55..0000000 --- a/resources/lxc/100/data/config/traefikv2/docker-compose.yml +++ /dev/null @@ -1,40 +0,0 @@ -version: "3" - -services: - app: - image: traefik:v2.9 - env_file: /var/data/config/traefikv2/traefik.env - restart: always - ports: - - "80:80" # http - - "443:443" # https - volumes: - - /var/run/docker.sock:/var/run/docker.sock:ro - - /var/data/config/traefikv2/dyn:/dyn - - /var/data/config/traefikv2/traefik.toml:/etc/traefik/traefik.toml - - /var/data/traefik/traefik.log:/traefik.log - - /var/data/traefik/access.log:/access.log - - /var/data/traefik/acme.json:/acme.json - labels: - - "traefik.enable=true" - - "traefik.http.routers.api.rule=Host(`traefik.xyz.abc`)" - - "traefik.http.routers.api.entrypoints=https" - - - "traefik.http.routers.api.service=api@internal" - - "traefik.http.services.dummy.loadbalancer.server.port=9999" - - - "traefik.http.routers.api.tls=true" - - "traefik.http.routers.api.tls.domains[0].main=xyz.abc" - - "traefik.http.routers.api.tls.domains[0].sans=*.xyz.abc" - - "traefik.http.routers.api.tls.certresolver=cloudflare" - networks: - - traefik_public - logging: - driver: "json-file" - options: - max-size: "2m" - max-file: "2" - -networks: - traefik_public: - external: true \ No newline at end of file diff --git a/resources/lxc/100/data/config/traefikv2/traefik.env b/resources/lxc/100/data/config/traefikv2/traefik.env deleted file mode 100644 index 6f93280..0000000 --- a/resources/lxc/100/data/config/traefikv2/traefik.env +++ /dev/null @@ -1,3 +0,0 @@ -# CloudFlare example -CLOUDFLARE_EMAIL=me@xyz.abc -CLOUDFLARE_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx diff --git a/resources/lxc/100/data/config/traefikv2/traefik.toml b/resources/lxc/100/data/config/traefikv2/traefik.toml deleted file mode 100644 index f30046c..0000000 --- a/resources/lxc/100/data/config/traefikv2/traefik.toml +++ /dev/null @@ -1,52 +0,0 @@ -[global] - checkNewVersion = true - -# Enable the Dashboard -[api] - dashboard = true - -# Write out Traefik logs -[log] - level = "INFO" - filePath = "/traefik.log" - -# [accessLog] -# filePath = "/access.log" - -[entryPoints.http] - address = ":80" - # Redirect to HTTPS (why wouldn't you?) - [entryPoints.http.http.redirections.entryPoint] - to = "https" - scheme = "https" - - [entryPoints.http.forwardedHeaders] - trustedIPs = ["10.0.0.0/8", "172.16.0.0/16", "192.168.0.0/16", "fc00::/7"] - -[entryPoints.https] - address = ":443" - [entryPoints.https.http.tls] - certResolver = "cloudflare" - - [entryPoints.https.forwardedHeaders] - trustedIPs = ["10.0.0.0/8", "172.16.0.0/16", "192.168.0.0/16", "fc00::/7"] - - -# Cloudflare -[certificatesResolvers.infomaniak.acme] - email = "me@xyz.abc" - storage = "acme.json" - [certificatesResolvers.infomaniak.acme.dnsChallenge] - provider = "cloudflare" - resolvers = ["1.1.1.1:53", "8.8.8.8:53"] - -# Docker Traefik provider -[providers.docker] - endpoint = "unix:///var/run/docker.sock" - swarmMode = false - watch = true - exposedByDefault = false - -[providers.file] - directory = "/dyn" - watch = true \ No newline at end of file diff --git a/resources/lxc/100/data/traefikv2/acme.json b/resources/lxc/100/data/traefikv2/acme.json deleted file mode 100644 index 9e26dfe..0000000 --- a/resources/lxc/100/data/traefikv2/acme.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/resources/lxc/100/data/traefikv2/treafik.log b/resources/lxc/100/data/traefikv2/treafik.log deleted file mode 100644 index e69de29..0000000 diff --git a/resources/qemu/id/0000/config.json b/resources/qemu/id/0000/config.json deleted file mode 100644 index e69de29..0000000 diff --git a/resources/scripts/install-docker.sh b/resources/scripts/install-docker.sh deleted file mode 100644 index 4fed03b..0000000 --- a/resources/scripts/install-docker.sh +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/bash - -if which docker >/dev/null 2>&1; then - echo "Docker is installed" - exit 1 -else - echo "Docker is not installed" -fi - -if lsb_release -a 2>/dev/null | grep -q -E "Debian"; then - echo "Running Debian" - - sudo apt-get remove docker docker-engine docker.io containerd runc -y - sudo apt-get update -y - sudo apt-get install \ - ca-certificates \ - curl \ - gnupg -y - sudo install -m 0755 -d /etc/apt/keyrings - curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg - sudo chmod a+r /etc/apt/keyrings/docker.gpg - echo \ - "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \ - "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | - sudo tee /etc/apt/sources.list.d/docker.list >/dev/null - sudo apt-get update -y - sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y - -elif lsb_release -a 2>/dev/null | grep -q -E "Ubuntu"; then - echo "Running Ubuntu" - - sudo apt-get remove docker docker-engine docker.io containerd runc -y - sudo apt-get update -y - sudo apt-get install ca-certificates curl gnupg -y - sudo install -m 0755 -d /etc/apt/keyrings - curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg - sudo chmod a+r /etc/apt/keyrings/docker.gpg - echo \ - "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ - "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | - sudo tee /etc/apt/sources.list.d/docker.list >/dev/null - sudo apt-get update -y - sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y - -elif cat /etc/os-release 2>/dev/null | grep -q -i "alpine"; then - echo "Running Alpine" - apk add docker docker-compose - addgroup username docker - rc-update add docker default - service docker start -else - echo "Unknown distribution" - exit 1 -fi