From ab1ce5c14ffae0cc76d734ea56374f0c772631ba Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Wed, 15 Jul 2026 15:28:10 +0200 Subject: Rename services to use .home.arpa network instead .local --- host_vars/git.home.arpa.yml | Bin 0 -> 531 bytes host_vars/git.home.arpa.yml.example | 19 +++++++++++++++++++ host_vars/git.local.yml | Bin 531 -> 0 bytes host_vars/git.local.yml.example | 21 --------------------- host_vars/rpi5.local.yml | Bin 3602 -> 3707 bytes host_vars/rpi5.local.yml.example | 1 + inventory/hosts.yml | 2 +- molecule/git/molecule.yml | 2 +- molecule/inventory.yml | 3 +-- service.yml | 2 +- 10 files changed, 24 insertions(+), 26 deletions(-) create mode 100644 host_vars/git.home.arpa.yml create mode 100644 host_vars/git.home.arpa.yml.example delete mode 100644 host_vars/git.local.yml delete mode 100644 host_vars/git.local.yml.example diff --git a/host_vars/git.home.arpa.yml b/host_vars/git.home.arpa.yml new file mode 100644 index 00000000..f01929e3 Binary files /dev/null and b/host_vars/git.home.arpa.yml differ diff --git a/host_vars/git.home.arpa.yml.example b/host_vars/git.home.arpa.yml.example new file mode 100644 index 00000000..90db04b3 --- /dev/null +++ b/host_vars/git.home.arpa.yml.example @@ -0,0 +1,19 @@ +--- +network_ipv4_address: "10.0.0.100" +network_ipv4_gateway: "10.0.0.254" +network_ipv4_dns: "10.0.0.254" + +pve_lxc_id: 100 +pve_lxc_hostname: "git" +pve_lxc_template: "alpine-3.23-default_20260116_amd64.tar.xz" +pve_lxc_disk: "local-lvm:4" +pve_lxc_cores: 1 +pve_lxc_memory: 256 +pve_lxc_ip: "10.0.0.100/24" +pve_lxc_gateway: "10.0.0.254" +pve_lxc_dns: "10.0.0.254" + +cgit_hostname: "git.home.arpa" +cgit_title: "git.a14m.dev" +cgit_description: "a14m git repositories" +cgit_ssh_user: "git" diff --git a/host_vars/git.local.yml b/host_vars/git.local.yml deleted file mode 100644 index f01929e3..00000000 Binary files a/host_vars/git.local.yml and /dev/null differ diff --git a/host_vars/git.local.yml.example b/host_vars/git.local.yml.example deleted file mode 100644 index 60b8d659..00000000 --- a/host_vars/git.local.yml.example +++ /dev/null @@ -1,21 +0,0 @@ ---- -ansible_host: "10.0.0.100" - -network_ipv4_address: "10.0.0.100" -network_ipv4_gateway: "10.0.0.254" -network_ipv4_dns: "10.0.0.254" - -pve_lxc_id: 100 -pve_lxc_hostname: "git" -pve_lxc_template: "alpine-3.23-default_20260116_amd64.tar.xz" -pve_lxc_disk: "local-lvm:4" -pve_lxc_cores: 1 -pve_lxc_memory: 256 -pve_lxc_ip: "10.0.0.100/24" -pve_lxc_gateway: "10.0.0.254" -pve_lxc_dns: "10.0.0.254" - -cgit_hostname: "git.home.arpa" -cgit_title: "git.a14m.dev" -cgit_description: "a14m git repositories" -cgit_ssh_user: "git" diff --git a/host_vars/rpi5.local.yml b/host_vars/rpi5.local.yml index 27388c7d..c8d6c59a 100644 Binary files a/host_vars/rpi5.local.yml and b/host_vars/rpi5.local.yml differ diff --git a/host_vars/rpi5.local.yml.example b/host_vars/rpi5.local.yml.example index d528e4a5..399e2ee3 100644 --- a/host_vars/rpi5.local.yml.example +++ b/host_vars/rpi5.local.yml.example @@ -27,6 +27,7 @@ pihole_dns_hosts: - "{{ network_ipv4_address }} {{ wg_portal_hostname }}" - "{{ network_ipv4_address }} {{ grafana_hostname }}" - "{{ network_ipv4_address }} {{ prometheus_hostname }}" + - "{{ hostvars['git.home.arpa'].network_ipv4_address }} {{ hostvars['git.home.arpa'].cgit_hostname }}" wireguard_autostart_connection: "vpn2" wireguard_connections: diff --git a/inventory/hosts.yml b/inventory/hosts.yml index 646df106..b35c1d42 100644 --- a/inventory/hosts.yml +++ b/inventory/hosts.yml @@ -13,4 +13,4 @@ containers: vars: ansible_connection: ssh hosts: - git.local: + git.home.arpa: diff --git a/molecule/git/molecule.yml b/molecule/git/molecule.yml index 3050dd01..210e1f71 100644 --- a/molecule/git/molecule.yml +++ b/molecule/git/molecule.yml @@ -8,7 +8,7 @@ dependency: driver: name: podman platforms: - - name: git + - name: git.home.arpa image: git dockerfile: Dockerfile.j2 platform: "linux/amd64" diff --git a/molecule/inventory.yml b/molecule/inventory.yml index 47eb69e4..1371d9d3 100644 --- a/molecule/inventory.yml +++ b/molecule/inventory.yml @@ -10,5 +10,4 @@ homelab: containers: hosts: - git.local: - ansible_host: git + git.home.arpa: {} diff --git a/service.yml b/service.yml index a08cfa69..7fbccd8f 100644 --- a/service.yml +++ b/service.yml @@ -2,6 +2,6 @@ - name: "Git configure" gather_facts: true hosts: - - git.local + - git.home.arpa roles: - role: "cgit" -- cgit v1.2.3