1 tosca_definitions_version: tosca_simple_yaml_1_0
4 TOSCA simple profile with WordPress, a web server, a MySQL DBMS hosting the application's database
5 content on the same server. Does not have input defaults or constraints.
8 template_name: webserver-dbms-1
9 template_author: TOSCA Simple Profile in YAML
10 template_version: '1.0'
13 - ../non-normative-types.yaml
20 description: Number of CPUs for the server.
23 description: The name of the database.
26 description: The username of the DB user.
29 description: The WordPress database admin account password.
32 description: Root password for MySQL.
35 description: Port for the MySQL database
36 # ARIA NOTE: missing in spec
39 description: Context root for WordPress.
44 type: tosca.nodes.WebApplication.WordPress
46 context_root: { get_input: context_root }
49 - database_endpoint: mysql_database
52 create: wordpress_install.sh
54 implementation: wordpress_configure.sh
56 wp_db_name: { get_property: [ mysql_database, name ] }
57 wp_db_user: { get_property: [ mysql_database, user ] }
58 wp_db_password: { get_property: [ mysql_database, password ] }
59 # In my own template, find requirement/capability, find port property
60 wp_db_port: { get_property: [ SELF, database_endpoint, port ] }
65 name: { get_input: db_name }
66 user: { get_input: db_user }
67 password: { get_input: db_pwd }
68 port: { get_input: db_port }
72 port: { get_input: db_port }
77 configure: mysql_database_configure.sh
82 root_password: { get_input: db_root_pwd }
83 port: { get_input: db_port }
88 # ARIA NOTE: not declared in spec
90 # db_root_password: { get_property: [ mysql_dbms, root_password ] }
91 create: mysql_dbms_install.sh
92 start: mysql_dbms_start.sh
93 configure: mysql_dbms_configure.sh
101 create: webserver_install.sh
102 start: webserver_start.sh
110 num_cpus: { get_input: cpus }
121 description: URL for Wordpress wiki.
122 value: { get_attribute: [ server, public_address ] }