GithubHelp home page GithubHelp logo

sumanth979 / mediawiki_installation_bluegreen_rollingupdate Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 2.0 3.17 MB

Installing and configuring MediaWiki software using Different Deployment Types.

Shell 15.54% Python 84.46%
blue-green-deployments rolling-update mediawiki ansible mediawiki-installation python shell-script

mediawiki_installation_bluegreen_rollingupdate's Introduction

MediaWiki Installation Using BlueGreen Deployment & Rolling Update

Lab Exercise

Problem Statement

We want to automate the deployment of MediaWiki using.

  • CFT with Any Configuration Management Tool (Only for AWS). If any -- Choose only one of your comfort.
  • The above automation should support CI/CD practices of chosen deployment style like Rolling Update or BlueGreen Deployment. (Optional)

Technologies Used

This Technologies used in this deployment is

  • Yaml Scripting
  • Python
  • Shell Scripting
  • Cloud Formation Template
  • Ansible Playbooks

Deployment Templates Available

  • Blue-Green Deployment
  • Rolling Update Template

Deployment Steps

File Details

  • blueGreen.yaml - Cloud Formation template for blue green deployment.
  • rollingUpdate.yaml - Cloud Formation template for rolling deployment.
  • parameters.json - The parameters file for blue green deployment.
  • mediawikiInstallationSteps.txt - Manual steps for mediawiki installation.
  • dynamicInventory.py - To create dynamic Inventory based on the ec2 tags.
  • playbook.yaml - Ansible playbook for mediaWiki installation.
  • seup.sh - Setup file for deployment.

Deployment Process

Running in a single Step

  • To complete the deployment in a single step
sh setup.sh

Running Each File Seperately

  • To Deploy the Cloud Formation Stack using cli
echo "Creating the stack"
aws cloudformation create-stack --stack-name demo-stack --template-body blueGreen.yaml --parameters parameters.json
  • To Create the inventory file dynamically
echo "Dynamically create the invertory file for ansible"
python3 dynamicInventory.py demo-stack us-east-1
  • To install mediaWiki using ansible.
echo "Run Ansible Playbook to deploy mediaWiki"
ansible-playbook playbook.yaml -i invertory.txt

Outputs

cloud Formation Deployment

cf_output

cf_output

Dynamic Inventory File

dynamic_inventory

Ansible Output

ansible1

ansible2

MediaWiki Installation

mediaWiki

Architecture

Blue Green Mode

blue-green

Rolling Update Mode

rolling

Other Possible Solutions

  • We can use userdata to install the mediaWiki but the creation of userdata becomes more complex and there will be more chances to fail in b/w the run as it contains many steps.

  • Due to time contraint the deployment is script is written as possible as i can. With more time we can enhance the script and modularize it.

Other Blue Green deployments

Blue Green Deployment using ECS

My Other Works

mediawiki_installation_bluegreen_rollingupdate's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.