DevOps Classroom Series – 17/Jun/2021

Activities Post Cookbook Development

  • Chef Workflow for deploying application in various environments

  • Lets bootstrap 3 ubuntu 18 nodes

    • node 1:
      • Env: QA
      • both apache and mysql on same server
      • roles: web server and db server
    • node 2:
      • Env: Prod
      • role: web server
      • apache server
    • node 3:
      • Env: Prod
      • role: db server
      • db server (mysql)
  • For node 1 run_list => lampserver[‘apache’] + lampserver[‘mysql’]

  • For node 2 run_list => lampserver[‘apache’]

  • For node 3 run_list => lampserver[‘mysql’]

  • Adding individual recipes to run_list might be an error prone area

  • We might need to have different convergence times

    • 60 minutes for test (QA) environments
    • Every day at 1:00 AM for pre-prod environments.
    • Manual for production environments
  • Ensuring restrictions on which versions of the cookbook can be applied to a node.

  • Next Concepts

    • Roles
    • Environments
    • Attribute precedence.

Leave a comment

Turn on JavaScript to leave a comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Social Network Integration by Acurax Social Media Branding Company
Exit mobile version
%%footer%%