From 107e6e3bd579c717a23a40d95e5a93f9537cdbbd Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Sat, 21 Sep 2024 04:01:01 +0000 Subject: [PATCH 01/19] :arrow_up: Update ghcr.io/open-webui/open-webui Docker tag to v0.3.23 --- docker/AI/docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/AI/docker-compose.yml b/docker/AI/docker-compose.yml index bd899b0..5cac9a4 100644 --- a/docker/AI/docker-compose.yml +++ b/docker/AI/docker-compose.yml @@ -18,7 +18,7 @@ services: capabilities: [gpu] open-webui: - image: ghcr.io/open-webui/open-webui:v0.3.22 + image: ghcr.io/open-webui/open-webui:v0.3.23 container_name: open-webui restart: unless-stopped ports: From b0c601f4e732f8eaefe3f67af148eb1038e6f785 Mon Sep 17 00:00:00 2001 From: Matt Reeves Date: Sat, 21 Sep 2024 18:58:16 -0400 Subject: [PATCH 02/19] add zsh to packer, add ubu --- packer/ubuntu-jammy/files/.zshrc | 21 ++++++++++++++++++++ packer/ubuntu-jammy/ubuntu-jammy.pkr.hcl | 25 +++++++++++++++++------- terraform/ubu.tf | 4 ---- 3 files changed, 39 insertions(+), 11 deletions(-) create mode 100644 packer/ubuntu-jammy/files/.zshrc diff --git a/packer/ubuntu-jammy/files/.zshrc b/packer/ubuntu-jammy/files/.zshrc new file mode 100644 index 0000000..4eb8d56 --- /dev/null +++ b/packer/ubuntu-jammy/files/.zshrc @@ -0,0 +1,21 @@ +# Path to your Oh My Zsh installation. +export ZSH="$HOME/.oh-my-zsh" +export PATH=$PATH:$HOME/.local/bin + +# Set theme +ZSH_THEME="robbyrussell" + +# Plugins +plugins=(git ubuntu copypath copyfile dirhistory zsh-interactive-cd docker docker-compose opentofu zsh-history-substring-search zsh-autosuggestions zsh-syntax-highlighting you-should-use) + +source $ZSH/oh-my-zsh.sh + +# Set up Oh My Posh +eval "$(oh-my-posh init zsh --config https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/sonicboom_dark.omp.json)" + +# Custom aliases +alias dcd="docker compose down" +alias dcu="docker compose up -d" + +# Display system information +neofetch diff --git a/packer/ubuntu-jammy/ubuntu-jammy.pkr.hcl b/packer/ubuntu-jammy/ubuntu-jammy.pkr.hcl index ee624ed..4611b6a 100644 --- a/packer/ubuntu-jammy/ubuntu-jammy.pkr.hcl +++ b/packer/ubuntu-jammy/ubuntu-jammy.pkr.hcl @@ -94,27 +94,38 @@ build { ] } - provisioner "file" { source = "files/pve.cfg" destination = "/tmp/pve.cfg" } - provisioner "shell" { inline = [ "sudo cp /tmp/pve.cfg /etc/cloud/cloud.cfg.d/pve.cfg" ] } - # Install Commonly Used Things - add alias's - set git config + # Install commonly used things - add alias's - set git config provisioner "shell" { inline = [ - "sudo apt-get install -y ca-certificates curl gnupg lsb-release nfs-common qemu-guest-agent net-tools", + "sudo apt-get install -y ca-certificates curl gnupg lsb-release nfs-common qemu-guest-agent net-tools zsh neofetch fzf", + "sudo chsh -s $(which zsh) mafyuh", "curl -fsSL https://get.docker.com | sudo sh", - "echo \"alias dcu='docker compose up -d'\" >> ~/.bashrc", - "echo \"alias dcd='docker compose down'\" >> ~/.bashrc", + "sh -c \"$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)\" --unattended", + "git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting", + "git clone https://github.com/zsh-users/zsh-autosuggestions.git $${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-autosuggestions", + "git clone https://github.com/zsh-users/zsh-history-substring-search.git $${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-history-substring-search", + "git clone https://github.com/MichaelAquilina/zsh-you-should-use.git $${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/you-should-use", + "mkdir -p /home/mafyuh/.local/bin", + "curl -fsSL https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/posh-linux-amd64 -o /home/mafyuh/.local/bin/oh-my-posh", + "sudo chmod +x /home/mafyuh/.local/bin/oh-my-posh", "git config --global user.name \"Mafyuh\"", "git config --global user.email \"matt@mafyuh.com\"", "sudo apt-get -y update" ] } -} \ No newline at end of file + + provisioner "file" { + source = "files/.zshrc" + destination = "~/.zshrc" + } + +} diff --git a/terraform/ubu.tf b/terraform/ubu.tf index 94549ca..64172c3 100644 --- a/terraform/ubu.tf +++ b/terraform/ubu.tf @@ -64,8 +64,4 @@ resource "proxmox_virtual_environment_vm" "Ubu" { ] } -} - -output "vm_ipv4_address" { - value = proxmox_virtual_environment_vm.Ubu.ipv4_addresses[1][0] } \ No newline at end of file From 3d4c493a08f0a1afe2fea65f790075e1e0d5e087 Mon Sep 17 00:00:00 2001 From: Matt Reeves Date: Sat, 21 Sep 2024 19:33:47 -0400 Subject: [PATCH 03/19] add zsh ansible test --- ansible/playbooks/zsh.yml | 101 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 ansible/playbooks/zsh.yml diff --git a/ansible/playbooks/zsh.yml b/ansible/playbooks/zsh.yml new file mode 100644 index 0000000..f50b698 --- /dev/null +++ b/ansible/playbooks/zsh.yml @@ -0,0 +1,101 @@ +--- +- name: Configure Zsh, Neofetch, FZF, and custom .zshrc + hosts: all + become: true + vars: + zsh_custom: "{{ ansible_env.HOME }}/.oh-my-zsh/custom" + user: "{{ ansible_user }}" + + tasks: + + - name: Install necessary packages + apt: + name: + - zsh + - neofetch + - fzf + state: present + update_cache: yes + + - name: Change default shell to Zsh + user: + name: "{{ user }}" + shell: /bin/zsh + + - name: Install Oh My Zsh (unattended) + shell: | + RUNZSH=no sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" + args: + chdir: "/home/{{ user }}" + creates: "/home/{{ user }}/.oh-my-zsh" + + - name: Clone zsh-syntax-highlighting plugin + git: + repo: https://github.com/zsh-users/zsh-syntax-highlighting.git + dest: "{{ zsh_custom }}/plugins/zsh-syntax-highlighting" + update: no + + - name: Clone zsh-autosuggestions plugin + git: + repo: https://github.com/zsh-users/zsh-autosuggestions.git + dest: "{{ zsh_custom }}/plugins/zsh-autosuggestions" + update: no + + - name: Clone zsh-history-substring-search plugin + git: + repo: https://github.com/zsh-users/zsh-history-substring-search.git + dest: "{{ zsh_custom }}/plugins/zsh-history-substring-search" + update: no + + - name: Clone zsh-you-should-use plugin + git: + repo: https://github.com/MichaelAquilina/zsh-you-should-use.git + dest: "{{ zsh_custom }}/plugins/you-should-use" + update: no + + - name: Ensure .local/bin directory exists + file: + path: "/home/{{ user }}/.local/bin" + state: directory + owner: "{{ user }}" + mode: '0755' + + - name: Download Oh My Posh binary + get_url: + url: https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/posh-linux-amd64 + dest: "/home/{{ user }}/.local/bin/oh-my-posh" + mode: '0755' + + - name: Ensure ownership of .local/bin/oh-my-posh + file: + path: "/home/{{ user }}/.local/bin/oh-my-posh" + owner: "{{ user }}" + mode: '0755' + + - name: Set up custom .zshrc + copy: + dest: "/home/{{ user }}/.zshrc" + content: | + # Path to your Oh My Zsh installation. + export ZSH="$HOME/.oh-my-zsh" + export PATH=$PATH:$HOME/.local/bin + + # Set theme + ZSH_THEME="robbyrussell" + + # Plugins + plugins=(git ubuntu copypath copyfile dirhistory zsh-interactive-cd docker docker-compose opentofu zsh-history-substring-search zsh-autosuggestions zsh-syntax-highlighting you-should-use) + + source $ZSH/oh-my-zsh.sh + + # Set up Oh My Posh + eval "$(oh-my-posh init zsh --config https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/sonicboom_dark.omp.json)" + + # Custom aliases + alias dcd="docker compose down" + alias dcu="docker compose up -d" + + # Display system information + neofetch + owner: "{{ user }}" + mode: '0644' From e540c5d195ebbbaba1e8de2bbe32b6e6367a3c72 Mon Sep 17 00:00:00 2001 From: Matt Reeves Date: Sat, 21 Sep 2024 19:49:07 -0400 Subject: [PATCH 04/19] fix zsh --- ansible/playbooks/zsh.yml | 64 +++++++++++++++++++-------------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/ansible/playbooks/zsh.yml b/ansible/playbooks/zsh.yml index f50b698..c1d2f44 100644 --- a/ansible/playbooks/zsh.yml +++ b/ansible/playbooks/zsh.yml @@ -7,7 +7,6 @@ user: "{{ ansible_user }}" tasks: - - name: Install necessary packages apt: name: @@ -17,10 +16,34 @@ state: present update_cache: yes - - name: Change default shell to Zsh - user: - name: "{{ user }}" - shell: /bin/zsh + - name: Pre-create basic .zshrc to avoid the zsh-newuser-install prompt + copy: + dest: "/home/{{ user }}/.zshrc" + content: | + # Basic .zshrc to prevent zsh-newuser-install prompt + # Path to your Oh My Zsh installation. + export ZSH="$HOME/.oh-my-zsh" + export PATH=$PATH:$HOME/.local/bin + + # Set theme + ZSH_THEME="robbyrussell" + + # Plugins + plugins=(git ubuntu copypath copyfile dirhistory zsh-interactive-cd docker docker-compose opentofu zsh-history-substring-search zsh-autosuggestions zsh-syntax-highlighting you-should-use) + + source $ZSH/oh-my-zsh.sh + + # Set up Oh My Posh + eval "$(oh-my-posh init zsh --config https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/sonicboom_dark.omp.json)" + + # Custom aliases + alias dcd="docker compose down" + alias dcu="docker compose up -d" + + # Display system information + neofetch + owner: "{{ user }}" + mode: '0644' - name: Install Oh My Zsh (unattended) shell: | @@ -72,30 +95,7 @@ owner: "{{ user }}" mode: '0755' - - name: Set up custom .zshrc - copy: - dest: "/home/{{ user }}/.zshrc" - content: | - # Path to your Oh My Zsh installation. - export ZSH="$HOME/.oh-my-zsh" - export PATH=$PATH:$HOME/.local/bin - - # Set theme - ZSH_THEME="robbyrussell" - - # Plugins - plugins=(git ubuntu copypath copyfile dirhistory zsh-interactive-cd docker docker-compose opentofu zsh-history-substring-search zsh-autosuggestions zsh-syntax-highlighting you-should-use) - - source $ZSH/oh-my-zsh.sh - - # Set up Oh My Posh - eval "$(oh-my-posh init zsh --config https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/sonicboom_dark.omp.json)" - - # Custom aliases - alias dcd="docker compose down" - alias dcu="docker compose up -d" - - # Display system information - neofetch - owner: "{{ user }}" - mode: '0644' + - name: Change default shell to Zsh (after setting up .zshrc) + user: + name: "{{ user }}" + shell: /bin/zsh From 181cfe20fb329952560db1340a09c7cc6277bf33 Mon Sep 17 00:00:00 2001 From: Matt Reeves Date: Sat, 21 Sep 2024 19:53:24 -0400 Subject: [PATCH 05/19] fix zsh playbook --- ansible/playbooks/zsh.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ansible/playbooks/zsh.yml b/ansible/playbooks/zsh.yml index c1d2f44..3656a7c 100644 --- a/ansible/playbooks/zsh.yml +++ b/ansible/playbooks/zsh.yml @@ -1,7 +1,7 @@ --- - name: Configure Zsh, Neofetch, FZF, and custom .zshrc hosts: all - become: true + become: false vars: zsh_custom: "{{ ansible_env.HOME }}/.oh-my-zsh/custom" user: "{{ ansible_user }}" @@ -48,9 +48,11 @@ - name: Install Oh My Zsh (unattended) shell: | RUNZSH=no sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" + environment: + HOME: "/home/{{ ansible_user }}" args: - chdir: "/home/{{ user }}" - creates: "/home/{{ user }}/.oh-my-zsh" + chdir: "/home/{{ ansible_user }}" + creates: "/home/{{ ansible_user }}/.oh-my-zsh" - name: Clone zsh-syntax-highlighting plugin git: From 694ace85add3ceeb31c1209b58b1b67dabaa87b5 Mon Sep 17 00:00:00 2001 From: Matt Reeves Date: Sat, 21 Sep 2024 19:54:47 -0400 Subject: [PATCH 06/19] fiz zsh playbook --- ansible/playbooks/zsh.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/playbooks/zsh.yml b/ansible/playbooks/zsh.yml index 3656a7c..c9efeee 100644 --- a/ansible/playbooks/zsh.yml +++ b/ansible/playbooks/zsh.yml @@ -1,7 +1,7 @@ --- - name: Configure Zsh, Neofetch, FZF, and custom .zshrc hosts: all - become: false + become: true vars: zsh_custom: "{{ ansible_env.HOME }}/.oh-my-zsh/custom" user: "{{ ansible_user }}" From 41c76486f65f830ca20f722d190136fc83233c51 Mon Sep 17 00:00:00 2001 From: Matt Reeves Date: Sat, 21 Sep 2024 20:00:36 -0400 Subject: [PATCH 07/19] test zsh playbook --- ansible/playbooks/zsh.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ansible/playbooks/zsh.yml b/ansible/playbooks/zsh.yml index c9efeee..55a6a26 100644 --- a/ansible/playbooks/zsh.yml +++ b/ansible/playbooks/zsh.yml @@ -49,10 +49,10 @@ shell: | RUNZSH=no sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" environment: - HOME: "/home/{{ ansible_user }}" + HOME: "/home/mafyuh" args: - chdir: "/home/{{ ansible_user }}" - creates: "/home/{{ ansible_user }}/.oh-my-zsh" + chdir: "/home/mafyuh}" + creates: "/home/mafyuh/.oh-my-zsh" - name: Clone zsh-syntax-highlighting plugin git: From f311309e0508e636f4d941430a3eedeb8086170a Mon Sep 17 00:00:00 2001 From: Matt Reeves Date: Sat, 21 Sep 2024 20:01:51 -0400 Subject: [PATCH 08/19] test playbook --- ansible/playbooks/zsh.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/playbooks/zsh.yml b/ansible/playbooks/zsh.yml index 55a6a26..ec13c1f 100644 --- a/ansible/playbooks/zsh.yml +++ b/ansible/playbooks/zsh.yml @@ -51,7 +51,7 @@ environment: HOME: "/home/mafyuh" args: - chdir: "/home/mafyuh}" + chdir: "/home/mafyuh" creates: "/home/mafyuh/.oh-my-zsh" - name: Clone zsh-syntax-highlighting plugin From b2c6782e4154ee544b2b03458dfde133f02b1a9d Mon Sep 17 00:00:00 2001 From: Matt Reeves Date: Sat, 21 Sep 2024 20:10:38 -0400 Subject: [PATCH 09/19] adjust zsh playbook --- ansible/playbooks/zsh.yml | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/ansible/playbooks/zsh.yml b/ansible/playbooks/zsh.yml index ec13c1f..6243bec 100644 --- a/ansible/playbooks/zsh.yml +++ b/ansible/playbooks/zsh.yml @@ -49,34 +49,41 @@ shell: | RUNZSH=no sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" environment: - HOME: "/home/mafyuh" + HOME: "/home/{{ user }}" args: - chdir: "/home/mafyuh" - creates: "/home/mafyuh/.oh-my-zsh" + chdir: "/home/{{ user }}" + creates: "/home/{{ user }}/.oh-my-zsh" + + - name: Ensure custom plugins directory exists + file: + path: "{{ zsh_custom }}/plugins" + state: directory + owner: "{{ user }}" + group: "{{ user }}" - name: Clone zsh-syntax-highlighting plugin git: repo: https://github.com/zsh-users/zsh-syntax-highlighting.git dest: "{{ zsh_custom }}/plugins/zsh-syntax-highlighting" - update: no + update: yes - name: Clone zsh-autosuggestions plugin git: repo: https://github.com/zsh-users/zsh-autosuggestions.git dest: "{{ zsh_custom }}/plugins/zsh-autosuggestions" - update: no + update: yes - name: Clone zsh-history-substring-search plugin git: repo: https://github.com/zsh-users/zsh-history-substring-search.git dest: "{{ zsh_custom }}/plugins/zsh-history-substring-search" - update: no + update: yes - - name: Clone zsh-you-should-use plugin + - name: Clone you-should-use plugin git: repo: https://github.com/MichaelAquilina/zsh-you-should-use.git dest: "{{ zsh_custom }}/plugins/you-should-use" - update: no + update: yes - name: Ensure .local/bin directory exists file: From 45d9404f2218f7deffe0431607cf8dbdb87cae9d Mon Sep 17 00:00:00 2001 From: Matt Reeves Date: Sat, 21 Sep 2024 20:12:46 -0400 Subject: [PATCH 10/19] fix clone repo --- ansible/playbooks/zsh.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ansible/playbooks/zsh.yml b/ansible/playbooks/zsh.yml index 6243bec..eaf82dd 100644 --- a/ansible/playbooks/zsh.yml +++ b/ansible/playbooks/zsh.yml @@ -64,25 +64,25 @@ - name: Clone zsh-syntax-highlighting plugin git: repo: https://github.com/zsh-users/zsh-syntax-highlighting.git - dest: "{{ zsh_custom }}/plugins/zsh-syntax-highlighting" + dest: "/home/{{ ansible_user }}/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting" update: yes - name: Clone zsh-autosuggestions plugin git: repo: https://github.com/zsh-users/zsh-autosuggestions.git - dest: "{{ zsh_custom }}/plugins/zsh-autosuggestions" + dest: "/home/{{ ansible_user }}/.oh-my-zsh/custom/plugins/zsh-autosuggestions" update: yes - name: Clone zsh-history-substring-search plugin git: repo: https://github.com/zsh-users/zsh-history-substring-search.git - dest: "{{ zsh_custom }}/plugins/zsh-history-substring-search" + dest: "/home/{{ ansible_user }}/.oh-my-zsh/custom/plugins/zsh-history-substring-search" update: yes - name: Clone you-should-use plugin git: repo: https://github.com/MichaelAquilina/zsh-you-should-use.git - dest: "{{ zsh_custom }}/plugins/you-should-use" + dest: "/home/{{ ansible_user }}/.oh-my-zsh/custom/plugins/you-should-use" update: yes - name: Ensure .local/bin directory exists From 6620a53ac68e17466be0c50b427cf02ba1a67b12 Mon Sep 17 00:00:00 2001 From: Matt Reeves Date: Sat, 21 Sep 2024 20:23:41 -0400 Subject: [PATCH 11/19] test zsh playbook --- ansible/playbooks/zsh.yml | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/ansible/playbooks/zsh.yml b/ansible/playbooks/zsh.yml index eaf82dd..a3407c4 100644 --- a/ansible/playbooks/zsh.yml +++ b/ansible/playbooks/zsh.yml @@ -16,7 +16,7 @@ state: present update_cache: yes - - name: Pre-create basic .zshrc to avoid the zsh-newuser-install prompt + - name: Pre-create basic .zshrc copy: dest: "/home/{{ user }}/.zshrc" content: | @@ -45,14 +45,19 @@ owner: "{{ user }}" mode: '0644' - - name: Install Oh My Zsh (unattended) - shell: | - RUNZSH=no sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" - environment: - HOME: "/home/{{ user }}" + - name: Download Oh My Zsh installation script + get_url: + url: https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh + dest: /tmp/install_ohmyzsh.sh + + - name: Run Oh My Zsh installation script + command: sh /tmp/install_ohmyzsh.sh --unattended + register: ohmyzsh_result + failed_when: "'FAILED' in ohmyzsh_result.stderr" args: chdir: "/home/{{ user }}" - creates: "/home/{{ user }}/.oh-my-zsh" + environment: + HOME: "/home/{{ user }}" - name: Ensure custom plugins directory exists file: @@ -64,25 +69,25 @@ - name: Clone zsh-syntax-highlighting plugin git: repo: https://github.com/zsh-users/zsh-syntax-highlighting.git - dest: "/home/{{ ansible_user }}/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting" + dest: "{{ zsh_custom }}/plugins/zsh-syntax-highlighting" update: yes - name: Clone zsh-autosuggestions plugin git: repo: https://github.com/zsh-users/zsh-autosuggestions.git - dest: "/home/{{ ansible_user }}/.oh-my-zsh/custom/plugins/zsh-autosuggestions" + dest: "{{ zsh_custom }}/plugins/zsh-autosuggestions" update: yes - name: Clone zsh-history-substring-search plugin git: repo: https://github.com/zsh-users/zsh-history-substring-search.git - dest: "/home/{{ ansible_user }}/.oh-my-zsh/custom/plugins/zsh-history-substring-search" + dest: "{{ zsh_custom }}/plugins/zsh-history-substring-search" update: yes - name: Clone you-should-use plugin git: repo: https://github.com/MichaelAquilina/zsh-you-should-use.git - dest: "/home/{{ ansible_user }}/.oh-my-zsh/custom/plugins/you-should-use" + dest: "{{ zsh_custom }}/plugins/you-should-use" update: yes - name: Ensure .local/bin directory exists From c583b81865b49af987689511f523db61a1d34b92 Mon Sep 17 00:00:00 2001 From: Matt Reeves Date: Sat, 21 Sep 2024 20:44:44 -0400 Subject: [PATCH 12/19] fixed zsh playbook --- ansible/playbooks/zsh.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ansible/playbooks/zsh.yml b/ansible/playbooks/zsh.yml index a3407c4..0a859bf 100644 --- a/ansible/playbooks/zsh.yml +++ b/ansible/playbooks/zsh.yml @@ -20,7 +20,6 @@ copy: dest: "/home/{{ user }}/.zshrc" content: | - # Basic .zshrc to prevent zsh-newuser-install prompt # Path to your Oh My Zsh installation. export ZSH="$HOME/.oh-my-zsh" export PATH=$PATH:$HOME/.local/bin @@ -58,6 +57,7 @@ chdir: "/home/{{ user }}" environment: HOME: "/home/{{ user }}" + RUNZSH: "no" - name: Ensure custom plugins directory exists file: @@ -69,25 +69,25 @@ - name: Clone zsh-syntax-highlighting plugin git: repo: https://github.com/zsh-users/zsh-syntax-highlighting.git - dest: "{{ zsh_custom }}/plugins/zsh-syntax-highlighting" + dest: "/home/{{ ansible_user }}/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting" update: yes - name: Clone zsh-autosuggestions plugin git: repo: https://github.com/zsh-users/zsh-autosuggestions.git - dest: "{{ zsh_custom }}/plugins/zsh-autosuggestions" + dest: "/home/{{ ansible_user }}/.oh-my-zsh/custom/plugins/zsh-autosuggestions" update: yes - name: Clone zsh-history-substring-search plugin git: repo: https://github.com/zsh-users/zsh-history-substring-search.git - dest: "{{ zsh_custom }}/plugins/zsh-history-substring-search" + dest: "/home/{{ ansible_user }}/.oh-my-zsh/custom/plugins/zsh-history-substring-search" update: yes - name: Clone you-should-use plugin git: repo: https://github.com/MichaelAquilina/zsh-you-should-use.git - dest: "{{ zsh_custom }}/plugins/you-should-use" + dest: "/home/{{ ansible_user }}/.oh-my-zsh/custom/plugins/you-should-use" update: yes - name: Ensure .local/bin directory exists From 91acae49f6f3477a16757b95a3cfa0d8e33cbe0f Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Sun, 22 Sep 2024 18:00:38 +0000 Subject: [PATCH 13/19] :arrow_up: Update ghcr.io/linuxserver/radarr Docker digest to df843d9 --- docker/arrs/docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/arrs/docker-compose.yml b/docker/arrs/docker-compose.yml index a7bb94b..6453596 100644 --- a/docker/arrs/docker-compose.yml +++ b/docker/arrs/docker-compose.yml @@ -43,7 +43,7 @@ services: - PGID=1000 radarr: - image: ghcr.io/linuxserver/radarr@sha256:dfbce5095045fc1c15058318342ee590ab50379854b13464dd2ca17b10c4beb4 + image: ghcr.io/linuxserver/radarr@sha256:df843d96b812d858b94377ffed1918424ece6735038a19e8ff93730277757b65 container_name: radarr ports: - "7878:7878" From 4ee729ceaea97dfefedaf6f9fa44e5fddb327319 Mon Sep 17 00:00:00 2001 From: Matt Reeves Date: Sun, 22 Sep 2024 14:26:39 -0400 Subject: [PATCH 14/19] add AI stack --- docker/AI/docker-compose.yml | 176 ++++++++++++++++++++++++++++++++++- 1 file changed, 173 insertions(+), 3 deletions(-) diff --git a/docker/AI/docker-compose.yml b/docker/AI/docker-compose.yml index 5cac9a4..4eb7b42 100644 --- a/docker/AI/docker-compose.yml +++ b/docker/AI/docker-compose.yml @@ -1,10 +1,10 @@ -version: "3.8" - services: ollama: image: ollama/ollama:0.3.11 container_name: ollama restart: unless-stopped + networks: + - ai-stack volumes: - ollama:/root/.ollama ports: @@ -21,6 +21,28 @@ services: image: ghcr.io/open-webui/open-webui:v0.3.23 container_name: open-webui restart: unless-stopped + networks: + - ai-stack + environment: + - ENABLE_RAG_WEB_SEARCH=True + - RAG_WEB_SEARCH_ENGINE=searxng + - RAG_WEB_SEARCH_RESULT_COUNT=3 + - RAG_WEB_SEARCH_CONCURRENT_REQUESTS=10 + - SEARXNG_QUERY_URL=http://searxng:8080/search?q= + - OAUTH_CLIENT_ID=${OAUTH_CLIENT_ID} + - OAUTH_CLIENT_SECRET=${OAUTH_CLIENT_SECRET} + - OPENID_PROVIDER_URL=${OPENID_PROVIDER_URL} + - OAUTH_PROVIDER_NAME=${OAUTH_PROVIDER_NAME} + - OAUTH_USERNAME_CLAIM=name + - OAUTH_EMAIL_CLAIM=email + - OAUTH_SCOPES=${OAUTH_SCOPES} + - OAUTH_MERGE_ACCOUNTS_BY_EMAIL=True + - ENABLE_OAUTH_SIGNUP=True + - ENABLE_SIGNUP=True + - WEBUI_AUTH=False + - ENABLE_LOGIN_FORM=True + - ENABLE_IMAGE_GENERATION=True + - COMFYUI_BASE_URL=http://stable-diffusion-webui:7860 ports: - 3000:8080 volumes: @@ -28,8 +50,156 @@ services: extra_hosts: - host.docker.internal:host-gateway + searxng: + image: searxng/searxng@sha256:efc99f666dd360bb5f606b401cff5baad6cdbb3095fd061b3eb34e0c1a12e54a + container_name: searxng + networks: + - ai-stack + environment: + - PUID=${PUID:-1000} + - PGID=${PGID:-1000} + volumes: + - /etc/localtime:/etc/localtime:ro + - /etc/timezone:/etc/timezone:ro + - /docker/appdata/searxng:/etc/searxng + depends_on: + - ollama + - open-webui + restart: unless-stopped + ports: + - "8081:8080" + + stable-diffusion-download: + build: /docker/appdata/stable-diffusion-webui-docker/services/download/ + image: comfy-download + environment: + - PUID=${PUID:-1000} + - PGID=${PGID:-1000} + volumes: + - /etc/localtime:/etc/localtime:ro + - /etc/timezone:/etc/timezone:ro + - /docker/appdata/stable-diffusion-webui-docker/data:/data + + stable-diffusion-webui: + build: /docker/appdata/stable-diffusion-webui-docker/services/comfy/ + image: comfy-ui + environment: + - PUID=${PUID:-1000} + - PGID=${PGID:-1000} + - CLI_ARGS= + volumes: + - /etc/localtime:/etc/localtime:ro + - /etc/timezone:/etc/timezone:ro + - /docker/appdata/stable-diffusion-webui-docker/data:/data + - /docker/appdata/stable-diffusion-webui-docker/output:/output + stop_signal: SIGKILL + tty: true + deploy: + resources: + reservations: + devices: + - driver: nvidia + device_ids: ['0'] + capabilities: [compute, utility] + restart: unless-stopped + networks: + - ai-stack + ports: + - "7860:7860" + + mongo: + image: mongo + env_file: + - .env + networks: + - ai-stack + restart: unless-stopped + volumes: + - /etc/localtime:/etc/localtime:ro + - /etc/timezone:/etc/timezone:ro + - /docker/appdata/whisper/db_data:/data/db + - /docker/appdata/whisper/db_data/logs/:/var/log/mongodb/ + environment: + - PUID=${PUID:-1000} + - PGID=${PGID:-1000} + - MONGO_INITDB_ROOT_USERNAME=${DB_USER:-whisper} + - MONGO_INITDB_ROOT_PASSWORD=${DB_PASS:-whisper} + command: ['--logpath', '/var/log/mongodb/mongod.log'] + ports: + - "27017:27017" + + translate: + container_name: whisper-libretranslate + image: libretranslate/libretranslate:v1.6.0-cuda + env_file: + - .env + networks: + - ai-stack + restart: "no" + volumes: + - /etc/localtime:/etc/localtime:ro + - /etc/timezone:/etc/timezone:ro + - /docker/appdata/whisper/libretranslate/data:/home/libretranslate/.local/share + - /docker/appdata/whisper/libretranslate/cache:/home/libretranslate/.local/cache + user: root + tty: true + environment: + - PUID=${PUID:-1000} + - PGID=${PGID:-1000} + - LT_DISABLE_WEB_UI=True + - LT_LOAD_ONLY=${LT_LOAD_ONLY:-en,fr,es} + - LT_UPDATE_MODELS=True + deploy: + resources: + reservations: + devices: + - driver: nvidia + count: all + capabilities: [gpu] + ports: + - "5000:5000" + + whisper: + container_name: whisper + pull_policy: always + image: pluja/whishper:v3.1.4-gpu + env_file: + - .env + networks: + - ai-stack + volumes: + - /etc/localtime:/etc/localtime:ro + - /etc/timezone:/etc/timezone:ro + - /docker/appdata/whisper/uploads:/app/uploads + - /docker/appdata/whisper/logs:/var/log/whishper + - /docker/appdata/whisper/models:/app/models + restart: unless-stopped + depends_on: + - mongo + environment: + - PUID=${PUID:-1000} + - PGID=${PGID:-1000} + - PUBLIC_INTERNAL_API_HOST=http://127.0.0.1:80 + - PUBLIC_API_HOST=${WHISHPER_HOST:-} + - PUBLIC_WHISHPER_PROFILE=gpu + - WHISPER_MODELS_DIR=/app/models + - UPLOAD_DIR=/app/uploads + deploy: + resources: + reservations: + devices: + - driver: nvidia + count: all + capabilities: [gpu] + ports: + - "8090:80" + +networks: + ai-stack: + external: true + volumes: ollama: external: true open-webui: - external: true + From 6dad3ae3a522f20285a8a84c866cc5a47432336a Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Sun, 22 Sep 2024 09:00:35 +0000 Subject: [PATCH 15/19] :arrow_up: Update ghcr.io/linuxserver/doplarr Docker digest to 553ab1a --- docker/arrs/docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/arrs/docker-compose.yml b/docker/arrs/docker-compose.yml index 6453596..5ce2d06 100644 --- a/docker/arrs/docker-compose.yml +++ b/docker/arrs/docker-compose.yml @@ -105,7 +105,7 @@ services: doplarr: - image: ghcr.io/linuxserver/doplarr@sha256:e7a1a285b873622a3d2491612cad93ef2e015401495be96778304b15816547f5 + image: ghcr.io/linuxserver/doplarr@sha256:553ab1a599797924b7c6aec47becd05a3bbc455197349cac190eec1f2707ade2 container_name: doplarr environment: - PUID=1000 From bf2fd513ed5997235c1251a4ed9fd0a3c0332341 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Fri, 20 Sep 2024 14:00:50 +0000 Subject: [PATCH 16/19] :arrow_up: Update vikunja/vikunja Docker digest to c400bdc --- docker/portainer/docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/portainer/docker-compose.yml b/docker/portainer/docker-compose.yml index dba8ebf..f28fc07 100644 --- a/docker/portainer/docker-compose.yml +++ b/docker/portainer/docker-compose.yml @@ -12,7 +12,7 @@ services: restart: always vikunja: - image: vikunja/vikunja@sha256:c31c7d6cad49038ab8a7d1414845d4c45539b43dd6ddd082bcd148e6fcd7b01c + image: vikunja/vikunja@sha256:c400bdcb2ae4a78fccb9b463d01f96d1b2cfaef3484a4dd5c2a26e55eadc2d7a environment: VIKUNJA_SERVICE_PUBLICURL: $VIKUNJA_SERVICE_PUBLICURL VIKUNJA_DATABASE_TYPE: sqlite From dbb366a2c005d7115b1623f77bdf4182f744dfa7 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Sat, 21 Sep 2024 09:01:06 +0000 Subject: [PATCH 17/19] :arrow_up: Update docker.io/gotenberg/gotenberg Docker tag to v8.10 --- docker/paperless/docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/paperless/docker-compose.yml b/docker/paperless/docker-compose.yml index 06b0cb0..9c5d432 100644 --- a/docker/paperless/docker-compose.yml +++ b/docker/paperless/docker-compose.yml @@ -27,7 +27,7 @@ services: PAPERLESS_TIKA_ENDPOINT: http://tika:9998 gotenberg: - image: docker.io/gotenberg/gotenberg:8.7 + image: docker.io/gotenberg/gotenberg:8.10 restart: unless-stopped # The gotenberg chromium route is used to convert .eml files. We do not From 1845c4e4c2e1ac16317e2dfa3e5ccdb32faab6ff Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Sat, 21 Sep 2024 04:00:49 +0000 Subject: [PATCH 18/19] :arrow_up: Update ghcr.io/linuxserver/netbootxyz Docker digest to ca89a75 --- docker/netboot/docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/netboot/docker-compose.yml b/docker/netboot/docker-compose.yml index c113ac0..05b3b2b 100644 --- a/docker/netboot/docker-compose.yml +++ b/docker/netboot/docker-compose.yml @@ -1,7 +1,7 @@ --- services: netbootxyz: - image: ghcr.io/linuxserver/netbootxyz@sha256:16fdc41c85cd9fd3057868e539b9300aaf95f9fc29be1b13bf78334802e0b10f + image: ghcr.io/linuxserver/netbootxyz@sha256:ca89a75a79371b041da7c7b9ff75320831212c1e9dcb7957b2f82914f54d9ce9 container_name: netboot environment: - PUID=1000 From e40f0c7105fafb455b02d5f4cb0b0980ae11ae17 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Fri, 20 Sep 2024 13:00:59 +0000 Subject: [PATCH 19/19] :arrow_up: Update ghcr.io/n8n-io/n8n Docker tag to v1.60.1 --- docker/arm/docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/arm/docker-compose.yml b/docker/arm/docker-compose.yml index d776830..e07d828 100644 --- a/docker/arm/docker-compose.yml +++ b/docker/arm/docker-compose.yml @@ -133,7 +133,7 @@ services: networks: - gitea_main n8n: - image: ghcr.io/n8n-io/n8n:1.60.0 + image: ghcr.io/n8n-io/n8n:1.60.1 container_name: n8n ports: - 5678:5678