Skip to content
Snippets Groups Projects
Name Last commit Last update
defaults
meta
tasks
vars
LICENSE.txt
README.md

Sutty Container

Ansible role for starting Docker containers at Sutty's infrastructure.

Since each node runs a single container-service, every container is addressed at container-name.inventory-hostname.

Example Playbook

This container should be available at borg.anarres.sutty.nl and borg.athshe.sutty.nl after deployment.

---
- hosts:
  - "anarres.sutty.nl"
  - "athshe.sutty.nl"
  strategy: free
  remote_user: root
  tasks:
  - name: "borg container"
    include_role:
      name: "sutty-container"
    vars:
      name: "borg"
      version: "3.16.2"
      registry: "custom.regist.ry"
      state: "started"
      network: "sutty"
      volumes:
      - "/:/srv/data"
      - "/root/.ssh:/root/.ssh"
      env:
        BORG_PASSPHRASE: "{{ vault.backups }}"
        DEST: "{{ inventory_hostname }}"
        SSH_ALIAS: "backup_storage"
        SSH_SERVER: "backup.stora.ge"
        SSH_USER: "sutty"
        SSH_PORT: "222"
        KEEP: "15"

License

MIT-Antifa