Giter Site home page Giter Site logo

devops-ansible's Introduction

Hands-On DevOps with Ansible

This code repository contains examples from the video course Hands-On DevOps with Ansible by Alan Hohn, published by Packt Publishing.

Prerequisites

These prerequisites are needed to get the primary example working, including deploying the infrastructure to build the containerized version of the application.

  1. Install Ansible. This can be done using pip.

  2. Install required roles:

    • ansible-galaxy install geerlingguy.gitlab
    • ansible-galaxy install riemers.gitlab-runner
    • ansible-galaxy install geerlingguy.nodejs
    • ansible-galaxy install geerlingguy.docker
    • ansible-galaxy install andrewrothstein.kubectl
  3. Update infrastructure/group_vars/gitlab-runner/vault.yaml with your own content (and then encrypt with Ansible Vault). Alternatively you can modify the gitlab-runner-config role to point to your own preferred or private Docker registry.

  4. Update the infrastructure/inventory file as appropriate for your environment, or configure your SSH config, DNS, or hosts file to match the servers in the inventory.

  5. Update the playbook.yaml and app.yaml files in todo/deployment to reflect the correct name for your Docker image based on your DockerHub login or preferred registry.

Sample content for infrastructure/group_vars/gitlab-runner/vault.yaml:

---
docker_user: "sekhar4536"
docker_password: "Sekhar.1"
docker_email: "[email protected]"

Guide to Contents

This repository contains the following content. Also see the README.md file in each subdirectory for more information.

  • deploy: Contains samples for testing with and deploying to Amazon Web Services (AWS).
  • infrastructure: Contains Ansible playbooks to set up a DevOps infrastructure (Gitlab and Jenkins). This can be set up on physical, virtual, or cloud machines.
  • kubernetes: Contains an Ansible playbook that demonstrates running an integration test in Kubernetes.
  • todo: Contains a "Todo" Javascript application. Within that directory is a Dockerfile for building a Docker container and a deployment directory for deploying the built image to Kubernetes.

devops-ansible's People

Contributors

sekhar4536 avatar

Watchers

James Cloos 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.