[SDC-29] rebase continue work to align source
[sdc.git] / test-apis-ci / src / test / resources / CI / tests / getResourceArtifactFileContentTest / mysql.yml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0_wd03
2 description: MySQL RDBMS installation on a specific mounted volume path.
3 template_name: mysql-getResourceArtifactFileContentTest
4 template_version: 1.1.1-SNAPSHOT
5 template_author: FastConnect
6
7 imports:
8   - "tosca-normative-types-root:1.0.0.wd03-SNAPSHOT"
9   - "tosca-normative-types-compute:1.0.0.wd03-SNAPSHOT"
10   - "tosca-normative-types-database:1.0.0.wd03-SNAPSHOT"
11   - "tosca-normative-types-DBMS:1.0.0.wd03-SNAPSHOT"
12
13 node_types:
14   alien.nodes.Mysql-getResourceArtifactFileContentTest:
15     derived_from: tosca.nodes.Database
16     description: >
17       A node to install MySQL v5.5 database with data
18       on a specific attached volume.
19     capabilities:
20       host:
21         type: alien.capabilities.MysqlDatabase
22         properties:
23           valid_node_types: [ tosca.nodes.WebApplication ]
24     requirements:
25       - host: tosca.nodes.Compute
26         type: tosca.relationships.HostedOn
27     tags:
28       icon: /images/mysql.png
29     properties:
30       db_port:
31         type: integer
32         default: 3306
33         description: The port on which the underlying database service will listen to data.
34       db_name:
35         type: string
36         required: true
37         default: wordpress
38         description: The logical name of the database.
39       db_user:
40         type: string
41         default: pass
42         description: The special user account used for database administration.
43       db_password:
44         type: string
45         default: pass
46         description: The password associated with the user account provided in the ‘db_user’ property.
47       bind_address:
48         type: boolean
49         default: true
50         required: false
51         description: If true,the server accepts TCP/IP connections on all server host IPv4 interfaces.
52       storage_path:
53         type: string
54         default: /mountedStorage
55         constraints:
56           - valid_values: [ "/mountedStorage", "/var/mysql" ]
57     interfaces:
58       Standard:
59         create: scripts/install_mysql.sh
60         start:
61           inputs:
62             VOLUME_HOME: { get_property: [SELF, storage_path] }
63             PORT: { get_property: [SELF, db_port] }
64             DB_NAME: { get_property: [SELF, db_name] }
65             DB_USER: { get_property: [SELF, db_user] }
66             DB_PASSWORD: { get_property: [SELF, db_password] }
67             BIND_ADRESS: { get_property: [SELF, bind_address] }
68           implementation: scripts/start_mysql.sh
69       fastconnect.cloudify.extensions:
70          start_detection:
71           inputs:
72             PORT: { get_property: [SELF, db_port] }
73           implementation: scripts/mysql_start_detection.groovy
74     artifacts:
75       - scripts: scripts
76         type: tosca.artifacts.File
77
78 capability_types:
79   alien.capabilities.MysqlDatabase:
80       derived_from: tosca.capabilities.Container
81
82 artifact_types:
83   tosca.artifacts.GroovyScript:
84     description: A groovy script (.groovy file)
85     file_ext: [groovy]