Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 1 | heat_template_version: 2015-10-15 |
| 2 | description: ONAP on Kubernetes using OOM |
| 3 | |
| 4 | parameters: |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 5 | docker_proxy: |
| 6 | type: string |
| 7 | |
| 8 | apt_proxy: |
| 9 | type: string |
| 10 | |
Gary Wu | c98156d | 2018-01-18 12:03:26 -0800 | [diff] [blame] | 11 | public_net_id: |
| 12 | type: string |
| 13 | description: The ID of the Public network for floating IP address allocation |
| 14 | |
Gary Wu | 60dd0d8 | 2018-01-18 14:54:47 -0800 | [diff] [blame^] | 15 | public_net_name: |
| 16 | type: string |
| 17 | description: The name of the Public network referred by public_net_id |
| 18 | |
Gary Wu | c98156d | 2018-01-18 12:03:26 -0800 | [diff] [blame] | 19 | dns_list: |
| 20 | type: comma_delimited_list |
| 21 | description: List of External DNS for OAM ONAP network |
| 22 | |
| 23 | oam_network_cidr: |
| 24 | type: string |
| 25 | description: CIDR of the OAM ONAP network |
| 26 | |
| 27 | keystone_url: |
| 28 | type: string |
| 29 | description: URL of OpenStack Keystone |
| 30 | |
| 31 | openstack_tenant_id: |
| 32 | type: string |
| 33 | description: OpenStack tenant ID |
| 34 | |
| 35 | openstack_tenant_name: |
| 36 | type: string |
| 37 | description: OpenStack tenant name (matching with the openstack_tenant_id) |
| 38 | |
| 39 | openstack_username: |
| 40 | type: string |
| 41 | description: OpenStack username |
| 42 | |
| 43 | openstack_api_key: |
| 44 | type: string |
| 45 | description: OpenStack password or API Key |
| 46 | |
| 47 | ubuntu_1404_image: |
| 48 | type: string |
| 49 | description: Name of the Ubuntu 14.04 image |
| 50 | |
Gary Wu | 60dd0d8 | 2018-01-18 14:54:47 -0800 | [diff] [blame^] | 51 | ubuntu_1604_image: |
| 52 | type: string |
| 53 | description: Name of the Ubuntu 16.04 image |
| 54 | |
| 55 | centos_7_image: |
| 56 | type: string |
| 57 | description: the id/name of the CentOS 7 VM imange |
| 58 | |
| 59 | rancher_vm_flavor: |
| 60 | type: string |
| 61 | description: Name of the Ubuntu 14.04 image |
| 62 | |
| 63 | k8s_vm_flavor: |
| 64 | type: string |
| 65 | description: Name of the Ubuntu 14.04 image |
| 66 | |
| 67 | dcae_ip_addr: |
| 68 | type: string |
| 69 | |
| 70 | dns_forwarder: |
| 71 | type: string |
| 72 | description: the forwarder address for setting up ONAP's private DNS server |
| 73 | |
| 74 | |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 75 | resources: |
Gary Wu | c98156d | 2018-01-18 12:03:26 -0800 | [diff] [blame] | 76 | random-str: |
| 77 | type: OS::Heat::RandomString |
| 78 | properties: |
| 79 | length: 4 |
| 80 | |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 81 | rancher_vm: |
| 82 | type: OS::Nova::Server |
| 83 | properties: |
| 84 | name: rancher |
| 85 | image: xenial |
Gary Wu | 60dd0d8 | 2018-01-18 14:54:47 -0800 | [diff] [blame^] | 86 | flavor: { get_param: rancher_vm_flavor } |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 87 | key_name: onap_key |
| 88 | networks: |
| 89 | - network: { get_param: public_net_id } |
| 90 | user_data_format: RAW |
| 91 | user_data: |
| 92 | str_replace: |
| 93 | params: |
| 94 | __docker_proxy__: { get_param: docker_proxy } |
| 95 | __apt_proxy__: { get_param: apt_proxy } |
Gary Wu | 1ff5667 | 2018-01-17 20:51:45 -0800 | [diff] [blame] | 96 | template: |
| 97 | get_file: rancher_vm_entrypoint.sh |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 98 | |
| 99 | k8s_vm: |
| 100 | type: OS::Nova::Server |
| 101 | properties: |
| 102 | name: k8s |
| 103 | image: xenial |
Gary Wu | 60dd0d8 | 2018-01-18 14:54:47 -0800 | [diff] [blame^] | 104 | flavor: { get_param: k8s_vm_flavor } |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 105 | key_name: onap_key |
| 106 | networks: |
| 107 | - network: { get_param: public_net_id } |
| 108 | user_data_format: RAW |
| 109 | user_data: |
| 110 | str_replace: |
| 111 | params: |
| 112 | __docker_proxy__: { get_param: docker_proxy } |
| 113 | __apt_proxy__: { get_param: apt_proxy } |
| 114 | __rancher_ip_addr__: { get_attr: [rancher_vm, first_address] } |
Gary Wu | c98156d | 2018-01-18 12:03:26 -0800 | [diff] [blame] | 115 | __openstack_tenant_id__: { get_param: openstack_tenant_id } |
| 116 | __openstack_tenant_name__: { get_param: openstack_tenant_name } |
| 117 | __openstack_username__: { get_param: openstack_username } |
| 118 | __openstack_api_key__: { get_param : openstack_api_key } |
| 119 | __public_net_id__: { get_param: public_net_id } |
Gary Wu | 60dd0d8 | 2018-01-18 14:54:47 -0800 | [diff] [blame^] | 120 | __public_net_name__: { get_param: public_net_name } |
Gary Wu | c98156d | 2018-01-18 12:03:26 -0800 | [diff] [blame] | 121 | __oam_network_cidr__: { get_param: oam_network_cidr } |
| 122 | __ubuntu_1404_image__: { get_param: ubuntu_1404_image } |
Gary Wu | 60dd0d8 | 2018-01-18 14:54:47 -0800 | [diff] [blame^] | 123 | __ubuntu_1604_image__: { get_param: ubuntu_1604_image } |
| 124 | __centos_7_image__: { get_param: centos_7_image } |
Gary Wu | c98156d | 2018-01-18 12:03:26 -0800 | [diff] [blame] | 125 | __keystone_url__: { get_param: keystone_url } |
Gary Wu | 60dd0d8 | 2018-01-18 14:54:47 -0800 | [diff] [blame^] | 126 | __dcae_ip_addr__: { get_param: dcae_ip_addr } |
| 127 | __dns_list__: { get_param: [dns_list, 0] } |
| 128 | __dns_forwarder__: { get_param: dns_forwarder } |
Gary Wu | 1ff5667 | 2018-01-17 20:51:45 -0800 | [diff] [blame] | 129 | template: |
| 130 | get_file: k8s_vm_entrypoint.sh |