Skip to content

Instantly share code, notes, and snippets.

View ajinkya101's full-sized avatar

Ajinkya bhabal ajinkya101

  • India
View GitHub Profile
apiVersion: kpt.dev/v1
kind: Kptfile
metadata:
name: nginx
info:
emails:
- bhabalajinkya@gmail.com
description: This is an example nginx web server deployment
pipeline:
mutators:
#----------------------------------------------------------------
# Create Logic app to post alerts to Microsoft Teams channel
#----------------------------------------------------------------
resource "azurerm_logic_app_workflow" "logicapp" {
name = var.logicapp_name
location = var.location
resource_group_name = var.rg_name
lifecycle {
ignore_changes = [
# This workflow installs the latest version of Terraform CLI and configures the Terraform CLI configuration file
# with an API token for Terraform Cloud (app.terraform.io). On pull request events, this workflow will run
# `terraform init`, `terraform fmt`, and `terraform plan` (speculative plan via Terraform Cloud). On push events
# to the main branch, `terraform apply` will be executed.
#
# Documentation for `hashicorp/setup-terraform` is located here: https://github.com/hashicorp/setup-terraform
name: 'Terraform'
on:
# repos lists the config for specific repos.
repos:
# id can either be an exact repo ID or a regex.
# If using a regex, it must start and end with a slash.
# Repo ID's are of the form {VCS hostname}/{org}/{repo name}, ex.
# github.com/runatlantis/atlantis.
- id: /.*/
# allow_custom_workflows defines whether this repo can define its own
# workflows. If false (default), the repo can only use server-side defined
# Infracost Tool Demonstration
# Importing official atlantis docker image
FROM runatlantis/atlantis:v0.17.0
RUN apk update && apk upgrade
# Python
RUN apk add bash py-pip
@ajinkya101
ajinkya101 / parameters.json
Last active March 14, 2021 10:55
parameters.json
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"adminUserName": {
"value": "DemoUser"
},
"adminPassword": {
"value": "Azure@19811"
},
// All Parameters required for Azure Deployment is given here.
param rgName1 string
param rgName2 string
param adminUserName string
@secure()
param adminPassword string
param dnsLabelPrefix string
// ------------------------------
// Network Module is called here.
// All Parameters required for VM Deployment is given here.
param adminUserName string
@secure()
param adminPassword string
param dnsLabelPrefix string
@description('location for all resources')
param location string = resourceGroup().location
// All Variables required for VM Deployment is given here.
var windowsOSVersion = '2016-Datacenter'
// All Parameters required for Network Deployment is given here.
param location string = resourceGroup().location
// All Variables required for Network Deployment is given here.
var addressPrefix = '10.10.0.0/16'
var subnetName = 'Subnet1'
var subnetPrefix = '10.10.1.0/24'
var virtualNetworkName = 'VNET1'
var networkSecurityGroupName = 'default-NSG'