diff options
author | Harry Huang <huangxiangyu5@huawei.com> | 2016-11-25 04:08:19 +0800 |
---|---|---|
committer | Harry Huang <huangxiangyu5@huawei.com> | 2016-11-25 04:08:19 +0800 |
commit | cceecd6920ae01d99dafb46d225f69e4546f278b (patch) | |
tree | 2cc1f2a0f3504b453685b6a18e1dd460c6e55dda /deploy/compass_conf/os_metadata | |
parent | 7c6a13e3457ce64d4b840e3816215f2a758ed0bc (diff) |
add compass-core conf/ into compass4nfv
JIRA: COMPASS-507
1.create deploy/compass_conf/ directory to keep local
compass-core conf/ files. build.sh will add it into
compass.iso
2.adjust conf files to support congress
Change-Id: I91dde6f62f2385d1289a5cf9a39eafce945a1bc7
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
Diffstat (limited to 'deploy/compass_conf/os_metadata')
-rwxr-xr-x | deploy/compass_conf/os_metadata/general.conf | 179 |
1 files changed, 179 insertions, 0 deletions
diff --git a/deploy/compass_conf/os_metadata/general.conf b/deploy/compass_conf/os_metadata/general.conf new file mode 100755 index 00000000..e6e6431d --- /dev/null +++ b/deploy/compass_conf/os_metadata/general.conf @@ -0,0 +1,179 @@ +OS = 'general' +METADATA = { + 'general': { + '_self': { + 'required_in_whole_config': True + }, + 'language': { + '_self': { + 'field': 'general', + 'is_required': True, + 'default_value': 'EN', + 'options': ['EN', 'CN'], + 'mapping_to': 'language' + } + }, + 'timezone': { + '_self': { + 'field': 'general', + 'is_required': True, + 'default_value': 'UTC', + 'options': [ + 'America/New_York', 'America/Chicago', + 'America/Los_Angeles', 'Asia/Shanghai', + 'Asia/Tokyo', 'Europe/Paris', + 'Europe/London', 'Europe/Moscow', + 'Europe/Rome', 'Europe/Madrid', + 'Europe/Berlin', 'UTC' + ], + 'mapping_to': 'timezone' + } + }, + 'http_proxy': { + '_self': { + 'field': 'url', + 'default_callback': default_proxy, + 'options_callback': proxy_options, + 'mapping_to': 'http_proxy' + } + }, + 'https_proxy': { + '_self': { + 'field': 'url', + 'default_callback': default_proxy, + 'options_callback': proxy_options, + 'mapping_to': 'https_proxy' + } + }, + 'no_proxy': { + '_self': { + 'field': 'general_list', + 'default_callback': default_noproxy, + 'options_callback': noproxy_options, + 'autofill_callback': autofill_no_proxy, + 'mapping_to': 'no_proxy' + } + }, + 'ntp_server': { + '_self': { + 'is_required': True, + 'field': 'string', + 'default_callback': default_ntp_server, + 'options_callback': ntp_server_options, + 'mapping_to': 'ntp_server' + } + }, + 'dns_servers': { + '_self': { + 'is_required': True, + 'field': 'ip_list', + 'default_callback': default_dns_servers, + 'options_callback': dns_servers_options, + 'mapping_to': 'nameservers' + } + }, + 'domain': { + '_self': { + 'field': 'domain', + 'is_required' : True, + 'default_callback': default_domain, + 'options_callback': domain_options, + } + }, + 'search_path': { + '_self': { + 'field': 'general_list', + 'default_callback': default_search_path, + 'options_callback': search_path_options, + 'mapping_to': 'search_path' + } + }, + 'default_gateway': { + '_self': { + 'is_required': True, + 'field': 'ip', + 'default_callback': default_gateway, + 'mapping_to': 'gateway' + } + }, + 'local_repo': { + '_self': { + 'field': 'url', + 'default_callback': default_localrepo, + 'mapping_to': 'local_repo' + } + }, + 'repo_name': { + '_self': { + 'field': 'string', + 'mapping_to': 'repo_name' + } + }, + 'deploy_type': { + '_self': { + 'field': 'general', + 'is_required': True, + 'default_value': 'baremetal', + 'options': [ + 'baremetal', 'virtual' + ], + 'mapping_to': 'deploy_type' + } + }, + }, + 'server_credentials': { + '_self': { + 'required_in_whole_config': True, + 'mapping_to': 'server_credentials' + }, + 'username': { + '_self': { + 'is_required': True, + 'default_value': 'root', + 'field': 'username', + 'mapping_to': 'username' + } + }, + 'password': { + '_self': { + 'is_required': True, + 'default_value': 'root', + 'field': 'password', + 'mapping_to': 'password' + } + } + }, + 'partition': { + '_self': { + 'required_in_whole_config': True, + 'options': ['/boot', 'swap', '/var', '/home'], + 'mapping_to': 'partition' + }, + '$partition': { + '_self': { + 'validator': is_valid_partition, + 'mapping_to': '$partition' + }, + 'max_size': { + '_self': { + 'field': 'size', + 'mapping_to': 'max_vol_size' + }, + }, + 'percentage': { + '_self': { + 'field': 'percentage', + 'default_value': 10, + 'mapping_to': 'vol_percentage' + } + }, + 'size': { + '_self': { + 'field': 'size', + 'default_value': '1G', + 'mapping_to': 'vol_size' + }, + } + } + } +} |