Carl Li 138f045411 Seperate chef installer as a plugin
Bug: 1506700

This is the first change list of a series of changes that will eventually
convert chef installer as a plugin.
It moves chef installer related configure files to the plugins/chef_installer/
util.py's load_configs is modified to read not only the ordinary configs but
also the configs in each of plugins directory.

Change-Id: I285c59556f4abd89255608e15117e6d012ecfb01
2015-10-15 20:41:00 -07:00

85 lines
2.4 KiB
Plaintext
Executable File

ADAPTER = 'ceph'
METADATA = {
'ceph_config': {
'_self': {
'required_in_whole_config': True
},
'global_config': {
'_self': {
'required_in_whole_config': True,
'mapping_to': 'global'
},
'osd_pool_pg_num': {
'_self': {
'is_required': True,
'field': 'general',
'default_value': '1024',
'mapping_to': 'osd_pool_pg_num'
}
},
'osd_pool_pgp_num': {
'_self': {
'is_required': True,
'field': 'general',
'default_value': '1024',
'mapping_to': 'osd_pool_pgp_num'
}
},
'osd_pool_size': {
'_self': {
'is_required': True,
'field': 'general',
'default_value': '3',
'mapping_to': 'osd_pool_size'
}
}
},
'osd_config': {
'_self': {
'mapping_to': 'osd_config'
},
'journal_size': {
'_self': {
'field': 'general',
'default_value': '10000',
'mapping_to': 'journal_size'
}
},
'op_threads': {
'_self': {
'field': 'integer',
'default_value': 10,
'mapping_to': 'op_threads'
}
}
},
"osd_devices": {
'_self': {
'mapping_to': 'osd_devices'
},
'$device': {
'_self': {
'validator': is_valid_partition
},
'journal': {
'_self': {
'field': 'general',
'mapping_to': 'journal'
}
}
}
},
'network_mapping': {
'_self': {
'required_in_whole_config': True
},
'$interface_type': {
'_self': {
'is_required': True,
'field': 'general'
}
}
}
}
}