1 tosca_definitions_version: tosca_simple_yaml_1_0
 
   4   TOSCA simple profile with wordpress, web server and mysql on the same server.
 
   7   - https://raw.githubusercontent.com/openstack/heat-translator/master/translator/tests/data/custom_types/wordpress.yaml
 
  13       description: Number of CPUs for the server.
 
  15         - valid_values: [ 1, 2, 4, 8 ]
 
  19       description: The name of the database.
 
  23       description: The user name of the DB user.
 
  27       description: The WordPress database admin account password.
 
  31       description: Root password for MySQL.
 
  34       description: Port for the MySQL database.
 
  39       type: tosca.nodes.WebApplication.WordPress
 
  42         - database_endpoint: mysql_database
 
  45           create: wordpress/wordpress_install.sh
 
  47             implementation: wordpress/wordpress_configure.sh
 
  51               wp_db_password: wp_pass
 
  54       type: tosca.nodes.Database
 
  56         name: { get_input: db_name }
 
  57         user: { get_input: db_user }
 
  58         password: { get_input: db_pwd }
 
  62             port: { get_input: db_port }
 
  69             implementation: mysql/mysql_database_configure.sh
 
  74               db_root_password: passw0rd
 
  76       type: tosca.nodes.DBMS
 
  78         root_password: { get_input: db_root_pwd }
 
  79         port: { get_input: db_port }
 
  85             implementation: mysql/mysql_dbms_install.sh
 
  87               db_root_password: passw0rd
 
  88           start: mysql/mysql_dbms_start.sh
 
  90             implementation: mysql/mysql_dbms_configure.sh
 
  95       type: tosca.nodes.WebServer
 
 100           create: webserver/webserver_install.sh
 
 101           start: webserver/webserver_start.sh
 
 103       type: tosca.nodes.Compute
 
 108             num_cpus: { get_input: cpus }
 
 119       description: URL for Wordpress wiki.
 
 120       value: { get_attribute: [server, private_address] }