Azure-plugin not sending REST calls to Azure cloud
[multicloud/azure.git] / azure / aria / aria-extension-cloudify / src / aria / examples / tosca-simple-1.0 / use-cases / container-1 / container-1.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0
2
3 description: >-
4   TOSCA simple profile with wordpress, web server and mysql on the same server.
5
6 metadata:
7   template_name: compute-1
8   template_author: TOSCA Simple Profile in YAML
9   template_version: '1.0'
10
11 imports:
12   - ../non-normative-types.yaml
13
14 # Repositories to retrieve code artifacts from
15
16 repositories:
17
18   docker_hub: https://registry.hub.docker.com/
19
20 topology_template:
21
22   inputs:
23     wp_host_port:
24       type: integer
25       description: The host port that maps to port 80 of the WordPress container.
26     db_root_pwd:
27       type: string
28       description: Root password for MySQL.
29
30   node_templates:
31
32     # The MYSQL container based on official MySQL image in Docker hub
33
34     mysql_container:
35       type: tosca.nodes.Container.Application.Docker
36       # ARIA NOTE: moved to a requirement in the node type
37       #capabilities:
38       #  # This is a capability that would mimic the Docker â€“link feature
39       #  database_link: tosca.capabilities.Docker.Link
40       artifacts:
41         my_image:
42           file: mysql
43           type: tosca.artifacts.Deployment.Image.Container.Docker
44           repository: docker_hub
45       interfaces:
46         Standard:
47           create:
48             implementation: my_image
49             inputs:
50               db_root_password: { get_input: db_root_pwd }
51
52     # The WordPress container based on official WordPress image in Docker hub
53
54     wordpress_container:
55       type: tosca.nodes.Container.Application.Docker
56       requirements:
57         - database_link: mysql_container
58       artifacts:
59         my_image:
60           file: wordpress
61           type: tosca.artifacts.Deployment.Image.Container.Docker
62           repository: docker_hub
63       interfaces:
64         Standard:
65           create:
66             implementation: my_image
67             inputs:
68               host_port: { get_input: wp_host_port }