diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 4c0ee40..102db04 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,8 +1,9 @@ --- name: Lint on: - push: null - pull_request: null + pull_request: + branches: + - main permissions: {} jobs: build: @@ -18,6 +19,6 @@ jobs: with: fetch-depth: 0 - name: Super-linter - uses: super-linter/super-linter@v7.2.1 + uses: super-linter/super-linter@v7.3.0 env: GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index da696ac..bfd0a17 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,6 +1,6 @@ -# Contributing to HomeServeMate +# Contributing to DomoTron -Thank you for considering contributing to HomeServeMate! We welcome contributions from the community and are grateful for your support. To ensure a smooth process, please follow the guidelines below. +Thank you for considering contributing to DomoTron! We welcome contributions from the community and are grateful for your support. To ensure a smooth process, please follow the guidelines below. ## Table of Contents @@ -16,7 +16,7 @@ Thank you for considering contributing to HomeServeMate! We welcome contribution ## Code of Conduct -This project and everyone participating in it is governed by the [HomeServeMate Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Please report unacceptable behavior to [email](miguelcastilhodias@gmail.com). +This project and everyone participating in it is governed by the [DomoTron Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Please report unacceptable behavior to [email](miguelcastilhodias@gmail.com). ## How Can I Contribute? @@ -31,7 +31,7 @@ If you encounter a bug, please open an issue on GitHub with the following inform ### Suggesting Enhancements -We welcome suggestions to improve HomeServeMate. Please open an issue on GitHub with the following details: +We welcome suggestions to improve DomoTron. Please open an issue on GitHub with the following details: - A clear and descriptive title. - A detailed explanation of the enhancement and why it would be useful. @@ -72,4 +72,4 @@ Thank you for your contributions! --- -By contributing to this project, you agree to abide by the HomeServeMate [Code of Conduct](CODE_OF_CONDUCT.md). +By contributing to this project, you agree to abide by the DomoTron [Code of Conduct](CODE_OF_CONDUCT.md). diff --git a/README.md b/README.md index 57fff55..39a5c76 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -# HomeServeMate +# DomoTron ## Overview -HomeServeMate is a project designed to automate the deployment and configuration of infrastructure on Proxmox using Terraform and Ansible. The Terraform scripts are used to provision the infrastructure, while Ansible is utilized to configure virtual machines (VMs) and Linux containers (LXC). +DomoTron is a project designed to automate the deployment and configuration of infrastructure on Proxmox using Terraform and Ansible. The Terraform scripts are used to provision the infrastructure, while Ansible is utilized to configure virtual machines (VMs) and Linux containers (LXC). ## Table of Contents @@ -27,8 +27,8 @@ Before you begin, ensure you have the following installed: 1. **Clone the Repository:** ```bash - git clone https://github.com/yourusername/HomeServeMate.git - cd HomeServeMate + git clone https://github.com/yourusername/DomoTron.git + cd DomoTron ``` 2. **Set Up Environment Variables:** diff --git a/ansible/mediabox.yml b/ansible/mediabox.yml index a24665c..676cbe7 100644 --- a/ansible/mediabox.yml +++ b/ansible/mediabox.yml @@ -23,7 +23,7 @@ - name: Install dependencies ansible.builtin.include_role: - name: dependencies + name: mediabox - name: Set up and mount disk become: true diff --git a/ansible/proxmox.yml b/ansible/proxmox.yml new file mode 100644 index 0000000..c7c539d --- /dev/null +++ b/ansible/proxmox.yml @@ -0,0 +1,20 @@ +--- +- name: Apply fix to Intel NIC e1000e hardware unit hang + hosts: pve + gather_facts: no + any_errors_fatal: true + tasks: + - name: Append post-up command to iface eno1 inet manual + ansible.builtin.lineinfile: + path: /etc/network/interfaces + insertafter: "^iface eno1 inet manual" + line: " post-up ethtool -K eno1 tso off gso off" + state: present + notify: Restart networking + + handlers: + - name: Restart networking + ansible.builtin.service: + name: networking + state: restarted + enabled: yes diff --git a/ansible/requirements.yml b/ansible/requirements.yml index 92f067a..c7cd7f7 100644 --- a/ansible/requirements.yml +++ b/ansible/requirements.yml @@ -1,10 +1,10 @@ --- collections: - name: ansible.utils - version: 2.11.0 + version: 5.1.2 - name: community.general - version: 8.6.9 + version: 10.4.0 - name: community.docker - version: 4.3.0 + version: 4.4.0 - name: ansible.posix version: 2.0.0 diff --git a/ansible/roles/apps/templates/apps/homeassistant.yml.j2 b/ansible/roles/apps/templates/apps/homeassistant.yml.j2 index 4490315..3b18428 100644 --- a/ansible/roles/apps/templates/apps/homeassistant.yml.j2 +++ b/ansible/roles/apps/templates/apps/homeassistant.yml.j2 @@ -11,7 +11,7 @@ services: reservations: memory: "268435456" hostname: homeassistant - image: homeassistant/home-assistant:2025.1 + image: homeassistant/home-assistant:2025.2 labels: icon: https://cdn.icon-icons.com/icons2/2407/PNG/512/home_assistant_icon_146164.png privileged: true diff --git a/ansible/roles/apps/templates/apps/jellyfin.yml.j2 b/ansible/roles/apps/templates/apps/jellyfin.yml.j2 index 06b3555..1b3b4d2 100644 --- a/ansible/roles/apps/templates/apps/jellyfin.yml.j2 +++ b/ansible/roles/apps/templates/apps/jellyfin.yml.j2 @@ -19,7 +19,7 @@ services: TZ: "{{ timezone }}" PUID: 1000 PGID: 1000 - image: linuxserver/jellyfin:10.10.3 + image: linuxserver/jellyfin:10.10.6 labels: icon: https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/jellyfin-logo.png networks: diff --git a/ansible/roles/apps/templates/apps/prowlarr.yml.j2 b/ansible/roles/apps/templates/apps/prowlarr.yml.j2 index 1f00121..40a350f 100644 --- a/ansible/roles/apps/templates/apps/prowlarr.yml.j2 +++ b/ansible/roles/apps/templates/apps/prowlarr.yml.j2 @@ -12,7 +12,7 @@ services: TZ: "{{ timezone }}" PUID: 1000 PGID: 1000 - image: linuxserver/prowlarr:1.29.2 + image: linuxserver/prowlarr:1.31.2 labels: icon: https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/prowlarr-logo.png networks: diff --git a/ansible/roles/apps/templates/apps/radarr.yml.j2 b/ansible/roles/apps/templates/apps/radarr.yml.j2 index e1b9993..be111e8 100644 --- a/ansible/roles/apps/templates/apps/radarr.yml.j2 +++ b/ansible/roles/apps/templates/apps/radarr.yml.j2 @@ -12,7 +12,7 @@ services: TZ: "{{ timezone }}" PUID: 1000 PGID: 1000 - image: linuxserver/radarr:5.17.2 + image: linuxserver/radarr:5.19.3 labels: icon: https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/radarr.png networks: diff --git a/ansible/roles/apps/templates/apps/sonarr.yml.j2 b/ansible/roles/apps/templates/apps/sonarr.yml.j2 index a720cc9..f241972 100644 --- a/ansible/roles/apps/templates/apps/sonarr.yml.j2 +++ b/ansible/roles/apps/templates/apps/sonarr.yml.j2 @@ -12,7 +12,7 @@ services: - TZ="{{ timezone }}" - PUID=1000 - PGID=1000 - image: linuxserver/sonarr:4.0.12 + image: linuxserver/sonarr:4.0.13 labels: icon: https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/sonarr-icon.png ports: @@ -46,7 +46,7 @@ services: - CRON_SCHEDULE=@daily - RECYCLARR_CREATE_CONFIG=true hostname: recyclarr - image: ghcr.io/recyclarr/recyclarr:7.4.0 + image: ghcr.io/recyclarr/recyclarr:7.4.1 labels: icon: https://recyclarr.dev/img/recyclarr.png restart: unless-stopped diff --git a/ansible/roles/apps/templates/apps/zigbee2mqtt.yml.j2 b/ansible/roles/apps/templates/apps/zigbee2mqtt.yml.j2 index 35ea8d9..c89fdea 100644 --- a/ansible/roles/apps/templates/apps/zigbee2mqtt.yml.j2 +++ b/ansible/roles/apps/templates/apps/zigbee2mqtt.yml.j2 @@ -11,7 +11,7 @@ services: environment: - "TZ={{ timezone }}" hostname: zigbee2mqtt - image: koenkk/zigbee2mqtt:2.0.0 + image: koenkk/zigbee2mqtt:2.1.1 labels: icon: https://raw.githubusercontent.com/mr-manuel/CasaOS-HomeAutomation-AppStore/latest/Apps/Zigbee2MQTT/icon.png ports: diff --git a/ansible/roles/dependencies/tasks/folder_structure.yml b/ansible/roles/mediabox/tasks/folder_structure.yml similarity index 100% rename from ansible/roles/dependencies/tasks/folder_structure.yml rename to ansible/roles/mediabox/tasks/folder_structure.yml diff --git a/ansible/roles/dependencies/tasks/main.yml b/ansible/roles/mediabox/tasks/main.yml similarity index 100% rename from ansible/roles/dependencies/tasks/main.yml rename to ansible/roles/mediabox/tasks/main.yml diff --git a/terraform/providers.tf b/terraform/providers.tf index dbdd395..961f0a1 100644 --- a/terraform/providers.tf +++ b/terraform/providers.tf @@ -12,11 +12,11 @@ terraform { } cloudflare = { source = "cloudflare/cloudflare" - version = "4.50.0" + version = "4.52.0" } random = { source = "hashicorp/random" - version = "3.6.3" + version = "3.7.1" } ansible = { source = "nbering/ansible" @@ -24,7 +24,11 @@ terraform { } tailscale = { source = "tailscale/tailscale" - version = "0.17.2" + version = "0.18.0" + } + null = { + source = "hashicorp/null" + version = "3.2.3" } } } diff --git a/terraform/proxmox_vm.tf b/terraform/proxmox_vm.tf index 680f19c..91143b6 100644 --- a/terraform/proxmox_vm.tf +++ b/terraform/proxmox_vm.tf @@ -55,4 +55,9 @@ resource "proxmox_vm_qemu" "mediabox" { } - +#### Proxmox host +resource "null_resource" "execute_ansible_on_proxmox" { + provisioner "local-exec" { + command = "ansible-playbook -i ${var.ansible_inventory} ${var.ansible_playbooks.proxmox} --vault-password-file .vault_pass.txt" + } +} \ No newline at end of file