Balaji Vajjala's Blog

A DevOps Blog from Trenches

02.04

  • 2.4 Document Environment Provisioning Steps
    • Learning Objectives
    • Assumptions
    • High-Level Steps
    • Detailed Steps
    • Examples
    • EXERCISE: Document Additional Environment Provisioning Steps

2.4 Document Environment Provisioning Steps

Learning Objectives

By the end of this lesson you will be able to:

  • Document the steps for deploying a software package.

Assumptions

  1. None.

High-Level Steps

  1. Get Servers and Tools from repository: mysql-server, mysql, ant, tomcat6, and maven.
  2. Install, configure and run MySQL as a Linux service.
  3. Assign MySQL root password.
  4. Get source code from Git version-control repo.
  5. Configure and run Tomcat as a Linux service.
  6. Configure and run the MySQL database as a Linux service..
  7. Modify the Security Groups for 8080.

Detailed Steps

  1. Get Servers and Tools from repository: mysql-server, mysql, ant, tomcat6, and maven.

    sudo yum -y install mysql-server mysql ant tomcat6 maven

  2. Run MySQL as a Linux service.

    sudo service mysqld start

  3. Assign MySQL root password.

    /usr/bin/mysqladmin -u root password 'mysql'

  4. Get source code from Git version-control repo.

    git clone git@github.com:stelligent/continuous_integration_example.git

  5. Configure and run Tomcat as a Linux service. Note: This installs to /usr/share/tomcat6/webapps

    cd /etc/init.d/ sudo chmod u+x tomcat6 ./tomcat6 status sudo chkconfig --add tomcat6 sudo service tomcat6 start sudo chkconfig tomcat6 on ./tomcat6 status

  6. Configure and run the MySQL database as a Linux service.

    cd /etc/init.d/ sudo chmod u+x mysqld sudo ./mysqld status sudo chkconfig --add mysqld sudo service mysqld start sudo chkconfig mysqld on sudo ./mysqld status

  7. Modify the Security Groups for 8080.

Examples

  1. Download example instructions from https://s3.amazonaws.com/cdcourse/pub/files/provision_ec2_centos.pdf.

EXERCISE: Document Additional Environment Provisioning Steps

  1. Document additional steps that might occur when provisioning an environment. Document these steps in text file and upload your answers to your cd29artifacts S3 bucket (where 00 is your student id).