Skip to content

Commit 37330ec

Browse files
authored
Merge pull request #103 from stackhpc/ingress-images
Support custom ingress images
2 parents 7eb21cf + d337555 commit 37330ec

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

roles/cephadm/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ All Ceph hosts must be in the `ceph` group.
3939
* `cephadm_enable_firewalld`: If enabled - firewalld will be installed and rules will be applied (default: false)
4040
* `cephadm_enable_monitoring`: If enabled - cephadm monitoring stack will be deployed i.e. prometheus/node-exporters/grafana (default: false)
4141
* `cephadm_image`: If set - cephadm will use this image
42+
* `cephadm_haproxy_image`: If set - cephadm will use this image for HAProxy in the ingress service
43+
* `cephadm_keepalived_image`: If set - cephadm will use this image for Keepalived in the ingress service
4244
* `cephadm_install_ceph_cli`: If enabled - ceph cli will be installed on the hosts (default: false)
4345
* `cephadm_ssh_public_key`: Location where ssh public key used by cephadm will be saved (default: /etc/ceph/cephadm.pub)
4446
* `cephadm_ssh_private_key`: Location where ssh private key used by cephadm will be saved (default: /etc/ceph/cephadm.id)

roles/cephadm/defaults/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ cephadm_recreate: false
88
# Packages
99
cephadm_custom_repos: false
1010
cephadm_package_update: false
11-
# Image
11+
# Images
1212
cephadm_image: ""
13+
cephadm_haproxy_image: ""
14+
cephadm_keepalived_image: ""
1315
# Registry
1416
cephadm_registry_url: ""
1517
cephadm_registry_username: ""

roles/cephadm/tasks/bootstrap.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,20 @@
4848
become: true
4949
changed_when: true
5050

51+
- name: Set HAProxy image
52+
command:
53+
cmd: "cephadm shell -- ceph config set mgr mgr/cephadm/container_image_haproxy {{ cephadm_haproxy_image }}"
54+
when: cephadm_haproxy_image | length > 0
55+
become: true
56+
changed_when: true
57+
58+
- name: Set Keepalived image
59+
command:
60+
cmd: "cephadm shell -- ceph config set mgr mgr/cephadm/container_image_keepalived {{ cephadm_keepalived_image }}"
61+
when: cephadm_keepalived_image | length > 0
62+
become: true
63+
changed_when: true
64+
5165
- name: Get cluster fsid
5266
command:
5367
cmd: "cephadm shell -- ceph fsid"

0 commit comments

Comments
 (0)