1 tosca_definitions_version: tosca_simple_yaml_1_0
4 TOSCA simple profile with wordpress, web server and mysql on the same server.
5 This template was added to test an 'invalid' scenario where the input template
6 to heat-translator is provided as a URL and that template is referencing an
7 import using an absolute path. The translation of this template would work
8 only if it is tried locally (not via a URL link but via a file system
9 reference) and the referenced import exists in the path below.
18 description: Number of CPUs for the server.
20 - valid_values: [ 1, 2, 4, 8 ]
24 description: The name of the database.
28 description: The user name of the DB user.
32 description: The WordPress database admin account password.
36 description: Root password for MySQL.
39 description: Port for the MySQL database.
44 type: tosca.nodes.WebApplication.WordPress
47 - database_endpoint: mysql_database
50 create: wordpress/wordpress_install.sh
52 implementation: wordpress/wordpress_configure.sh
56 wp_db_password: wp_pass
59 type: tosca.nodes.Database
61 name: { get_input: db_name }
62 user: { get_input: db_user }
63 password: { get_input: db_pwd }
67 port: { get_input: db_port }
74 implementation: mysql/mysql_database_configure.sh
79 db_root_password: passw0rd
81 type: tosca.nodes.DBMS
83 root_password: { get_input: db_root_pwd }
84 port: { get_input: db_port }
90 implementation: mysql/mysql_dbms_install.sh
92 db_root_password: passw0rd
93 start: mysql/mysql_dbms_start.sh
95 implementation: mysql/mysql_dbms_configure.sh
100 type: tosca.nodes.WebServer
105 create: webserver/webserver_install.sh
106 start: webserver/webserver_start.sh
108 type: tosca.nodes.Compute
113 num_cpus: { get_input: cpus }
124 description: URL for Wordpress wiki.
125 value: { get_attribute: [server, private_address] }