blob: 659135e86960085647c68504cbee8a2c1af115dc [file] [log] [blame]
Matteo Scandolo6288d5a2017-08-08 13:05:26 -07001
2# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16
Andrea Campanellaedfdbca2017-02-01 17:33:47 -080017tosca_definitions_version: tosca_simple_yaml_1_0
18
19# compile this with "m4 veg.m4 > veg.yaml"
20
21# include macros
Scott Baker3b8ceca2017-10-12 11:38:50 -070022
Andrea Campanellaedfdbca2017-02-01 17:33:47 -080023# Note: Tosca derived_from isn't working the way I think it should, it's not
24# inheriting from the parent template. Until we get that figured out, use
25# m4 macros do our inheritance
26
27
28# Service
29
30
31# Subscriber
32
33
34
35
36# end m4 macros
37
38
39
40node_types:
41
42 tosca.nodes.VEGService:
43 description: >
44 CORD: The vEG Service.
45 derived_from: tosca.nodes.Root
46 capabilities:
47 scalable:
48 type: tosca.capabilities.Scalable
49 service:
50 type: tosca.capabilities.xos.Service
51 properties:
52 no-delete:
53 type: boolean
54 default: false
55 description: Do not allow Tosca to delete this object
56 no-create:
57 type: boolean
58 default: false
59 description: Do not allow Tosca to create this object
60 no-update:
61 type: boolean
62 default: false
63 description: Do not allow Tosca to update this object
64 replaces:
65 type: string
66 required: false
67 descrption: Replaces/renames this object
68 kind:
69 type: string
70 default: generic
71 description: Type of service.
72 view_url:
73 type: string
74 required: false
75 description: URL to follow when icon is clicked in the Service Directory.
76 icon_url:
77 type: string
78 required: false
79 description: ICON to display in the Service Directory.
80 enabled:
81 type: boolean
82 default: true
83 published:
84 type: boolean
85 default: true
86 description: If True then display this Service in the Service Directory.
87 public_key:
88 type: string
89 required: false
90 description: Public key to install into Instances to allows Services to SSH into them.
91 private_key_fn:
92 type: string
93 required: false
94 description: Location of private key file
95 versionNumber:
96 type: string
97 required: false
98 description: Version number of Service.
99 backend_network_label:
100 type: string
101 required: false
102 description: Label that matches network used to connect HPC and BBS services.
103 dns_servers:
104 type: string
105 required: false
106 node_label:
107 type: string
108 required: false
109 docker_image_name:
110 type: string
111 required: false
112 description: Name of docker image to pull for vEG
113 docker_insecure_registry:
114 type: boolean
115 required: false
Scott Baker3b8ceca2017-10-12 11:38:50 -0700116 description: If true, then the hostname:port specified in docker_image_name will be treated as an insecure registry
117
118 tosca.nodes.VEGTenant:
119 derived_from: tosca.nodes.Root
120 description: >
121 A VEG Tenant.
122 properties:
123 kind:
124 type: string
125 default: generic
126 description: Kind of tenant
127 service_specific_id:
128 type: string
129 required: false
130 description: Service specific ID opaque to XOS but meaningful to service