1 tosca_definitions_version: tosca_simple_yaml_1_0
4 TOSCA simple profile with wordpress, web server and mysql on the same server.
13 description: Number of CPUs for the server.
15 - valid_values: [ 1, 2, 4, 8 ]
18 description: The name of the database.
21 description: The user name of the DB user.
24 description: The WordPress database admin account password.
27 description: Root password for MySQL.
30 description: Port for the MySQL database.
34 type: tosca.nodes.WebApplication.WordPress
37 - database_endpoint: mysql_database
40 create: ../Scripts/WordPress/install.sh
42 implementation: ../Scripts/WordPress/configure.sh
44 wp_db_name: { get_property: [ mysql_database, name ] }
45 wp_db_user: { get_property: [ mysql_database, user ] }
46 wp_db_password: { get_property: [ mysql_database, password ] }
49 type: tosca.nodes.Database
51 name: { get_input: db_name }
52 user: { get_input: db_user }
53 password: { get_input: db_pwd }
59 implementation: ../Scripts/MYSQLDatabase/configure.sh
61 db_name: { get_property: [ SELF, name ] }
62 db_user: { get_property: [ SELF, user ] }
63 db_password: { get_property: [ SELF, password ] }
64 db_root_password: { get_property: [ mysql_dbms, root_password ] }
67 type: tosca.nodes.DBMS
69 root_password: { get_input: db_root_pwd }
70 port: { get_input: db_port }
75 create: ../Scripts/MYSQLDBMS/install.sh
76 start: ../Scripts/MYSQLDBMS/start.sh
78 implementation: ../Scripts/MYSQLDBMS/configure.sh
80 root_password: { get_property: [ mysql_dbms, root_password ] }
83 type: tosca.nodes.WebServer
88 create: ../Scripts/WebServer/install.sh
89 start: ../Scripts/WebServer/start.sh
92 type: tosca.nodes.Compute
97 num_cpus: { get_input: cpus }
108 description: IP address for Wordpress wiki.
109 value: { get_attribute: [server, private_address] }