mirror of https://github.com/ceph/ceph-ansible.git
cephadm: install cephadm from repository
Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit ec1dce2125
)
debug-ci
parent
31c5acf52b
commit
4e6ae8b8c0
|
@ -102,24 +102,32 @@
|
||||||
tasks_from: registry.yml
|
tasks_from: registry.yml
|
||||||
when: ceph_docker_registry_auth | bool
|
when: ceph_docker_registry_auth | bool
|
||||||
|
|
||||||
|
- name: configure repository for installing cephadm
|
||||||
|
vars:
|
||||||
|
ceph_origin: repository
|
||||||
|
ceph_repository: community
|
||||||
|
block:
|
||||||
|
- name: validate repository variables
|
||||||
|
import_role:
|
||||||
|
name: ceph-validate
|
||||||
|
tasks_from: check_repository.yml
|
||||||
|
|
||||||
|
- name: configure repository
|
||||||
|
import_role:
|
||||||
|
name: ceph-common
|
||||||
|
tasks_from: "configure_repository.yml"
|
||||||
|
|
||||||
- name: install cephadm requirements
|
- name: install cephadm requirements
|
||||||
package:
|
package:
|
||||||
name: ['python3', 'lvm2']
|
name: ['python3', 'lvm2']
|
||||||
register: result
|
register: result
|
||||||
until: result is succeeded
|
until: result is succeeded
|
||||||
|
|
||||||
- name: create a cephadm container
|
- name: install cephadm
|
||||||
command: "{{ container_binary }} create --name cephadm {{ ceph_docker_registry }}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }}"
|
package:
|
||||||
changed_when: false
|
name: cephadm
|
||||||
|
register: result
|
||||||
- name: cp the cephadm cli file
|
until: result is succeeded
|
||||||
command: "{{ container_binary }} cp cephadm:/usr/sbin/cephadm /usr/sbin/cephadm"
|
|
||||||
args:
|
|
||||||
creates: /usr/sbin/cephadm
|
|
||||||
|
|
||||||
- name: remove the cephadm container
|
|
||||||
command: "{{ container_binary }} rm cephadm"
|
|
||||||
changed_when: false
|
|
||||||
|
|
||||||
- name: set_fact cephadm_cmd
|
- name: set_fact cephadm_cmd
|
||||||
set_fact:
|
set_fact:
|
||||||
|
|
|
@ -12,8 +12,8 @@
|
||||||
|
|
||||||
- name: validate ceph_repository_community
|
- name: validate ceph_repository_community
|
||||||
fail:
|
fail:
|
||||||
msg: "ceph_stable_release must be 'quincy'"
|
msg: "ceph_stable_release must be 'pacific'"
|
||||||
when:
|
when:
|
||||||
- ceph_origin == 'repository'
|
- ceph_origin == 'repository'
|
||||||
- ceph_repository == 'community'
|
- ceph_repository == 'community'
|
||||||
- ceph_stable_release not in ['quincy']
|
- ceph_stable_release not in ['pacific']
|
||||||
|
|
Loading…
Reference in New Issue