vFW and vDNS support added to azure-plugin
[multicloud/azure.git] / azure / aria / aria-extension-cloudify / src / aria / tests / resources / service-templates / tosca-simple-1.0 / node-cellar / types / mongodb.yaml
1 # Licensed to the Apache Software Foundation (ASF) under one or more
2 # contributor license agreements.  See the NOTICE file distributed with
3 # this work for additional information regarding copyright ownership.
4 # The ASF licenses this file to You under the Apache License, Version 2.0
5 # (the "License"); you may not use this file except in compliance with
6 # the License.  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 imports:
17   - os.yaml
18
19 node_types:
20
21   mongodb.Server:
22     description: >-
23       MongoDB server application.
24     derived_from: tosca.nodes.DBMS
25     properties:
26       root_password: # @override
27         type: string
28         default: admin
29       port: # @override
30         type: integer
31         default: 27017
32     artifacts:
33       mongodb:
34         description: >-
35           MongoDB application package.
36         type: os.Archive
37         file: https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu1604-3.2.8.tgz
38         deploy_path: /opt/mongodb
39     capabilities:
40       host: # @override
41         type: tosca.capabilities.Container
42         valid_source_types: [ mongodb.Database ]
43
44   mongodb.Database:
45     description: >-
46       MongoDB database.
47
48       Supports importing database data if a mongodb.DatabaseDump is provided.
49     derived_from: tosca.nodes.Database
50     interfaces:
51       Standard:
52         type: tosca.interfaces.node.lifecycle.Standard
53         create:
54           implementation:
55             primary: mongodb/create_and_import_database.sh
56             dependencies:
57               - mongodb/utils/api.sh
58               - utils/os.sh
59     requirements:
60       - host: # @override
61           capability: tosca.capabilities.Container
62           node: mongodb.Server
63           relationship: tosca.relationships.HostedOn
64
65 artifact_types:
66
67   mongodb.DatabaseDump:
68     description: >-
69       Dump of a MongoDB database.
70     derived_from: tosca.artifacts.Root
71     file_ext:
72       - json