1 heat_template_version: 2013-05-23
 
   4   TOSCA simple profile with wordpress, web server and mysql on the same server.
 
   9     description: The name of the database.
 
  13     description: The user name of the DB user.
 
  17     description: The WordPress database admin account password.
 
  21     description: Number of CPUs for the server.
 
  31     description: Root password for MySQL.
 
  35     description: Port for the MySQL database.
 
  40   mysql_dbms_create_config:
 
  41     type: OS::Heat::SoftwareConfig
 
  44         get_file: mysql/mysql_dbms_install.sh
 
  47   mysql_dbms_create_deploy:
 
  48     type: OS::Heat::SoftwareDeployment
 
  51         get_resource: mysql_dbms_create_config
 
  53         db_root_password: passw0rd
 
  57   mysql_dbms_start_config:
 
  58     type: OS::Heat::SoftwareConfig
 
  61         get_file: mysql/mysql_dbms_start.sh
 
  64   mysql_dbms_start_deploy:
 
  65     type: OS::Heat::SoftwareDeployment
 
  68         get_resource: mysql_dbms_start_config
 
  72     - mysql_dbms_configure_deploy
 
  74   mysql_dbms_configure_config:
 
  75     type: OS::Heat::SoftwareConfig
 
  78         get_file: mysql/mysql_dbms_configure.sh
 
  81   mysql_dbms_configure_deploy:
 
  82     type: OS::Heat::SoftwareDeployment
 
  85         get_resource: mysql_dbms_configure_config
 
  91     - mysql_dbms_create_deploy
 
  93   mysql_database_configure_config:
 
  94     type: OS::Heat::SoftwareConfig
 
  97         get_file: mysql/mysql_database_configure.sh
 
 100   mysql_database_configure_deploy:
 
 101     type: OS::Heat::SoftwareDeployment
 
 104         get_resource: mysql_database_configure_config
 
 108         db_root_password: passw0rd
 
 113     - mysql_dbms_start_deploy
 
 115   webserver_create_config:
 
 116     type: OS::Heat::SoftwareConfig
 
 119         get_file: webserver/webserver_install.sh
 
 122   webserver_create_deploy:
 
 123     type: OS::Heat::SoftwareDeployment
 
 126         get_resource: webserver_create_config
 
 130   webserver_start_config:
 
 131     type: OS::Heat::SoftwareConfig
 
 134         get_file: webserver/webserver_start.sh
 
 137   webserver_start_deploy:
 
 138     type: OS::Heat::SoftwareDeployment
 
 141         get_resource: webserver_start_config
 
 145     - webserver_create_deploy
 
 147   wordpress_create_config:
 
 148     type: OS::Heat::SoftwareConfig
 
 151         get_file: wordpress/wordpress_install.sh
 
 154   wordpress_create_deploy:
 
 155     type: OS::Heat::SoftwareDeployment
 
 158         get_resource: wordpress_create_config
 
 162     - webserver_start_deploy
 
 163     - mysql_database_configure_deploy
 
 165   wordpress_configure_config:
 
 166     type: OS::Heat::SoftwareConfig
 
 169         get_file: wordpress/wordpress_configure.sh
 
 172   wordpress_configure_deploy:
 
 173     type: OS::Heat::SoftwareDeployment
 
 176         get_resource: wordpress_configure_config
 
 178         wp_db_name: wordpress
 
 179         wp_db_password: wp_pass
 
 184     - wordpress_create_deploy
 
 187     type: OS::Nova::Server
 
 190       image: ubuntu-software-config-os-init
 
 192       user_data_format: SOFTWARE_CONFIG
 
 196     description: URL for Wordpress wiki.