Skip to content

Commit 2df3e71

Browse files
committed
Add custom playbooks for Cephadm
Adds playbooks that use the stackhpc.cephadm collection to deploy and configure Ceph. The cephadm-gather-keys.yml playbook gathers configuration files and keys for a deployed Ceph cluster, and generates the necessary files for Kolla Ansible, adding them to kayobe-config.
1 parent e8c8113 commit 2df3e71

File tree

7 files changed

+64
-0
lines changed

7 files changed

+64
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
- name: Define Ceph CRUSH rules
3+
gather_facts: false
4+
hosts: mons
5+
become: true
6+
tags:
7+
- cephadm
8+
- cephadm-crush-rules
9+
tasks:
10+
- import_role:
11+
name: stackhpc.cephadm.crush_rules

etc/kayobe/ansible/cephadm-deploy.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
- name: Deploy Ceph using Cephadm
3+
any_errors_fatal: true
4+
gather_facts: true
5+
hosts: ceph
6+
tags:
7+
- cephadm
8+
- cephadm-deploy
9+
tasks:
10+
- import_role:
11+
name: stackhpc.cephadm.cephadm
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
- name: Define Ceph EC profiles
3+
gather_facts: false
4+
hosts: mons
5+
become: true
6+
tags:
7+
- cephadm
8+
- cephadm-ec-profiles
9+
tasks:
10+
- import_role:
11+
name: stackhpc.cephadm.ec_profiles

etc/kayobe/ansible/cephadm-keys.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
- name: Generate Ceph keys
3+
gather_facts: false
4+
hosts: mons
5+
become: true
6+
tags:
7+
- cephadm
8+
- cephadm-keys
9+
tasks:
10+
- import_role:
11+
name: stackhpc.cephadm.keys

etc/kayobe/ansible/cephadm-pools.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
- name: Define Ceph pools
3+
gather_facts: false
4+
hosts: mons
5+
become: true
6+
tags:
7+
- cephadm
8+
- cephadm-keys
9+
tasks:
10+
- import_role:
11+
name: stackhpc.cephadm.pools

etc/kayobe/ansible/cephadm.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
# Deploy Ceph via Cephadm. Create EC profiles, CRUSH rules, pools and keys.
3+
- import_playbook: cephadm-deploy.yml
4+
- import_playbook: cephadm-ec-profiles.yml
5+
- import_playbook: cephadm-crush-rules.yml
6+
- import_playbook: cephadm-pools.yml
7+
- import_playbook: cephadm-keys.yml

etc/kayobe/ansible/requirements.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
22
collections:
3+
- name: stackhpc.cephadm
4+
version: 1.7.0
35
- name: stackhpc.pulp
46
version: 0.3.0
57
- name: pulp.squeezer

0 commit comments

Comments
 (0)