attic changes

This commit is contained in:
Nikos Papadakis 2023-11-27 19:02:47 +02:00
parent 7bbcfa28af
commit 33f12242ba
Signed by untrusted user who does not match committer: nikos
GPG key ID: 78871F9905ADFF02
3 changed files with 19 additions and 12 deletions

View file

@ -3,9 +3,15 @@
hosts: ulna
tasks:
- name: Install nix libraries
ansible.builtin.apt:
name: nix-bin
state: present
become: true
- name: Unarchive
ansible.builtin.unarchive:
src: attic.tar.xz
src: files/attic.tar.xz
dest: /usr/local
become: true
@ -30,7 +36,7 @@
state: directory
become: true
- name: Restart systemd
- name: Restart service
ansible.builtin.systemd:
state: restarted
name: attic

View file

@ -30,6 +30,7 @@
- WOODPECKER_GITEA_URL=https://{{ gitea_host }}
- WOODPECKER_GITEA_CLIENT={{ woodpecker_client_id }}
- WOODPECKER_GITEA_SECRET={{ woodpecker_client_secret }}
- WOODPECKER_ADMIN=nikos
woodpecker-agent:
image: woodpeckerci/woodpecker-agent:next

View file

@ -58,33 +58,33 @@ url = "sqlite:///usr/local/share/attic/server.db"
# Storage type
#
# Can be "local" or "s3".
type = "s3"
type = "local"
# ## Local storage
## Local storage
# The directory to store all files under
# path = "/home/nikos/.local/share/attic/storage"
path = "/usr/local/share/attic/storage"
# ## S3 Storage (set type to "s3" and uncomment below)
# The AWS region
region = "auto"
# region = "auto"
# The name of the bucket
bucket = "{{ s3_bucket }}"
# bucket = "{{ s3_bucket }}"
# Custom S3 endpoint
#
# Set this if you are using an S3-compatible object storage (e.g., Minio).
endpoint = "{{ s3_endpoint }}"
# endpoint = "{{ s3_endpoint }}"
# Credentials
#
# If unset, the credentials are read from the `AWS_ACCESS_KEY_ID` and
# `AWS_SECRET_ACCESS_KEY` environment variables.
[storage.credentials]
access_key_id = "{{ s3_access_key_id }}"
secret_access_key = "{{ s3_secret_access_key }}"
# [storage.credentials]
# access_key_id = "{{ s3_access_key_id }}"
# secret_access_key = "{{ s3_secret_access_key }}"
# Data chunking
#
@ -127,7 +127,7 @@ type = "zstd"
#
# If zero, automatic garbage collection is disabled, but
# it can still be run manually with `atticd --mode garbage-collector-once`.
interval = "12 hours"
interval = "0"
# Default retention period
#