mysql_dbms_install.sh yum -y install mysql mysql-server # Use systemd to start MySQL server at system boot time systemctl enable mysqld.service mysql_dbms_start.sh # Start the MySQL service (NOTE: may already be started at image boot time) systemctl start mysqld.service mysql_dbms_configure # Set the MySQL server root password mysqladmin -u root password db_root_password webserver_install.sh yum -y install httpd systemctl enable httpd.service webserver_start.sh # Start the httpd service (NOTE: may already be started at image boot time) systemctl httpd.service WebServer-DBMS 2: Nodejs with PayPal Sample App and MongoDB on separate instances Description This use case Instantiates a 2-tier application with Nodejs and its (PayPal sample) WebApplication on one tier connects a MongoDB database (which stores its application data) using a ConnectsTo relationship. Logical Diagram Sample YAML tosca_definitions_version: tosca_simple_yaml_1_0 description: > TOSCA simple profile with a nodejs web server hosting a PayPal sample application which connects to a mongodb database. imports: - custom_types/paypalpizzastore_nodejs_app.yaml dsl_definitions:
mysql_dbms_install.sh yum -y install mysql mysql-server # Use systemd to start MySQL server at system boot time systemctl enable mysqld.service mysql_dbms_start.sh # Start the MySQL service (NOTE: may already be started at image boot time) systemctl start mysqld.service mysql_dbms_configure # Set the MySQL server root password mysqladmin -u root password db_root_password webserver_install.sh yum -y install httpd systemctl enable httpd.service webserver_start.sh # Start the httpd service (NOTE: may already be started at image boot time) systemctl httpd.service WebServer-DBMS 2: Nodejs with PayPal Sample App and MongoDB on separate instances Description This use case Instantiates a 2-tier application with Nodejs and its (PayPal sample) WebApplication on one tier connects a MongoDB database (which stores its application data) using a ConnectsTo relationship. Logical Diagram Sample YAML tosca_definitions_version: tosca_simple_yaml_1_0 description: > TOSCA simple profile with a nodejs web server hosting a PayPal sample application which connects to a mongodb database. imports: - custom_types/paypalpizzastore_nodejs_app.yaml dsl_definitions:
TOSCA-Simple-Profile-YAML-v1.1-csprd02.docx