Code Monkey home page Code Monkey logo

building-jenkins's Introduction

Jenkins Module

JenkinsLogo

This module is used for creating Jenkins environment

Prerequisites

  1. Terraform 0.11.14

Steps

git clone https://github.com/farrukh90/infrastructure.git
cd infrastructure/jenkins/
ls configurations

Region

Choose the region you would like to work with. In my case I chose to work with us-east-1. However this is not required you can choose any region. Change below items according to your own AWS account

vi configurations/YOUR_REGION/jenkins.tfvars

s3_bucket                       =   "YOUR_BUCKET"         
s3_folder_region                =   "YOUR_BUCKET_REGION"               
vpc_id                          =   "YOUR_VPC_ID"            
zone_id                         =   "YOUR_Z32OHGRMBVZ9LR"       
domain                          =   "YOUR_DOMAIN"
region                          =   "YOUR_REGION"

Environment Setup

Once above changes are done save the file and run

source setenv.sh configurations/YOUR_REGION/jenkins.tfvars

It will set a proper backend.tf file for us. Next run (by changing region of course):

terraform apply -var-file configurations/YOUR_REGION/jenkins.tfvars

Output

Output

Known Errors


Error 1

Output

When you see Above error, please run

ssh-keygen      #Enter 4 times

Error 2

Output

When you see above error it means you gave the wrong region for the bucket. Please check bucket's region


Error 3

Output

When you see above error it means you are using the wrong version of terraform. Please download 0.11.14 link is here


Error 4

Output

When you see above error it means AWS is taking some time to update Route53 entry. It is safe to rerun apply command. Also verify if you put the proper domain in tfvars file


Error 5

This error below means that you are using new version of jenkins. New version of jenkins sometimes have a bug in it. As of now 01/2020 version 2.190 is good.

It can be fixed with

yum remove jenkins-2.*

yum install jenkins-2.190.2-1.1.noarch

Output

building-jenkins's People

Contributors

safag05 avatar

Watchers

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