system-config/playbooks/roles/reprepro/tasks/debian-ceph.yaml
Ian Wienand 3eceba5749 reprepro: convert to Ansible
This converts the reprepro configuration from our existing puppet to
Ansible.

This takes a more direct approach; the templating done by the puppet
version started simple but over the years grew several different
options to handle various use-cases.  This means you not only had to
understand the rather obscure reprepro configuration, but then *also*
figure out how to translate that from our puppet template layers.

Here the configuration files are kept directly (they were copied from
the existing mirror-update.openstack.org) and deployed with some light
wrapper tasks in reprepro/tasks/utils which avoids most duplication.

Note the initial cron jobs are left disabled so we can run some manual
testing before letting it go automatically.

Change-Id: I96a9ff1efbf51c4164621028b7a3a1e2e1077d5c
2020-10-19 14:06:57 +11:00

30 lines
767 B
YAML

- name: Deploy Debian Ceph key
include_tasks: utils/keys.yaml
vars:
_keys:
- { key_id: 'E84AC2C0460F3994', file: 'debian-ceph.asc' }
- name: Copy Debian Ceph Octopus
include_tasks: utils/copy-config.yaml
vars:
_dir: 'debian-ceph-octopus'
- name: Install Debian Ceph Octopus cron job
include_tasks: utils/cron.yaml
vars:
_string_name: 'Debian Ceph Octopus'
_dir: 'debian-ceph-octopus'
_volume: 'mirror.deb-octopus'
- name: Copy Debian Ceph Nautilus
include_tasks: utils/copy-config.yaml
vars:
_dir: 'debian-ceph-nautilus'
- name: Install Debian Ceph Nautilus cron job
include_tasks: utils/cron.yaml
vars:
_string_name: 'Debian Ceph Nautilus'
_dir: 'debian-ceph-nautilus'
_volume: 'mirror.deb-nautilus'