attic changes
This commit is contained in:
parent
7bbcfa28af
commit
33f12242ba
3 changed files with 19 additions and 12 deletions
|
@ -3,9 +3,15 @@
|
||||||
hosts: ulna
|
hosts: ulna
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
- name: Install nix libraries
|
||||||
|
ansible.builtin.apt:
|
||||||
|
name: nix-bin
|
||||||
|
state: present
|
||||||
|
become: true
|
||||||
|
|
||||||
- name: Unarchive
|
- name: Unarchive
|
||||||
ansible.builtin.unarchive:
|
ansible.builtin.unarchive:
|
||||||
src: attic.tar.xz
|
src: files/attic.tar.xz
|
||||||
dest: /usr/local
|
dest: /usr/local
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
|
@ -30,7 +36,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
- name: Restart systemd
|
- name: Restart service
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
state: restarted
|
state: restarted
|
||||||
name: attic
|
name: attic
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
- WOODPECKER_GITEA_URL=https://{{ gitea_host }}
|
- WOODPECKER_GITEA_URL=https://{{ gitea_host }}
|
||||||
- WOODPECKER_GITEA_CLIENT={{ woodpecker_client_id }}
|
- WOODPECKER_GITEA_CLIENT={{ woodpecker_client_id }}
|
||||||
- WOODPECKER_GITEA_SECRET={{ woodpecker_client_secret }}
|
- WOODPECKER_GITEA_SECRET={{ woodpecker_client_secret }}
|
||||||
|
- WOODPECKER_ADMIN=nikos
|
||||||
|
|
||||||
woodpecker-agent:
|
woodpecker-agent:
|
||||||
image: woodpeckerci/woodpecker-agent:next
|
image: woodpeckerci/woodpecker-agent:next
|
||||||
|
|
|
@ -58,33 +58,33 @@ url = "sqlite:///usr/local/share/attic/server.db"
|
||||||
# Storage type
|
# Storage type
|
||||||
#
|
#
|
||||||
# Can be "local" or "s3".
|
# Can be "local" or "s3".
|
||||||
type = "s3"
|
type = "local"
|
||||||
|
|
||||||
# ## Local storage
|
## Local storage
|
||||||
|
|
||||||
# The directory to store all files under
|
# 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)
|
# ## S3 Storage (set type to "s3" and uncomment below)
|
||||||
|
|
||||||
# The AWS region
|
# The AWS region
|
||||||
region = "auto"
|
# region = "auto"
|
||||||
|
|
||||||
# The name of the bucket
|
# The name of the bucket
|
||||||
bucket = "{{ s3_bucket }}"
|
# bucket = "{{ s3_bucket }}"
|
||||||
|
|
||||||
# Custom S3 endpoint
|
# Custom S3 endpoint
|
||||||
#
|
#
|
||||||
# Set this if you are using an S3-compatible object storage (e.g., Minio).
|
# Set this if you are using an S3-compatible object storage (e.g., Minio).
|
||||||
endpoint = "{{ s3_endpoint }}"
|
# endpoint = "{{ s3_endpoint }}"
|
||||||
|
|
||||||
# Credentials
|
# Credentials
|
||||||
#
|
#
|
||||||
# If unset, the credentials are read from the `AWS_ACCESS_KEY_ID` and
|
# If unset, the credentials are read from the `AWS_ACCESS_KEY_ID` and
|
||||||
# `AWS_SECRET_ACCESS_KEY` environment variables.
|
# `AWS_SECRET_ACCESS_KEY` environment variables.
|
||||||
[storage.credentials]
|
# [storage.credentials]
|
||||||
access_key_id = "{{ s3_access_key_id }}"
|
# access_key_id = "{{ s3_access_key_id }}"
|
||||||
secret_access_key = "{{ s3_secret_access_key }}"
|
# secret_access_key = "{{ s3_secret_access_key }}"
|
||||||
|
|
||||||
# Data chunking
|
# Data chunking
|
||||||
#
|
#
|
||||||
|
@ -127,7 +127,7 @@ type = "zstd"
|
||||||
#
|
#
|
||||||
# If zero, automatic garbage collection is disabled, but
|
# If zero, automatic garbage collection is disabled, but
|
||||||
# it can still be run manually with `atticd --mode garbage-collector-once`.
|
# it can still be run manually with `atticd --mode garbage-collector-once`.
|
||||||
interval = "12 hours"
|
interval = "0"
|
||||||
|
|
||||||
# Default retention period
|
# Default retention period
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue