1 tosca_definitions_version: tosca_simple_yaml_1_0
4 TOSCA simple profile with wordpress, web server and mysql on the same server.
5 Parsing of this test template will fail with errors if provided imports does
6 not refer to a valid absolute path.
9 - /tmp/tosca-parser/toscaparser/tests/data/custom_types/wordpress.yaml
15 description: Number of CPUs for the server.
17 - valid_values: [ 1, 2, 4, 8 ]
21 description: The name of the database.
25 description: The user name of the DB user.
29 description: The WordPress database admin account password.
33 description: Root password for MySQL.
37 description: Port for the MySQL database.
42 type: tosca.nodes.WebApplication.WordPress
45 - database_endpoint: mysql_database
48 create: wordpress/wordpress_install.sh
50 implementation: wordpress/wordpress_configure.sh
54 wp_db_password: wp_pass
57 type: tosca.nodes.Database
59 name: { get_input: db_name }
60 user: { get_input: db_user }
61 password: { get_input: db_pwd }
65 port: { get_input: db_port }
72 implementation: mysql/mysql_database_configure.sh
77 db_root_password: passw0rd
79 type: tosca.nodes.DBMS
81 root_password: { get_input: db_root_pwd }
82 port: { get_input: db_port }
88 implementation: mysql/mysql_dbms_install.sh
90 db_root_password: passw0rd
91 start: mysql/mysql_dbms_start.sh
93 implementation: mysql/mysql_dbms_configure.sh
98 type: tosca.nodes.WebServer
103 create: webserver/webserver_install.sh
104 start: webserver/webserver_start.sh
106 type: tosca.nodes.Compute
111 num_cpus: { get_input: cpus }
122 description: URL for Wordpress wiki.
123 value: { get_attribute: [server, private_address] }