You can have the following configuration priorities in the Git repository:
The following text is an example of a Git repository that you can create:
.
|-- cluster.yaml
|`-- glance-api.conf
|-- nodes
|`-- node_1.domain.local.yaml
|-- roles
|`-- compute.yaml
|`-- controller.yaml
|`-- primaray-controller.yaml
The example above illustrates what types of files can be stored in the repository. However, you can modify this structure as needed.
The configuration files you create must use Puppet’s resource types to describe the required configuration. For more information about the parameters and attributes that you can specify in the configuration files, see Puppet Resource Type Reference.
The following table describes the Git repository structure.
File | Description | Example |
---|---|---|
cluster.yaml |
Describes cluster-level configurations in a form of a dictionary. | configuration:
nova_config:
'DEFAULT/nova_test':
value: cluster_param
'DEFAULT/another_param':
value: another_param_value
|
Example: |
Describes node priority configurations. | configuration:
nova_config:
'DEFAULT/debug':
value: True
'DEFAULT/nova_cluster_override':
value: node_param
package:
'mc':
ensure: absent
exec:
'some_test':
command: '/bin/touch /tmp/test'
unless: '/bin/test -f /tmp/test'
path: '/bin:/sbin'
|
Example: |
Describes configuration for all related node roles. To view the list of node roles in this environment, run the fuel node command. |
configuration:
nova_config:
'DEFAULT/nova_test':
value: controller_param
|
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.