File tree Expand file tree Collapse file tree 4 files changed +20
-1
lines changed Expand file tree Collapse file tree 4 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ All Ceph hosts must be in the `ceph` group.
28
28
29
29
* General
30
30
* ` cephadm_ceph_release ` : Ceph release to deploy (default: quincy)
31
+ * ` cephadm_container_engine ` : Whether to use docker_login or podman_login (default: docker)
31
32
* ` cephadm_fsid ` : FSID to use for cluster (default: empty - cephadm will generate FSID)
32
33
* ` cephadm_recreate ` : If existing cluster should be destroyed and recreated (default: false)
33
34
* ` cephadm_custom_repos ` : If enabled - the role won't define yum/apt repositories. If using Ubuntu 22.04 this should be set to true. (default: false)
Original file line number Diff line number Diff line change @@ -44,3 +44,5 @@ cephadm_osd_spec: []
44
44
cephadm_radosgw_services : []
45
45
# Ingress
46
46
cephadm_ingress_services : []
47
+ # Container Engine
48
+ cephadm_container_engine : " docker"
Original file line number Diff line number Diff line change 5
5
- name : Set cephadm_bootstrap
6
6
set_fact :
7
7
cephadm_bootstrap : " {{ ansible_facts.services | dict2items | selectattr('key', 'match', '^ceph.*') | list | length == 0 }}"
8
+
9
+ - name : Check if specified container engine is installed
10
+ command : " which {{ cephadm_container_engine }}"
11
+ changed_when : false
Original file line number Diff line number Diff line change 13
13
state : present
14
14
become : true
15
15
16
+ - name : Log into Docker registry
17
+ containers.podman.podman_login :
18
+ registry : " {{ cephadm_registry_url }}"
19
+ username : " {{ cephadm_registry_username }}"
20
+ password : " {{ cephadm_registry_password }}"
21
+ when :
22
+ - cephadm_registry_username | length > 0
23
+ - cephadm_container_engine == 'podman'
24
+ become : true
25
+
16
26
- name : Log into Docker registry
17
27
docker_login :
18
28
registry : " {{ cephadm_registry_url }}"
19
29
username : " {{ cephadm_registry_username }}"
20
30
password : " {{ cephadm_registry_password }}"
21
- when : cephadm_registry_username | length > 0
31
+ when :
32
+ - cephadm_registry_username | length > 0
33
+ - cephadm_container_engine == 'docker'
22
34
become : true
You can’t perform that action at this time.
0 commit comments