This repository has been archived on 2026-11-16. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
openstack-deployment/ansible/playbooks/ceph_create_db_partition.yml
T
2020-08-12 00:02:27 +03:00

44 lines
930 B
YAML

---
- hosts: bonchvisors
remote_user: cephadmin
become: true
become_user: root
become_method: sudo
vars:
disk:
- sdb
- sdc
- sdd
tasks:
# - name: list variables
# debug:
# msg: "{{ item }}"
# loop: "{{ disk }}"
- name: wipe SSD
shell: wipefs -a /dev/sde
args:
executable: /bin/bash
- name: SSD to gpt
shell: parted -s /dev/sde mklabel gpt
args:
executable: /bin/bash
- name: create ssd {{disk[0]}} db partitions
shell: parted /dev/sde mkpart ceph-db-{{disk[0]}} ext2 0% 20%
args:
executable: /bin/bash
- name: create ssd {{disk[1]}} db partitions
shell: parted /dev/sde mkpart ceph-db-{{disk[1]}} ext2 20% 40%
args:
executable: /bin/bash
- name: create ssd {{disk[2]}} db partitions
shell: parted /dev/sde mkpart ceph-db-{{disk[2]}} ext2 40% 60%
args:
executable: /bin/bash