feat: remove mennos-cloud-server references and update service directory paths
Some checks failed
Nix Format Check / check-format (push) Failing after 37s
Some checks failed
Nix Format Check / check-format (push) Failing after 37s
This commit is contained in:
parent
7a5814d115
commit
e8163f1c59
@ -6,4 +6,3 @@ mennos-desktop ansible_connection=local
|
|||||||
mennos-server ansible_connection=local
|
mennos-server ansible_connection=local
|
||||||
mennos-hobbypc ansible_connection=local
|
mennos-hobbypc ansible_connection=local
|
||||||
mennos-vm ansible_connection=local
|
mennos-vm ansible_connection=local
|
||||||
mennos-cloud-server ansible_connection=local
|
|
@ -15,4 +15,4 @@
|
|||||||
|
|
||||||
- name: Include server tasks
|
- name: Include server tasks
|
||||||
ansible.builtin.import_tasks: tasks/servers/server.yml
|
ansible.builtin.import_tasks: tasks/servers/server.yml
|
||||||
when: hostname in ['mennos-server', 'mennos-hobbypc', 'mennos-vm', 'mennos-cloud-server']
|
when: hostname in ['mennos-server', 'mennos-hobbypc', 'mennos-vm']
|
||||||
|
@ -30,7 +30,6 @@
|
|||||||
mennos-server: "$DOTFILES_PATH/config/git/gitconfig.mennos-server"
|
mennos-server: "$DOTFILES_PATH/config/git/gitconfig.mennos-server"
|
||||||
mennos-vm: "$DOTFILES_PATH/config/git/gitconfig.mennos-server"
|
mennos-vm: "$DOTFILES_PATH/config/git/gitconfig.mennos-server"
|
||||||
mennos-hobbypc: "$DOTFILES_PATH/config/git/gitconfig.linux"
|
mennos-hobbypc: "$DOTFILES_PATH/config/git/gitconfig.linux"
|
||||||
mennos-cloud-server: "$DOTFILES_PATH/config/git/gitconfig.linux"
|
|
||||||
|
|
||||||
- name: Create SSH authorized_keys symlink
|
- name: Create SSH authorized_keys symlink
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
@ -46,4 +45,3 @@
|
|||||||
mennos-server: "$DOTFILES_PATH/config/ssh/authorized_keys/mennos-server"
|
mennos-server: "$DOTFILES_PATH/config/ssh/authorized_keys/mennos-server"
|
||||||
mennos-vm: "$DOTFILES_PATH/config/ssh/authorized_keys/mennos-server"
|
mennos-vm: "$DOTFILES_PATH/config/ssh/authorized_keys/mennos-server"
|
||||||
mennos-hobbypc: "$DOTFILES_PATH/config/ssh/authorized_keys/mennos-hobbypc"
|
mennos-hobbypc: "$DOTFILES_PATH/config/ssh/authorized_keys/mennos-hobbypc"
|
||||||
mennos-cloud-server: "$DOTFILES_PATH/config/ssh/authorized_keys/mennos-server"
|
|
||||||
|
@ -7,10 +7,14 @@
|
|||||||
state: present
|
state: present
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
|
- name: Include ZFS tasks
|
||||||
|
ansible.builtin.include_tasks: zfs.yml
|
||||||
|
when: ansible_hostname == "mennos-server"
|
||||||
|
|
||||||
- name: Include services tasks
|
- name: Include services tasks
|
||||||
ansible.builtin.include_tasks: services/services.yml
|
ansible.builtin.include_tasks: services/services.yml
|
||||||
vars:
|
vars:
|
||||||
hoarder_enabled: true
|
hoarder_enabled: false
|
||||||
golink_enabled: true
|
golink_enabled: false
|
||||||
immich_enabled: false
|
immich_enabled: false
|
||||||
when: ansible_hostname == "mennos-cloud-server"
|
when: ansible_hostname == "mennos-server"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
block:
|
block:
|
||||||
- name: Set GoLink directories
|
- name: Set GoLink directories
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
golink_data_dir: "/mnt/storage-box/services/golink"
|
golink_data_dir: "/mnt/services/golink"
|
||||||
golink_service_dir: "{{ ansible_env.HOME }}/services/golink"
|
golink_service_dir: "{{ ansible_env.HOME }}/services/golink"
|
||||||
|
|
||||||
- name: Create GoLink directories
|
- name: Create GoLink directories
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
block:
|
block:
|
||||||
- name: Set Hoarder directories
|
- name: Set Hoarder directories
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
hoarder_data_dir: "/mnt/storage-box/services/hoarder"
|
hoarder_data_dir: "/mnt/services/hoarder"
|
||||||
hoarder_service_dir: "{{ ansible_env.HOME }}/services/hoarder"
|
hoarder_service_dir: "{{ ansible_env.HOME }}/services/hoarder"
|
||||||
|
|
||||||
- name: Create Hoarder directories
|
- name: Create Hoarder directories
|
||||||
|
@ -3,7 +3,7 @@ services:
|
|||||||
server:
|
server:
|
||||||
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
|
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
|
||||||
volumes:
|
volumes:
|
||||||
- {{ immich_data_dir }}/upload:/usr/src/app/upload
|
- {{ immich_data_dir }}:/usr/src/app/upload
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
@ -48,7 +48,7 @@ services:
|
|||||||
POSTGRES_INITDB_ARGS: '--data-checksums'
|
POSTGRES_INITDB_ARGS: '--data-checksums'
|
||||||
volumes:
|
volumes:
|
||||||
# Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file
|
# Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file
|
||||||
- {{ immich_data_dir }}/db:/var/lib/postgresql/data
|
- {{ immich_database_dir }}:/var/lib/postgresql/data
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: pg_isready --dbname='${DB_DATABASE_NAME}' --username='${DB_USERNAME}' || exit 1; Chksum="$$(psql --dbname='${DB_DATABASE_NAME}' --username='${DB_USERNAME}' --tuples-only --no-align --command='SELECT COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database')"; echo "checksum failure count is $$Chksum"; [ "$$Chksum" = '0' ] || exit 1
|
test: pg_isready --dbname='${DB_DATABASE_NAME}' --username='${DB_USERNAME}' || exit 1; Chksum="$$(psql --dbname='${DB_DATABASE_NAME}' --username='${DB_USERNAME}' --tuples-only --no-align --command='SELECT COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database')"; echo "checksum failure count is $$Chksum"; [ "$$Chksum" = '0' ] || exit 1
|
||||||
interval: 5m
|
interval: 5m
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
block:
|
block:
|
||||||
- name: Set Immich directories
|
- name: Set Immich directories
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
immich_data_dir: "/mnt/storage-box/services/immich"
|
immich_data_dir: "/mnt/photos/immich-library"
|
||||||
|
immich_database_dir: "/mnt/services/immich/data/postgres"
|
||||||
immich_service_dir: "{{ ansible_env.HOME }}/services/immich"
|
immich_service_dir: "{{ ansible_env.HOME }}/services/immich"
|
||||||
|
|
||||||
- name: Create Immich directories
|
- name: Create Immich directories
|
||||||
|
56
config/ansible/tasks/servers/zfs.yml
Normal file
56
config/ansible/tasks/servers/zfs.yml
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
- name: Install ZFS
|
||||||
|
ansible.builtin.package:
|
||||||
|
name:
|
||||||
|
- zfsutils-linux
|
||||||
|
become: true
|
||||||
|
|
||||||
|
- name: Ensure ZFS kernel module is loaded
|
||||||
|
ansible.builtin.command: modprobe zfs
|
||||||
|
become: true
|
||||||
|
|
||||||
|
- name: Create mount points
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ item }}"
|
||||||
|
state: directory
|
||||||
|
mode: "0755"
|
||||||
|
owner: menno
|
||||||
|
group: users
|
||||||
|
with_items:
|
||||||
|
- /mnt/ISOs
|
||||||
|
- /mnt/VMs
|
||||||
|
- /mnt/ai
|
||||||
|
- /mnt/astrophotography
|
||||||
|
- /mnt/audiobooks
|
||||||
|
- /mnt/backups/photos
|
||||||
|
- /mnt/backups/services
|
||||||
|
- /mnt/downloads
|
||||||
|
- /mnt/movies
|
||||||
|
- /mnt/music
|
||||||
|
- /mnt/old_backups
|
||||||
|
- /mnt/photos
|
||||||
|
- /mnt/services
|
||||||
|
- /mnt/stash
|
||||||
|
- /mnt/tvshows
|
||||||
|
|
||||||
|
- name: Mount ZFS datasets
|
||||||
|
mount:
|
||||||
|
path: "{{ item.path }}"
|
||||||
|
src: "{{ item.src }}"
|
||||||
|
fstype: zfs
|
||||||
|
state: mounted
|
||||||
|
with_items:
|
||||||
|
- { path: /mnt/ISOs, src: datapool/isos }
|
||||||
|
- { path: /mnt/VMs, src: datapool/vms }
|
||||||
|
- { path: /mnt/ai, src: datapool/ai }
|
||||||
|
- { path: /mnt/astrophotography, src: datapool/astro }
|
||||||
|
- { path: /mnt/audiobooks, src: datapool/audiobooks }
|
||||||
|
- { path: /mnt/backups/photos, src: backup/photos-duplicati }
|
||||||
|
- { path: /mnt/backups/services, src: backup/services-duplicati }
|
||||||
|
- { path: /mnt/downloads, src: datapool/downloads }
|
||||||
|
- { path: /mnt/movies, src: datapool/movies }
|
||||||
|
- { path: /mnt/music, src: datapool/music }
|
||||||
|
- { path: /mnt/old_backups, src: datapool/old_backups }
|
||||||
|
- { path: /mnt/photos, src: datapool/photos }
|
||||||
|
- { path: /mnt/services, src: datapool/services }
|
||||||
|
- { path: /mnt/stash, src: datapool/stash }
|
||||||
|
- { path: /mnt/tvshows, src: datapool/tv_shows }
|
@ -92,16 +92,6 @@
|
|||||||
hostname = "mennos-hobbypc";
|
hostname = "mennos-hobbypc";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
"mennos-cloud-server" = home-manager.lib.homeManagerConfiguration {
|
|
||||||
inherit pkgs;
|
|
||||||
modules = [ ./home.nix ];
|
|
||||||
extraSpecialArgs = {
|
|
||||||
inherit pkgs pkgs-unstable;
|
|
||||||
isServer = true;
|
|
||||||
hostname = "mennos-cloud-server";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user