Skip to content

Instantly share code, notes, and snippets.

View archmangler's full-sized avatar
🌴
On vacation

Traiano Welcome archmangler

🌴
On vacation
View GitHub Profile
@archmangler
archmangler / azure-vm-boot-diagnostics.tf
Created September 19, 2018 16:18
Simpleton's example starting point for azure VM in Terraform
/*Tested Ok example of Azure VM deployment*/
variable "prefix" {
default = "tfvmex"
}
/*Create a resource group in a region*/
resource "azurerm_resource_group" "main" {
name = "${var.prefix}-resources"
location = "West US 2"
Terraform Example of using boot_diagnostics for Azure virtual Machine
=====================================================================
- include this in the vm resource bloc:
```
.
.
.
boot_diagnostics {
@archmangler
archmangler / azure-vm-boot-diagnostics.tf
Created September 19, 2018 17:07
Full Azure VM example including boot diagnostics
/*Tested Ok example of Azure VM deployment*/
variable "prefix" {
default = "tfvmex"
}
/*Create a resource group in a region*/
resource "azurerm_resource_group" "main" {
name = "${var.prefix}-resources"
location = "West US 2"
@archmangler
archmangler / AzureRMRecoveryServicesVault-HighLevel.txt
Last active September 22, 2018 17:38
AzureRM Recovery Services Vault High Level Design Questions
AzureRM Recovery Services Vault
===============================
Key Questions before deploying?
===============================
1. What is it (purpose, and architecture)?
1.1 what is it:
@archmangler
archmangler / azurerm-recovery-services-vault-lab-notes.md
Last active October 3, 2018 00:16
Terraform RSV Enabled Virtual Machine

AzureRM Recovery Services Vault Lab Notes

Question: How to enable AzureRM RSV for a virtual machine at deployment time?

  1. integrating arm template with linux vm terraform
  • we do this so we can include the rsv parameters (i.e "enable backups")
@archmangler
archmangler / terraform-puzzles-problems.md
Last active September 26, 2018 15:20
terraform-fun-puzzles-and-problems

Terraform puzzles and problems

Problem #1

Statement:

  • Given a default map variable, how do we override individual values in the map when such individual values are defined?
  • Other than using "map merge" ?
@archmangler
archmangler / linux-pwshell-windns-management.txt
Last active September 22, 2023 22:29
PowerShell Remoting from Linux to Windows (DNS Server Configuration)
Overview
========
This is a set of notes I kept resulting in development of a terraform module wrapper to configure windows DNS.
(Original gist location: https://gist.github.com/1de3be6a95400bce427008e04e53e26f)
Objective:
=========
@archmangler
archmangler / azure-cloud-discovery-notes.md
Created November 6, 2018 13:19
Azure Cloud Discovery Notes
@archmangler
archmangler / ansible-tower-discovery-notes.md
Created November 6, 2018 13:23
Ansible Tower Evaluation

Ansible Tower Evaluation

Pre-evaluation opinion:

  • Another piece of GUI wrapping that might as well be replaced by a generic CI/CD system like Jenkins/GitLab/Teamcity(!)/BambooCI (pick your poison)
  • Only worth deploying if your infra team never uses any of the above CI/CD servers and knows nothing of building pipelines. Otherwise just redundant.
@archmangler
archmangler / pending-technical-questions
Created November 6, 2018 14:35
More Pending Technical Questions
My list of current pending questions to resolve
===============================================
Question #1
How to manage secrets in terraform code?
Does it have something like ansible vault?
Answer: