183
186
DEFINE_spaceseplist = _wrapper(gflags.DEFINE_spaceseplist)
184
187
DEFINE_multistring = _wrapper(gflags.DEFINE_multistring)
185
188
DEFINE_multi_int = _wrapper(gflags.DEFINE_multi_int)
189
DEFINE_flag = _wrapper(gflags.DEFINE_flag)
192
HelpFlag = gflags.HelpFlag
193
HelpshortFlag = gflags.HelpshortFlag
194
HelpXMLFlag = gflags.HelpXMLFlag
188
197
def DECLARE(name, module_string, flag_values=FLAGS):
203
212
DEFINE_string('connection_type', 'libvirt', 'libvirt, xenapi or fake')
204
213
DEFINE_string('aws_access_key_id', 'admin', 'AWS Access ID')
205
214
DEFINE_string('aws_secret_access_key', 'admin', 'AWS Access Key')
215
DEFINE_integer('glance_port', 9292, 'glance port')
216
DEFINE_string('glance_host', utils.get_my_ip(), 'glance host')
206
217
DEFINE_integer('s3_port', 3333, 's3 port')
207
DEFINE_string('s3_host', '127.0.0.1', 's3 host')
218
DEFINE_string('s3_host', utils.get_my_ip(), 's3 host (for infrastructure)')
219
DEFINE_string('s3_dmz', utils.get_my_ip(), 's3 dmz ip (for instances)')
208
220
DEFINE_string('compute_topic', 'compute', 'the topic compute nodes listen on')
209
221
DEFINE_string('scheduler_topic', 'scheduler',
210
222
'the topic scheduler nodes listen on')
223
235
DEFINE_integer('rabbit_retry_interval', 10, 'rabbit connection retry interval')
224
236
DEFINE_integer('rabbit_max_retries', 12, 'rabbit connection attempts')
225
237
DEFINE_string('control_exchange', 'nova', 'the main exchange to connect to')
226
DEFINE_string('ec2_url', 'http://127.0.0.1:8773/services/Cloud',
227
'Url to ec2 api server')
238
DEFINE_string('ec2_prefix', 'http', 'prefix for ec2')
239
DEFINE_string('cc_host', utils.get_my_ip(), 'ip of api server')
240
DEFINE_string('cc_dmz', utils.get_my_ip(), 'internal ip of api server')
241
DEFINE_integer('cc_port', 8773, 'cloud controller port')
242
DEFINE_string('ec2_suffix', '/services/Cloud', 'suffix for ec2')
244
DEFINE_string('default_project', 'openstack', 'default project for openstack')
229
245
DEFINE_string('default_image', 'ami-11111',
230
246
'default image to use, testing only')
231
DEFINE_string('default_kernel', 'aki-11111',
232
'default kernel to use, testing only')
233
DEFINE_string('default_ramdisk', 'ari-11111',
234
'default ramdisk to use, testing only')
235
247
DEFINE_string('default_instance_type', 'm1.small',
236
248
'default instance type to use, testing only')
249
DEFINE_string('null_kernel', 'nokernel',
250
'kernel image that indicates not to use a kernel,'
251
' but to use a raw disk image instead')
238
DEFINE_string('vpn_image_id', 'ami-CLOUDPIPE', 'AMI for cloudpipe vpn server')
253
DEFINE_string('vpn_image_id', 'ami-cloudpipe', 'AMI for cloudpipe vpn server')
239
254
DEFINE_string('vpn_key_suffix',
241
'Suffix to add to project name for vpn key')
256
'Suffix to add to project name for vpn key and secgroups')
243
258
DEFINE_integer('auth_token_ttl', 3600, 'Seconds for auth tokens to linger')