此内容没有您所选择的语言版本。
Appendix A. Sample environment file: Creating a Ceph cluster
The following custom environment file uses many of the options described throughout Chapter 2, Preparing overcloud nodes. This sample does not include any commented-out options. For an overview on environment files, see Environment Files (from the Advanced Overcloud Customization guide).
/home/stack/templates/storage-config.yaml
- 1
- The
parameter_defaultssection modifies the default values for parameters in all templates. Most of the entries listed here are described in Chapter 4, Customizing the Storage service. - 2
- If you are deploying the Ceph Object Gateway, you can use Ceph Object Storage (
ceph-rgw) as a backup target. To configure this, setCinderBackupBackendtoswift. See Section 4.2, “Enabling the Ceph Object Gateway” for details. - 3
- The
CephAnsibleDisksConfigsection defines a custom disk layout for deployments using BlueStore and Ceph 3.2 or later. For deployments using FileStore and Ceph 3.1 or earlier, modifyCephAnsibleDisksConfigusing the examples in described in Section 5.2, “Mapping the Ceph Storage node disk layout”.Warningosd_scenario: lvmis used in the example to default new deployments tobluestoreas configured byceph-volume; this is only available with ceph-ansible 3.2 or later and Ceph Luminous or later. The parameters to supportfilestorewith ceph-ansible 3.2 are backwards compatible. Therefore, in existing FileStore deployments, do not simply change theosd_objectstoreorosd_scenarioparameters. - 4
- For each role, the
*Countparameters assign a number of nodes while theOvercloud*Flavorparameters assign a flavor. For example,ControllerCount: 3assigns 3 nodes to the Controller role, andOvercloudControlFlavor: controlsets each of those roles to use thecontrolflavor. See Section 7.1, “Assigning nodes and flavors to roles” for details.NoteThe
CephMonCount,CephMdsCount,OvercloudCephMonFlavor, andOvercloudCephMdsFlavorparameters (along with theceph-monandceph-mdsflavors) will only be valid if you created a customCephMONandCephMdsrole, as described in Chapter 3, Deploying Other Ceph Services on dedicated nodes. - 5
NeutronNetworkType:sets the network type that theneutronservice should use (in this case,vxlan).