1
0

custom remote repo working

This commit is contained in:
michael 2024-04-23 02:14:39 +12:00
parent a6eb508cf0
commit 2cc78654fe
4 changed files with 15 additions and 7 deletions

View File

@ -1,6 +1,7 @@
nginx_sites: nginx_sites:
- name: repo.balsillie.house - name: repo.balsillie.house
type: site type: site
autoindex: 'on'
root: /var/www/aur root: /var/www/aur
- name: unifi.balsillie.house - name: unifi.balsillie.house
type: proxy type: proxy

View File

@ -138,7 +138,7 @@
- --sign - --sign
- --key - --key
- "{{ aur_repo_key_thumbprint }}" - "{{ aur_repo_key_thumbprint }}"
- repo.db.tar - home.db.tar
- aurutils-{{ aurutils_pkgver }}-{{ aurutils_pkgrel }}-{{ aurutils_arch }}.pkg.tar - aurutils-{{ aurutils_pkgver }}-{{ aurutils_pkgrel }}-{{ aurutils_arch }}.pkg.tar
chdir: "{{ aur_repo_dir }}/packages" chdir: "{{ aur_repo_dir }}/packages"
changed_when: true changed_when: true
@ -179,7 +179,7 @@
ansible.builtin.blockinfile: ansible.builtin.blockinfile:
path: /etc/pacman.conf path: /etc/pacman.conf
block: | block: |
[custom] [home]
SigLevel = Required TrustedOnly SigLevel = Required TrustedOnly
Server = file://{{ aur_repo_dir }}/packages Server = file://{{ aur_repo_dir }}/packages
create: false create: false
@ -203,8 +203,5 @@
- name: Link the aur repo to the web root - name: Link the aur repo to the web root
ansible.builtin.file: ansible.builtin.file:
src: "{{ aur_repo_dir }}/packages" src: "{{ aur_repo_dir }}/packages"
dest: /var/www{{ aur_repo_dir }} path: /var/www{{ aur_repo_dir }}
state: link state: link
owner: http
group: http
mode: "0775"

View File

@ -12,6 +12,7 @@ server {
ssl_certificate /etc/letsencrypt/live/{{ item.name }}/fullchain.pem; ssl_certificate /etc/letsencrypt/live/{{ item.name }}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/{{ item.name }}/privkey.pem; ssl_certificate_key /etc/letsencrypt/live/{{ item.name }}/privkey.pem;
index index.html; index index.html;
autoindex {{ item.autoindex | default('off') }};
root {{ item.root }}; root {{ item.root }};
location / { location / {
} }

9
todo/aur_repo.todo Normal file
View File

@ -0,0 +1,9 @@
add aur-builder sudoers entry
aur-builder ALL = (root) NOPASSWD: /usr/bin/pacman, /usr/bin/pacsync
add aur sync command
sudo -u aur-builder aur sync --no-view -CnrS sonarr
enable aur sync service/timer