1 heat_template_version: 2013-05-23
 
   4   TOSCA simple profile with nodejs and mongodb.
 
   9     description: The URL to download nodejs.
 
  10     default: http://github.com/paypal/rest-api-sample-app-nodejs.git
 
  14     description: Number of CPUs for the server.
 
  24   mongo_dbms_create_deploy:
 
  25     type: OS::Heat::SoftwareDeployment
 
  28         get_resource: mongo_dbms_create_config
 
  30         get_resource: mongo_server
 
  32   mongo_dbms_create_config:
 
  33     type: OS::Heat::SoftwareConfig
 
  36         get_file: mongodb/create.sh
 
  39   mongo_dbms_configure_deploy:
 
  40     type: OS::Heat::SoftwareDeployment
 
  43         get_resource: mongo_dbms_configure_config
 
  52         get_resource: mongo_server
 
  54     - mongo_dbms_create_deploy
 
  56   mongo_dbms_configure_config:
 
  57     type: OS::Heat::SoftwareConfig
 
  60         get_file: mongodb/config.sh
 
  63   mongo_dbms_start_deploy:
 
  64     type: OS::Heat::SoftwareDeployment
 
  67         get_resource: mongo_dbms_start_config
 
  69         get_resource: mongo_server
 
  71     - mongo_dbms_configure_deploy
 
  73   mongo_dbms_start_config:
 
  74     type: OS::Heat::SoftwareConfig
 
  77         get_file: mongodb/start.sh
 
  80   mongo_db_create_deploy:
 
  81     type: OS::Heat::SoftwareDeployment
 
  84         get_resource: mongo_db_create_config
 
  86         get_resource: mongo_server
 
  88     - mongo_dbms_start_deploy
 
  90   mongo_db_create_config:
 
  91     type: OS::Heat::SoftwareConfig
 
  94         get_file: mongodb/create_database.sh
 
  98     type: OS::Heat::SoftwareDeployment
 
 101         get_resource: nodejs_create_config
 
 103         get_resource: app_server
 
 105   nodejs_create_config:
 
 106     type: OS::Heat::SoftwareConfig
 
 109         get_file: nodejs/create.sh
 
 112   paypal_pizzastore_configure_deploy:
 
 113     type: OS::Heat::SoftwareDeployment
 
 116         get_resource: paypal_pizzastore_configure_config
 
 118         github_url: http://github.com/paypal/rest-api-sample-app-nodejs.git
 
 126         get_resource: app_server
 
 128     - mongo_db_create_deploy
 
 129     - nodejs_create_deploy
 
 131   paypal_pizzastore_configure_config:
 
 132     type: OS::Heat::SoftwareConfig
 
 135         get_file: nodejs/config.sh
 
 138   paypal_pizzastore_start_deploy:
 
 139     type: OS::Heat::SoftwareDeployment
 
 142         get_resource: paypal_pizzastore_start_config
 
 144         get_resource: app_server
 
 146     - paypal_pizzastore_configure_deploy
 
 148   paypal_pizzastore_start_config:
 
 149     type: OS::Heat::SoftwareConfig
 
 152         get_file: nodejs/start.sh
 
 156     type: OS::Nova::Server
 
 159       image: ubuntu-software-config-os-init
 
 161       user_data_format: SOFTWARE_CONFIG
 
 164     type: OS::Nova::Server
 
 167       image: ubuntu-software-config-os-init
 
 169       user_data_format: SOFTWARE_CONFIG
 
 173     description: URL for the mongodb server.
 
 181     description: URL for the nodejs server, http://<IP>:3000