Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preload stable container images #32

Merged
merged 1 commit into from
Dec 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions playbooks/diskimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
required_packages_extra:
- linux-generic-hwe-22.04
- python3-netaddr
- skopeo

roles:
- osism.commons.operator
Expand Down Expand Up @@ -53,3 +54,50 @@

roles:
- role: osism.commons.docker_compose

- name: Apply role docker
hosts: localhost
connection: local
gather_facts: true

vars:
images:
- osism:0.20231129.2 # 5.3.0
- osism:0.20230902.0 # 6.0.2
- ceph-ansible:5.3.0
- ceph-ansible:6.0.2
- kolla-ansible:5.3.0
- kolla-ansible:6.0.2
- osism-ansible:5.3.0
- osism-ansible:6.0.2

images_ceph:
- ceph-daemon:17.2.6

images_openstack:
- keystone:22.0.1.20230902 # 5.3.0
- keystone:23.0.1.20230919 # 6.0.2

tasks:
- name: Create images directory
ansible.builtin.file:
path: /home/dragon/images
owner: dragon
group: dragon
state: directory
mode: 0755

- name: Copy stable manager images
ansible.builtin.command:
cmd: "skopeo copy docker://osism.harbor.regio.digital/osism/{{ item }} dir:/home/dragon/images/{{ item }}"
loop: "{{ images }}"

- name: Copy stable ceph images
ansible.builtin.command:
cmd: "skopeo copy docker://osism.harbor.regio.digital/osism/{{ item }} dir:/home/dragon/images/{{ item }}"
loop: "{{ images_ceph }}"

- name: Copy stable openstack images
ansible.builtin.command:
cmd: "skopeo copy docker://osism.harbor.regio.digital/kolla/release/{{ item }} dir:/home/dragon/images/{{ item }}"
loop: "{{ images_openstack }}"