diff --git a/install_attic.yml b/install_attic.yml index 00be1f0..c2c45a8 100644 --- a/install_attic.yml +++ b/install_attic.yml @@ -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 diff --git a/install_woodpecker.yml b/install_woodpecker.yml index bc37550..7e743ee 100644 --- a/install_woodpecker.yml +++ b/install_woodpecker.yml @@ -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 diff --git a/templates/attic/attic-server.toml.j2 b/templates/attic/attic-server.toml.j2 index c661866..34b255c 100644 --- a/templates/attic/attic-server.toml.j2 +++ b/templates/attic/attic-server.toml.j2 @@ -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 #