Skip to content

Commit a875ce5

Browse files
authored
Add support for specifying image (#40)
1 parent b74ec59 commit a875ce5

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

roles/cephadm/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ All Ceph hosts must be in the `ceph` group.
3636
* `cephadm_enable_dashboard`: If enabled - dashboard service on MGR will be enabled (default: False)
3737
* `cephadm_enable_firewalld`: If enabled - firewalld will be installed and rules will be applied (default: False)
3838
* `cephadm_enable_monitoring`: If enabled - cephadm monitoring stack will be deployed i.e. prometheus/node-exporters/grafana (default: False)
39+
* `cephadm_image`: If set - cephadm will use this image
3940
* `cephadm_install_ceph_cli`: If enabled - ceph cli will be installed on the hosts (default: False)
4041
* `cephadm_ssh_public_key`: Location where ssh public key used by cephadm will be saved (default: /etc/ceph/cephadm.pub)
4142
* `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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ cephadm_recreate: False
88
# Packages
99
cephadm_custom_repos: False
1010
cephadm_package_update: False
11+
# Image
12+
cephadm_image: ""
1113
# Registry
1214
cephadm_registry_url: ""
1315
cephadm_registry_username: ""

roles/cephadm/tasks/bootstrap.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@
99
firewalld: "{{ '--skip-firewalld' if not cephadm_enable_firewalld | bool else '' }}"
1010
command:
1111
cmd: >
12-
cephadm bootstrap
12+
cephadm
13+
{% if cephadm_image | length > 0 %}
14+
--image={{ cephadm_image }}
15+
{% endif %}
16+
bootstrap
1317
{{ monitoring_stack }}
1418
{{ dashboard }}
1519
{{ firewalld }}

0 commit comments

Comments
 (0)