forked from ceph/ceph-cm-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cephlab.yml
42 lines (33 loc) · 1.17 KB
/
cephlab.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
# ensure the node is setup to be managed by ansible
# eventually, most of the things here will be done by
# cobbler / downburst / cloud-init.
- import_playbook: ansible_managed.yml
# if this node is in the teuthology group, configure it
- import_playbook: teuthology.yml
- hosts: testnodes
tasks:
- set_fact:
ran_from_cephlab_playbook: true
# if this node is in the testnode group, configure it
- import_playbook: testnodes.yml
# a number of different groups get docker/podman installed and configured
- import_playbook: container-host.yml
# if this node is in the pcp group, configure it
#- import_playbook: pcp.yml
# if this node is in the cobbler group, configure it
- import_playbook: cobbler.yml
# if this node is in the paddles group, configure it
- import_playbook: paddles.yml
# if this node is in the pulpito group, configure it
- import_playbook: pulpito.yml
# Touch a file to indicate we are done. This is something chef did;
# teuthology.task.internal.vm_setup() expects it.
- hosts: testnodes
become: true
tasks:
- name: Touch /ceph-qa-ready
file:
path: /ceph-qa-ready
state: touch
when: ran_from_cephlab_playbook|bool