mirror of https://github.com/ceph/ceph-ansible.git
common: add the name of the ceph conf file in the play
Just for clarity and because we can we now show the name of the ceph configuration file that is generated. Signed-off-by: Sébastien Han <seb@redhat.com>pull/1153/head
parent
a8ca0da5ad
commit
f0687995e1
|
@ -7,7 +7,7 @@
|
||||||
group: "{{ dir_group }}"
|
group: "{{ dir_group }}"
|
||||||
mode: "{{ dir_mode }}"
|
mode: "{{ dir_mode }}"
|
||||||
|
|
||||||
- name: generate ceph configuration file
|
- name: "generate ceph configuration file: {{ cluster }}.conf"
|
||||||
action: config_template
|
action: config_template
|
||||||
args:
|
args:
|
||||||
src: ceph.conf.j2
|
src: ceph.conf.j2
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
---
|
---
|
||||||
- include: ./checks/check_system.yml
|
- include: ./checks/check_system.yml
|
||||||
|
|
||||||
- include: ./checks/check_mandatory_vars.yml
|
- include: ./checks/check_mandatory_vars.yml
|
||||||
|
|
||||||
# Set ceph_release
|
# Set ceph_release
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
become: false
|
become: false
|
||||||
when: generate_fsid
|
when: generate_fsid
|
||||||
|
|
||||||
- name: generate ceph configuration file
|
- name: "generate {{ cluster }}.conf configuration file"
|
||||||
action: config_template
|
action: config_template
|
||||||
args:
|
args:
|
||||||
src: "{{ playbook_dir }}/roles/ceph-common/templates/ceph.conf.j2"
|
src: "{{ playbook_dir }}/roles/ceph-common/templates/ceph.conf.j2"
|
||||||
|
|
|
@ -1,36 +0,0 @@
|
||||||
# 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': []
|
|
||||||
},
|
|
||||||
}
|
|
|
@ -1,7 +1,6 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
ceph_stable: True
|
ceph_stable: True
|
||||||
cluster: test
|
|
||||||
public_network: "192.168.11.0/24"
|
public_network: "192.168.11.0/24"
|
||||||
cluster_network: "192.168.12.0/24"
|
cluster_network: "192.168.12.0/24"
|
||||||
journal_size: 100
|
journal_size: 100
|
||||||
|
|
|
@ -1,19 +0,0 @@
|
||||||
# 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': [],
|
|
||||||
},
|
|
||||||
}
|
|
|
@ -1,7 +1,6 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
ceph_stable: True
|
ceph_stable: True
|
||||||
cluster: test
|
|
||||||
public_network: "192.168.13.0/24"
|
public_network: "192.168.13.0/24"
|
||||||
cluster_network: "192.168.14.0/24"
|
cluster_network: "192.168.14.0/24"
|
||||||
journal_size: 100
|
journal_size: 100
|
||||||
|
|
|
@ -1,19 +0,0 @@
|
||||||
# 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': [],
|
|
||||||
},
|
|
||||||
}
|
|
|
@ -1,36 +0,0 @@
|
||||||
# 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': []
|
|
||||||
},
|
|
||||||
}
|
|
|
@ -1,20 +0,0 @@
|
||||||
# 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'],
|
|
||||||
},
|
|
||||||
}
|
|
|
@ -1,36 +0,0 @@
|
||||||
# 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': []
|
|
||||||
},
|
|
||||||
}
|
|
|
@ -1,24 +0,0 @@
|
||||||
# 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']
|
|
||||||
},
|
|
||||||
}
|
|
Loading…
Reference in New Issue