Skip to content

Instantly share code, notes, and snippets.

View sanudatta11's full-sized avatar
🏠
Working from home

Soumyajit Dutta sanudatta11

🏠
Working from home
View GitHub Profile
AWSTemplateFormatVersion: 2010-09-09
Description: "This is the first CF Template for running Rundeck via UserData!"
Parameters:
NameOfService:
Description: "The name of the service this stack is to be used for."
Type: String
KeyName:
Description: Name of an existing EC2 KeyPair to enable SSH access into the server
Type: AWS::EC2::KeyPair::KeyName
DatabaseName:
AWSTemplateFormatVersion: 2010-09-09
Description: "This is the third CF Template for running Rundeck via UserData with ALB and Autoscale!"
Parameters:
KeyName:
Description: Name of an existing EC2 KeyPair to enable SSH access into the server
Type: AWS::EC2::KeyPair::KeyName
DatabaseName:
Type: String
Default: rundeck
DatabaseUser:
AWSTemplateFormatVersion: 2010-09-09
Description: "This is the first CF Template for running Rundeck via UserData!"
Parameters:
NameOfService:
Description: "The name of the service this stack is to be used for."
Type: String
KeyName:
Description: Name of an existing EC2 KeyPair to enable SSH access into the server
Type: AWS::EC2::KeyPair::KeyName
Resources:
@sanudatta11
sanudatta11 / kubernetes-ec2-deploy.md
Created June 7, 2019 06:41
Basic Kubernetes Cluster Deployment in 3 EC2 Instances

Install Docker on all three nodes.

Do the following on all three nodes:

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
@sanudatta11
sanudatta11 / chef-server.md
Created May 30, 2019 09:53
Chef Server installation

Documentation For This Video Chef Server Download Chef Server Installation Documentation Chef Manage Creating the Chef Server For this course, we’re going to use the most recent stable release of chef server (which is 12.17.331). Our first step is going to be creating a CentOS 7 cloud server to be used as our Chef server. After that server is running, we need to get the download link for a Redhat 64bit system from the downloads page (here’s the exact link used in this video). Let’s use curl to copy this onto our server so that we can install it. Since we’ll need to run virtually all of these commands using sudo we’ll switch to root at the start:

$ sudo su - [root] $ cd /tmp [root] $ curl -O https://packages.chef.io/files/stable/chef-server/12.17.33/el/7/chef-server-core-12.17.33-1.el7.x86_64.rpm

@sanudatta11
sanudatta11 / Kubernetes.md
Created May 22, 2019 05:32
You have three nodes/instances, in which you must install the components necessary to build a running Kubernetes cluster. Once the cluster has been built verify all nodes are in the ready status, you need to start testing deployments, pods, services, and port forwarding, as well as executing commands from a pod. You need to perform the following…

Kubernetes Bare Installation and Sample Deployment

Get the Docker gpg, and add it to your repository.

Run the following commands to get the Docker gpg key and add it to your repository:

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

@sanudatta11
sanudatta11 / gist:2cea46cafaa8b2c1bdf374d452ba7533
Created January 24, 2019 07:49
windows-webapp-template.json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"webAppName": {
"type": "string"
},
"hostingPlanName": {
"type": "string"
},
<?xml version="1.0" encoding="utf-8"?>
<!-- This file will modify Web.config to enable remote debugging when publishing your project in the Debug configuration.
For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<system.web xdt:Transform="Insert">
<httpRuntime targetFramework="4.5" />
<customErrors mode="Off"/>
</system.web>
<?xml version="1.0" encoding="utf-8"?>
<!--
For more information on how to configure your Node.js application, please visit
http://go.microsoft.com/fwlink/?LinkId=290972
-->
<configuration>
<appSettings>
<!--
<add key="StorageAccountName" value="" />
<add key="StorageAccountKey" value="" />
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
<Name>nodejs-webapp-express</Name>
<RootNamespace>nodejs-webapp-express</RootNamespace>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>