blob: 9eb62aebb50a8e8bd50e8c1ebfb3f748df03a4e2 [file] [log] [blame]
Yunpeng Zhang9b335072017-08-02 20:56:32 -04001tosca_definitions_version: tosca_simple_yaml_1_0
2
3# compile this with "m4 vsm.m4 > vsm.yaml"
4
5# include macros
6# Note: Tosca derived_from isn't working the way I think it should, it's not
7# inheriting from the parent template. Until we get that figured out, use
8# m4 macros do our inheritance
9
10
11# Service
12
13
14# Subscriber
15
16
17
18
19# end m4 macros
20
21
22
23node_types:
24 tosca.nodes.VSMService:
25 derived_from: tosca.nodes.Root
26 description: >
27 VSM Service
28 capabilities:
29 scalable:
30 type: tosca.capabilities.Scalable
31 service:
32 type: tosca.capabilities.xos.Service
33 properties:
34 no-delete:
35 type: boolean
36 default: false
37 description: Do not allow Tosca to delete this object
38 no-create:
39 type: boolean
40 default: false
41 description: Do not allow Tosca to create this object
42 no-update:
43 type: boolean
44 default: false
45 description: Do not allow Tosca to update this object
46 replaces:
47 type: string
48 required: false
49 descrption: Replaces/renames this object
50 kind:
51 type: string
52 default: generic
53 description: Type of service.
54 view_url:
55 type: string
56 required: false
57 description: URL to follow when icon is clicked in the Service Directory.
58 icon_url:
59 type: string
60 required: false
61 description: ICON to display in the Service Directory.
62 enabled:
63 type: boolean
64 default: true
65 published:
66 type: boolean
67 default: true
68 description: If True then display this Service in the Service Directory.
69 public_key:
70 type: string
71 required: false
72 description: Public key to install into Instances to allows Services to SSH into them.
73 private_key_fn:
74 type: string
75 required: false
76 description: Location of private key file
77 versionNumber:
78 type: string
79 required: false
80 description: Version number of Service.
Omar Abdelkader16895f72017-08-03 14:56:35 -070081
82 tosca.nodes.VSMTenant:
83 derived_from: tosca.nodes.Root
84 description: >
85 VSM Tenant
86 properties:
87 kind:
88 type: string
89 default: generic
90 description: Kind of tenant
91 service_specific_id:
92 type: string
93 required: false
94 description: Service specific ID opaque to XOS but meaningful to service
Omar Abdelkadercc7e45a2017-09-06 20:02:47 -050095
96 tosca.nodes.VSMVendor:
97 derived_from: tosca.nodes.Root
98 description: >
99 VSM Vendor
Omar Abdelkadercc7e45a2017-09-06 20:02:47 -0500100 properties:
Omar Abdelkader31f10872017-09-15 12:34:57 -0500101 no-delete:
102 type: boolean
103 default: false
104 description: Do not allow Tosca to delete this object
105 no-create:
106 type: boolean
107 default: false
108 description: Do not allow Tosca to create this object
109 no-update:
110 type: boolean
111 default: false
112 description: Do not allow Tosca to update this object
113 replaces:
114 type: string
115 required: false
116 descrption: Replaces/renames this object
Omar Abdelkadercc7e45a2017-09-06 20:02:47 -0500117 name:
118 type: string
119 required: true
120
121 tosca.relationships.VendorOfTenant:
122 derived_from: tosca.relationships.Root
123 valid_target_types: [ tosca.capabilities.xos.VSMTenant ]
124