Add storage_box playbook and fix HCLOUD_TOKEN extraction
- Add storage_box role: generates SSH key pair, creates Hetzner Storage Box with known password, installs public key via install-ssh-key, writes storagebox.yml to stack config. Idempotent: skips key install if SSH key auth already works. - Add deploy.yml: one-shot playbook chaining provision → dns → storage_box → bootstrap → site for fresh deployments - Fix .envrc HCLOUD_TOKEN extraction stripping surrounding quotes from vault YAML values - Add restic_storagebox_password to vault template and setup.sh prompt - Add sshpass to README prerequisites Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
203bd5bf6e
commit
db70b4ba06
13 changed files with 218 additions and 18 deletions
|
|
@ -2,6 +2,11 @@ restic_backend_type: "sftp"
|
|||
restic_password: ""
|
||||
# restic_repo: set explicitly when restic_backend_type is not 'sftp'
|
||||
|
||||
# SFTP backend: path to the SSH private key on the controller and on the target server
|
||||
# Both are written by storage_box.yml — no need to set these manually
|
||||
restic_local_key_path: "{{ lookup('env', 'LINDERHOF_DIR') }}/restic_backup"
|
||||
restic_ssh_key: /root/.ssh/restic_backup
|
||||
|
||||
restic_backup_paths: >-
|
||||
{{
|
||||
['/etc/letsencrypt', '/srv/caddy']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue