Scott Baker | 619de67 | 2016-06-20 12:49:38 -0700 | [diff] [blame] | 1 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 2 | |
| 3 | # compile this with "m4 exampleservice.m4 > exampleservice.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 | |
| 23 | node_types: |
| 24 | tosca.nodes.ExampleService: |
| 25 | derived_from: tosca.nodes.Root |
| 26 | description: > |
| 27 | Example 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. |
| 81 | service_message: |
| 82 | type: string |
| 83 | required: false |
| 84 | |
| 85 | tosca.nodes.ExampleTenant: |
| 86 | derived_from: tosca.nodes.Root |
| 87 | description: > |
| 88 | A Tenant of the example service |
| 89 | properties: |
| 90 | kind: |
| 91 | type: string |
| 92 | default: generic |
| 93 | description: Kind of tenant |
| 94 | service_specific_id: |
| 95 | type: string |
| 96 | required: false |
| 97 | description: Service specific ID opaque to XOS but meaningful to service |
| 98 | tenant_message: |
| 99 | type: string |
| 100 | required: false |
| 101 | |