Scott Baker | 62c7eaf | 2018-05-22 15:59:26 -0700 | [diff] [blame] | 1 | option app_label = "openstack"; |
| 2 | option name = "openstack"; |
| 3 | |
| 4 | message OpenStackService (Service){ |
| 5 | option verbose_name = "OpenStack Service"; |
Scott Baker | 96d74f7 | 2019-01-24 10:57:09 -0800 | [diff] [blame] | 6 | option description = "Service that manages OpenStack compute resources"; |
Scott Baker | 62c7eaf | 2018-05-22 15:59:26 -0700 | [diff] [blame] | 7 | |
Scott Baker | 96d74f7 | 2019-01-24 10:57:09 -0800 | [diff] [blame] | 8 | optional string auth_url = 1 [ |
| 9 | help_text = "Auth url for the OpenStack controller", |
| 10 | blank = True, |
| 11 | content_type = "stripped", |
| 12 | db_index = False, |
| 13 | max_length = 200, |
| 14 | null = True]; |
| 15 | optional string admin_user = 2 [ |
| 16 | help_text = "Username of an admin user at this OpenStack", |
| 17 | max_length = 200, |
| 18 | blank = True, |
| 19 | content_type = "stripped", |
| 20 | db_index = False, |
| 21 | null = True]; |
| 22 | optional string admin_password = 3 [ |
| 23 | help_text = "Password of theadmin user at this OpenStack", |
| 24 | blank = True, |
| 25 | content_type = "stripped", |
| 26 | db_index = False, |
| 27 | max_length = 200, |
| 28 | null = True]; |
| 29 | optional string admin_tenant = 4 [ |
| 30 | help_text = "Name of the tenant the admin user belongs to", |
| 31 | blank = True, |
| 32 | content_type = "stripped", |
| 33 | db_index = False, |
| 34 | max_length = 200, |
| 35 | null = True]; |
Scott Baker | 62c7eaf | 2018-05-22 15:59:26 -0700 | [diff] [blame] | 36 | } |
| 37 | |
| 38 | message OpenStackServiceInstance (ComputeServiceInstance){ |
| 39 | option verbose_name = "OpenStack Service Instance"; |
Scott Baker | 96d74f7 | 2019-01-24 10:57:09 -0800 | [diff] [blame] | 40 | option description = "A ComputeServiceInstance in OpenStack, usually in the form of a virtual machine"; |
Scott Baker | 62c7eaf | 2018-05-22 15:59:26 -0700 | [diff] [blame] | 41 | |
Scott Baker | 96d74f7 | 2019-01-24 10:57:09 -0800 | [diff] [blame] | 42 | optional manytoone flavor->Flavor:openstackinstance = 1:1003 [ |
| 43 | help_text = "Flavor of this instance", |
| 44 | blank = True, |
| 45 | db_index = True, |
| 46 | null = True]; |
| 47 | optional manytoone node->Node:openstackinstances = 2:1005 [ |
| 48 | help_text = "Node on which to deploy this instance", |
| 49 | blank = True, |
| 50 | db_index = True, |
| 51 | null = True]; |
Scott Baker | 62c7eaf | 2018-05-22 15:59:26 -0700 | [diff] [blame] | 52 | |
Scott Baker | 96d74f7 | 2019-01-24 10:57:09 -0800 | [diff] [blame] | 53 | optional string admin_password = 3 [ |
| 54 | help_text = "Admin password for instance", |
| 55 | blank = True, |
| 56 | content_type = "stripped", |
| 57 | db_index = False, |
| 58 | max_length = 200, |
| 59 | null = True]; |
Scott Baker | 62c7eaf | 2018-05-22 15:59:26 -0700 | [diff] [blame] | 60 | } |
| 61 | |
| 62 | |