Git Product home page Git Product logo

project-automation's Introduction

ASSIGNMENT USING TERRAFORM, ANSIBLE, JENKINS, DOCKER

DESCRIPTION:

terraform-jenkins:

  • This module includes creation of necessary resources like "VPC", "Subnet", "Firewall-rules", "Service-Account", "Jenkins-VM".

terraform-desktop:

  • This module includes creation of "Desktop-VM" utilizing other resources like network, service-account created in "terraform-jenkins"

Dockerfile:

  • This file sets-up a runtime environment for a "Docker-Container" to perform all the tasks like running "Terraform", running "Ansible-Playbook" etc.

Playbook:

  • This has all the "Packages" and "Softwares" to be installed in "Desktop-VM"

Jenkinsfile:

  • This Jenkinsfile has the "Pipeline" which includes different stages to be performed like "Create" and "Configure" the "Desktop-VM".

STEP1: Creating Infrastructure to run Jenkins-server(master)

STEP2: Build docker-image

  • docker build -t docker-desktop:v1 /Path/to/Dockerfile.
  • Push image to "Docker Hub" or any "Artifactory repository".

STEP3: Configuring Jenkins-server

  • Login to "Jenkins-server" and get password to login to "Jenkins-UI".
  • Now login to "Jenkins-UI" and configure Jenkins to get pipeline from "Jenkinsfile" from repository and use "Docker-image" as agent.

NOTE:

  • Plugin required: Docker

STEP4: Trigger the job

  • Start the build-job by providing appropriate action(apply, destroy) to trigger terraform.

NOTE:

  • Make the changes according to your environment.

project-automation's People

Contributors

summu97 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.