GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - vikramkunisetty/mediawiki: Mediawiki Installation on AWS using Terraform and Ansible Playbook:

BranchesTags
Open more actions menu

Latest commit

 

History

15 Commits
15 Commits

Folders and files

NameName
Last commit message
Last commit date
ansible-playbook
ansible-playbook
 
 
infra-on-aws-terraform
infra-on-aws-terraform
 
 
.gitignore
.gitignore
 
 
Readme.md
Readme.md
 
 

Repository files navigation

Mediawiki Installation on AWS using Ansible Playbook:

What's Covered:

  • Terraform Module that does the following:

    • 1 VPC
    • 3 Subnets
    • 1 Keypair
    • 3 EC2 Instances - 2 Web and 1 DB
    • 1 Elastic Load Balancer
  • Ansible Playbook that performs the following:

    • Dynamically fetches your resources based on the tags you defined in the terraform IaC.
    • Performs the Installation of the MySQL Database
    • Creates the Database and Users and other Validations.
    • Encrypts the passwords into a vault.
    • Role that installs Apache HTTPD, PHP from third-party repositories (remi, epel)
    • Configures the webserver
    • Makes it ready for the Launch on the browser.

Assumptions/Pre-Requisites:

  1. Terraform is installed and the PATH is set. Tip:
    If not, download the setup using the instructions in the link below: 
    https://www.terraform.io/intro/getting-started/install.html
    
  2. AWS Secret variables are set: Tip:
    export AWS_ACCESS_KEY_ID='****'
    export AWS_SECRET_ACCESS_KEY='***'
    
  3. Python 2.7+ and Ansible 2.x is installed Tip: If you are on centos like platform, perform the below with sudo privs.
    wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
    rpm -ivh epel-release-6-8.noarch.rpm
    yum install ansible -y
    
    More info on: https://docs.ansible.com/ansible/devel/installation_guide/intro_installation.html

Steps to setup

  1. Clone and switch the directory to the Repository.

  2. Navigate to the folder: infra-on-aws-terraform:

    cd infra-on-aws-terraform

  3. Initialize the working directory.:

    terraform init -input=false

  4. Create a plan and save it to the local file tfplan:

    terraform plan -out=tfplan -input=false

  5. Apply the plan stored in the file tfplan. terraform apply -input=false tfplan -auto-approve

  6. Output the autogenerated keypair into a file for ansible. terraform output pem > ..\ansible-playbook\mediawiki.pem

  7. Run Ansible Playbook for the DB Role:

    cd ..\ansible-playbook

ansible-playbook site.yml -i ec2.py -vv --private-key mediawiki.pem -i ec2.py --limit "tag_group_db" --tags "install_db" --ask-vault-pass -u ec2-user 8. Run Ansible Playbook for the DB Role: ansible-playbook site.yml -i ec2.py -vv --private-key mediawiki.pem -i ec2.py --limit "tag_group_web" --tags "install_web" --ask-vault-pass -u ec2-user Note: tw is the vault key

  1. Open the Browser and complete the installation wizard.

About

Mediawiki Installation on AWS using Terraform and Ansible Playbook:

Resources

Readme
Activity

Stars

0 stars

Watchers

2 watching

Forks

3 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.