-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
11,175 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
|
||
################################ | ||
NCM\::Component\::Ceph\::Octopus | ||
################################ | ||
|
||
|
||
**** | ||
NAME | ||
**** | ||
|
||
|
||
ncm-ceph: Configuration module for CEPH | ||
|
||
|
||
*********** | ||
DESCRIPTION | ||
*********** | ||
|
||
|
||
Configuration module for CEPH | ||
This is the module for Ceph versions > 15.2.0 and schema version v2 with orchestrator | ||
|
||
|
||
******************** | ||
IMPLEMENTED FEATURES | ||
******************** | ||
|
||
|
||
Features that are implemented at this moment: | ||
|
||
|
||
* Generating orchestrator yaml files and management of existing cluster (bootstrap not implemented) | ||
|
||
|
||
|
||
* Configuration file generation | ||
|
||
|
||
|
||
* All daemons should already be adopted for cephadm, and ceph orchestrator should be configured. This is either part of the adoption process https://docs.ceph.com/en/latest/cephadm/adoption/ | ||
or by bootstraping a new cluster (see initial creation) | ||
|
||
|
||
|
||
|
||
**************** | ||
INITIAL CREATION | ||
**************** | ||
|
||
|
||
- The schema details are annotated in the schema file. | ||
|
||
- Example pan files are included in the examples folder and also in the test folders. | ||
|
||
To set up the initial cluster, some steps should be taken: | ||
|
||
|
||
1. The mgr(s) should have passwordless ssh access to all the hosts of the cluster e.g. by distributing the public key(s) of the ceph-deploy host(s) over the cluster hosts | ||
(As described in the cephadm documentation: | ||
https://docs.ceph.com/en/latest/cephadm/install/#add-hosts-to-the-cluster) | ||
|
||
|
||
|
||
- 2. Run the bootstrap command: See https://docs.ceph.com/en/latest/cephadm/install/#bootstrap-a-new-cluster | ||
|
||
|
||
|
||
- 3. You'll need the generated pubkey and admin keyring to distribute over cluster | ||
|
||
|
||
|
||
- 4. Run the component to start the configuration of the new cluster | ||
|
||
|
||
|
||
|
||
********* | ||
RESOURCES | ||
********* | ||
|
||
|
||
`/software/components/ceph` | ||
=========================== | ||
|
||
|
||
The configuration information for the component. Each field should | ||
be described in this section. | ||
|
||
|
||
|
||
************ | ||
DEPENDENCIES | ||
************ | ||
|
||
|
||
The component is tested with Ceph version 15.2.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
######################################## | ||
NCM\::Component\::ceph\::v2 - schema-cfg | ||
######################################## | ||
|
||
Types | ||
----- | ||
|
||
- **/software/components/ceph/ceph_minimal_config_global** | ||
- Description: ceph minimal config parameters with centralised config db this should be the only thing in ceph.conf generate an fsid with uuidgen | ||
- */software/components/ceph/ceph_minimal_config_global/fsid* | ||
- Required | ||
- Type: type_uuid | ||
- */software/components/ceph/ceph_minimal_config_global/mon_host* | ||
- Required | ||
- Type: type_fqdn | ||
- */software/components/ceph/ceph_minimal_config_global/mon_initial_members* | ||
- Optional | ||
- Type: type_shorthostname | ||
- **/software/components/ceph/ceph_minimal_config** | ||
- */software/components/ceph/ceph_minimal_config/global* | ||
- Required | ||
- Type: ceph_minimal_config_global | ||
- **/software/components/ceph/ceph_global_config** | ||
- Description: ceph cluster-wide config parameters | ||
- */software/components/ceph/ceph_global_config/auth_client_required* | ||
- Required | ||
- Type: choice | ||
- Default value: cephx | ||
- */software/components/ceph/ceph_global_config/auth_cluster_required* | ||
- Required | ||
- Type: choice | ||
- Default value: cephx | ||
- */software/components/ceph/ceph_global_config/auth_service_required* | ||
- Required | ||
- Type: choice | ||
- Default value: cephx | ||
- */software/components/ceph/ceph_global_config/mon_cluster_log_to_syslog* | ||
- Required | ||
- Type: boolean | ||
- Default value: true | ||
- */software/components/ceph/ceph_global_config/mon_max_pg_per_osd* | ||
- Optional | ||
- Type: long | ||
- */software/components/ceph/ceph_global_config/mon_osd_down_out_subtree_limit* | ||
- Optional | ||
- Type: string | ||
- Default value: rack | ||
- */software/components/ceph/ceph_global_config/mon_osd_min_down_reporters* | ||
- Optional | ||
- Type: long | ||
- Range: 0.. | ||
- */software/components/ceph/ceph_global_config/mon_osd_min_down_reports* | ||
- Optional | ||
- Type: long | ||
- Range: 0.. | ||
- */software/components/ceph/ceph_global_config/mon_osd_warn_op_age* | ||
- Optional | ||
- Type: long | ||
- Default value: 32 | ||
- */software/components/ceph/ceph_global_config/mon_osd_err_op_age_ratio* | ||
- Optional | ||
- Type: long | ||
- Default value: 128 | ||
- */software/components/ceph/ceph_global_config/ms_type* | ||
- Optional | ||
- Type: choice | ||
- */software/components/ceph/ceph_global_config/op_queue* | ||
- Optional | ||
- Type: choice | ||
- */software/components/ceph/ceph_global_config/osd_journal_size* | ||
- Optional | ||
- Type: long | ||
- Range: 0.. | ||
- */software/components/ceph/ceph_global_config/osd_max_pg_per_osd_hard_ratio* | ||
- Optional | ||
- Type: long | ||
- */software/components/ceph/ceph_global_config/osd_pool_default_min_size* | ||
- Optional | ||
- Type: long | ||
- Range: 0.. | ||
- */software/components/ceph/ceph_global_config/osd_pool_default_pg_num* | ||
- Optional | ||
- Type: long | ||
- Range: 0.. | ||
- */software/components/ceph/ceph_global_config/osd_pool_default_pgp_num* | ||
- Optional | ||
- Type: long | ||
- Range: 0.. | ||
- */software/components/ceph/ceph_global_config/osd_pool_default_size* | ||
- Optional | ||
- Type: long | ||
- Range: 0.. | ||
- */software/components/ceph/ceph_global_config/public_network* | ||
- Required | ||
- Type: type_network_name | ||
- */software/components/ceph/ceph_global_config/cluster_network* | ||
- Optional | ||
- Type: type_network_name | ||
- **/software/components/ceph/ceph_global_config_file** | ||
- **/software/components/ceph/ceph_configfile** | ||
- */software/components/ceph/ceph_configfile/global* | ||
- Required | ||
- Type: ceph_global_config_file | ||
- */software/components/ceph/ceph_configfile/mds* | ||
- Optional | ||
- Type: ceph_mds_config | ||
- */software/components/ceph/ceph_configfile/osd* | ||
- Optional | ||
- Type: ceph_osd_config | ||
- */software/components/ceph/ceph_configfile/mon* | ||
- Optional | ||
- Type: ceph_mon_config | ||
- */software/components/ceph/ceph_configfile/rgw* | ||
- Optional | ||
- Type: ceph_rgw_config | ||
- **/software/components/ceph/ceph_configdb** | ||
- Description: config to be put in the ceph config centralised db' | ||
- */software/components/ceph/ceph_configdb/global* | ||
- Required | ||
- Type: ceph_global_config | ||
- */software/components/ceph/ceph_configdb/mds* | ||
- Optional | ||
- Type: ceph_mds_config | ||
- */software/components/ceph/ceph_configdb/osd* | ||
- Optional | ||
- Type: ceph_osd_config | ||
- */software/components/ceph/ceph_configdb/mon* | ||
- Optional | ||
- Type: ceph_mon_config | ||
- */software/components/ceph/ceph_configdb/mgr* | ||
- Optional | ||
- Type: ceph_mgr_config | ||
- */software/components/ceph/ceph_configdb/rgw* | ||
- Optional | ||
- Type: ceph_rgw_config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
######################################## | ||
NCM\::Component\::ceph\::v2 - schema-mgr | ||
######################################## | ||
|
||
Types | ||
----- | ||
|
||
- **/software/components/ceph/ceph_mgr_module** | ||
- Description: configuration options for a ceph mgr module like dashboard,prometheus,.. | ||
- **/software/components/ceph/ceph_mgr_config** | ||
- Description: configuration options for a ceph mgr daemon | ||
- */software/components/ceph/ceph_mgr_config/modules* | ||
- Optional | ||
- Type: ceph_mgr_module |
Oops, something went wrong.