Posts

Showing posts from January, 2019

Cloud-Formation Template for VPC with two subnets(JSON)

AWS cloud formation template for VPC: { "AWSTemplateFormatVersion" : "2010-09-09" , "Description" : "Network vpc with subnet" , "Resources" : { "myVpc" : { "Description" : "MYVPC details" , "Type" : "AWS::EC2::VPC" , "Properties" : { "CidrBlock" : "192.168.0.0/16" } }, "webSubnet" : { "Description" : "MY WEB SUBNET details" , "Type" : "AWS::EC2::Subnet" , "Properties" : { "AvailabilityZone" : "ap-south-1a" , "CidrBlock" : "192.168.0.0/24" , "VpcId" : { "Ref" : "myVpc" } ...

INstall Packer on windows(Choco)

Note: If you want to downlad packer sw need to go the below link: https://www.packer.io/ Packer,Terraform,Vagrant is owned by Hashicorp.  Through Chocolatey: PS C:\Users\a42983729> choco --version 0.10.11 Install Packer: PS C:\Windows\system32> choco install packer Chocolatey v0.10.11 Installing the following packages: packer By installing you accept licenses for the packages. packer v1.3.3.20181213 [Approved] packer package files install completed. Performing other installation steps. The package packer wants to run 'chocolateyInstall.ps1'. Note: If you don't run this script, the installation will fail. Note: To confirm automatically next time, use '-y' or consider: choco feature enable -n allowGlobalConfirmation Do you want to run the script?([Y]es/[N]o/[P]rint): y Removing old packer plugins Using system proxy server '10.25.24.9:8080'. Downloading packer 64 bit   from 'https://releases.hashicorp.com/packer/1.3.3/...

Installing Specific LTS Version of Jenkins on Ubuntu

Install openjdk8: Execute the following commands in order  : sudo apt-get update sudo apt-cache search openjdk     Note: Select any suitable package from the top. This documentation selects the openjdk-8-jdk  sudo apt-get install openjdk-8-jdk     Prepare your system for jenkins in ubuntu: Execute the following commands wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add - echo deb https://pkg.jenkins.io/debian-stable binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list sudo apt-get update     Before executing install of jenkins lets try to find the possible jenkins versions available:   sudo apt-cache madison jenkins      Note: In this documentation 2.138.3 will be used Installing Specific Version of Jenkins: sudo apt-get install jenkins=2.138.3 -y   Note: Follow this steps to install any LTS version of jenkins