OPTS = [
cfg.StrOpt('type',
default=os.environ.get('INSTALLER_TYPE', 'local'),
- choices=['local', 'apex'],
+ choices=['local', 'apex', 'daisy', 'fuel'],
help='the type of installer',
required=True),
cfg.StrOpt('ip',
default=os.environ.get('INSTALLER_IP', '127.0.0.1'),
help='the ip of installer'),
- cfg.StrOpt('username',
- default='root',
- help='the user name for login installer server',
- required=True),
+ cfg.StrOpt('key_file',
+ default=os.environ.get('SSH_KEY', None),
+ help='the key for user to login installer server',
+ required=False),
]
_installer_name_class_mapping = {
'local': 'doctor_tests.installer.local.LocalInstaller',
- 'apex': 'doctor_tests.installer.apex.ApexInstaller'
+ 'apex': 'doctor_tests.installer.apex.ApexInstaller',
+ 'daisy': 'doctor_tests.installer.daisy.DaisyInstaller',
+ 'fuel': 'doctor_tests.installer.mcp.McpInstaller'
}