Skip to content

Commit 44c7fe0

Browse files
committed
Support Ceph ingress images stored in Pulp
This requires stackhpc.cephadm 1.14.0.
1 parent 744d6c5 commit 44c7fe0

File tree

4 files changed

+43
-1
lines changed

4 files changed

+43
-1
lines changed

etc/kayobe/ansible/requirements.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
collections:
33
- name: stackhpc.cephadm
4-
version: 1.13.2
4+
version: 1.14.0
55
- name: stackhpc.pulp
66
version: 0.4.1
77
- name: stackhpc.hashicorp

etc/kayobe/cephadm.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,18 @@ cephadm_image_tag: "{{ 'v17.2.6' if os_release == 'jammy' else 'v16.2.11' }}"
1717
# Ceph custom repo workaround for Ubuntu Jammy as there are no official ceph repos for jammy.
1818
cephadm_custom_repos: "{{ ansible_facts['distribution_release'] == 'jammy' }}"
1919

20+
# HAProxy container image.
21+
cephadm_haproxy_image: "{{ stackhpc_docker_registry if stackhpc_sync_ceph_images | bool else 'quay.io' }}/ceph/haproxy:{{ cephadm_haproxy_image_tag }}"
22+
23+
# HAProxy container image tag.
24+
cephadm_haproxy_image_tag: "2.3"
25+
26+
# Keepalived container image.
27+
cephadm_keepalived_image: "{{ stackhpc_docker_registry if stackhpc_sync_ceph_images | bool else 'quay.io' }}/ceph/keepalived:{{ cephadm_keepalived_image_tag }}"
28+
29+
# Keepalived container image tag.
30+
cephadm_keepalived_image_tag: "2.1.5"
31+
2032
# Ceph container image registry URL.
2133
cephadm_registry_url: "{{ stackhpc_docker_registry }}"
2234

etc/kayobe/pulp.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,20 @@ stackhpc_pulp_repository_container_repos_ceph:
728728
state: present
729729
include_tags: "{{ cephadm_image_tag }}"
730730
required: "{{ stackhpc_sync_ceph_images | bool }}"
731+
- name: "ceph/haproxy"
732+
url: "https://quay.io"
733+
policy: on_demand
734+
proxy_url: "{{ pulp_proxy_url }}"
735+
state: present
736+
include_tags: "{{ cephadm_haproxy_image_tag }}"
737+
required: "{{ stackhpc_sync_ceph_images | bool }}"
738+
- name: "ceph/keepalived"
739+
url: "https://quay.io"
740+
policy: on_demand
741+
proxy_url: "{{ pulp_proxy_url }}"
742+
state: present
743+
include_tags: "{{ cephadm_keepalived_image_tag }}"
744+
required: "{{ stackhpc_sync_ceph_images | bool }}"
731745

732746
# List of Ceph container image distributions.
733747
stackhpc_pulp_distribution_container_ceph:
@@ -736,6 +750,16 @@ stackhpc_pulp_distribution_container_ceph:
736750
base_path: ceph/ceph
737751
state: present
738752
required: "{{ stackhpc_sync_ceph_images | bool }}"
753+
- name: ceph/haproxy
754+
repository: ceph/haproxy
755+
base_path: ceph/haproxy
756+
state: present
757+
required: "{{ stackhpc_sync_ceph_images | bool }}"
758+
- name: ceph/keepalived
759+
repository: ceph/keepalived
760+
base_path: ceph/keepalived
761+
state: present
762+
required: "{{ stackhpc_sync_ceph_images | bool }}"
739763

740764
# Whether to sync HashiCorp container images.
741765
stackhpc_sync_hashicorp_images: false
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
features:
3+
- |
4+
Adds support for using Ceph HAProxy and Keepalived images stored in Pulp.
5+
This is enabled automatically if ``stackhpc_sync_ceph_images`` is set to
6+
``true``.

0 commit comments

Comments
 (0)