group: "{{ dir_group }}"
mode: "{{ dir_mode }}"
-- name: generate ceph configuration file
+- name: "generate ceph configuration file: {{ cluster }}.conf"
action: config_template
args:
src: ceph.conf.j2
---
- include: ./checks/check_system.yml
-
- include: ./checks/check_mandatory_vars.yml
# Set ceph_release
become: false
when: generate_fsid
-- name: generate ceph configuration file
+- name: "generate {{ cluster }}.conf configuration file"
action: config_template
args:
src: "{{ playbook_dir }}/roles/ceph-common/templates/ceph.conf.j2"
+++ /dev/null
-# Basic information about ceph and its configuration
-ceph = {
- 'releases': ['infernalis', 'jewel'],
- 'cluster_name': 'test',
- 'subnet': '192.168.1',
-}
-
-# remote nodes to test, with anything specific to them that might be useful for
-# tests to get. Each one of these can get requested as a py.test fixture to
-# validate information.
-nodes = {
- 'mon0': {
- 'username': 'vagrant',
- 'components': ['conf_tests']
- },
- 'mon1': {
- 'username': 'vagrant',
- 'components': ['conf_tests']
- },
- 'mon2': {
- 'username': 'vagrant',
- 'components': ['conf_tests']
- },
- 'osd0': {
- 'username': 'vagrant',
- 'components': []
- },
- 'mds0': {
- 'username': 'vagrant',
- 'components': []
- },
- 'rgw0': {
- 'username': 'vagrant',
- 'components': []
- },
-}
---
ceph_stable: True
-cluster: test
public_network: "192.168.11.0/24"
cluster_network: "192.168.12.0/24"
journal_size: 100
+++ /dev/null
-# Basic information about ceph and its configuration
-ceph = {
- 'releases': ['infernalis', 'jewel'],
- 'cluster_name': 'test'
-}
-
-# remote nodes to test, with anything specific to them that might be useful for
-# tests to get. Each one of these can get requested as a py.test fixture to
-# validate information.
-nodes = {
- 'mon0': {
- 'username': 'vagrant',
- 'components': ['mon', 'mon_initial_members']
- },
- 'osd0': {
- 'username': 'vagrant',
- 'components': [],
- },
-}
---
ceph_stable: True
-cluster: test
public_network: "192.168.13.0/24"
cluster_network: "192.168.14.0/24"
journal_size: 100
+++ /dev/null
-# Basic information about ceph and its configuration
-ceph = {
- 'releases': ['infernalis', 'jewel'],
- 'cluster_name': 'test'
-}
-
-# remote nodes to test, with anything specific to them that might be useful for
-# tests to get. Each one of these can get requested as a py.test fixture to
-# validate information.
-nodes = {
- 'mon0': {
- 'username': 'vagrant',
- 'components': ['mon', 'mon_initial_members']
- },
- 'osd0': {
- 'username': 'vagrant',
- 'components': [],
- },
-}
+++ /dev/null
-# Basic information about ceph and its configuration
-ceph = {
- 'releases': ['infernalis', 'jewel'],
- 'cluster_name': 'test',
- 'subnet': '192.168.15',
-}
-
-# remote nodes to test, with anything specific to them that might be useful for
-# tests to get. Each one of these can get requested as a py.test fixture to
-# validate information.
-nodes = {
- 'mon0': {
- 'username': 'vagrant',
- 'components': ['conf_tests']
- },
- 'mon1': {
- 'username': 'vagrant',
- 'components': ['conf_tests']
- },
- 'mon2': {
- 'username': 'vagrant',
- 'components': ['conf_tests']
- },
- 'osd0': {
- 'username': 'vagrant',
- 'components': []
- },
- 'mds0': {
- 'username': 'vagrant',
- 'components': []
- },
- 'rgw0': {
- 'username': 'vagrant',
- 'components': []
- },
-}
+++ /dev/null
-# Basic information about ceph and its configuration
-ceph = {
- 'releases': ['infernalis', 'jewel'],
- 'cluster_name': 'test'
-}
-
-# remote nodes to test, with anything specific to them that might be useful for
-# tests to get. Each one of these can get requested as a py.test fixture to
-# validate information.
-nodes = {
- 'mon0': {
- 'username': 'vagrant',
- 'components': ['mon', 'mon_initial_members']
- },
- 'osd0': {
- 'username': 'vagrant',
- 'components': ['collocated_journals'],
- 'devices': ['/dev/sda', '/dev/sdb'],
- },
-}
+++ /dev/null
-# Basic information about ceph and its configuration
-ceph = {
- 'releases': ['infernalis', 'jewel'],
- 'cluster_name': 'test',
- 'subnet': '192.168.5',
-}
-
-# remote nodes to test, with anything specific to them that might be useful for
-# tests to get. Each one of these can get requested as a py.test fixture to
-# validate information.
-nodes = {
- 'mon0': {
- 'username': 'vagrant',
- 'components': ['conf_tests']
- },
- 'mon1': {
- 'username': 'vagrant',
- 'components': ['conf_tests']
- },
- 'mon2': {
- 'username': 'vagrant',
- 'components': ['conf_tests']
- },
- 'osd0': {
- 'username': 'vagrant',
- 'components': []
- },
- 'mds0': {
- 'username': 'vagrant',
- 'components': []
- },
- 'rgw0': {
- 'username': 'vagrant',
- 'components': []
- },
-}
+++ /dev/null
-# This is the most basic tests that can be executed remotely. It will trigger
-# a series of checks for paths, permissions and flags. Whatever is not
-# dependant on particular component of ceph should go here (for example,
-# nothing related to just OSDs)
-
-# Basic information about ceph and its configuration
-ceph = {
- 'releases': ['jewel', 'infernalis'],
- 'cluster_name': 'test'
-}
-
-# remote nodes to test, with anything specific to them that might be useful for
-# tests to get. Each one of these can get requested as a py.test fixture to
-# validate information.
-nodes = {
- 'mon0': {
- 'username': 'vagrant',
- 'components': ['mon']
- },
- 'osd0': {
- 'username': 'vagrant',
- 'components': ['osd']
- },
-}