Skip to content

Instantly share code, notes, and snippets.

View kvietmeier's full-sized avatar

Karl Vietmeier kvietmeier

View GitHub Profile
@kvietmeier
kvietmeier / vagrantonwindows.md
Last active June 22, 2024 17:13
Setting up and using Vagrant on Windows 11

Using Vagrant with Windows 11 and VirtualBox

Vagrant is an open-source software product for building and maintaining portable virtual software development environments for hosted hypervisors on your workstation; VirtualBox, Hyper-V, Docker, VMware, libvirt/KVM. The application "Vagrant" is used to start and manage virtual machine instances and containers formatted and distributed as "boxes" which are the package format for Vagrant environments. They are prepackaged virtual machines and container images that can range from basic Linux images to fully installed and configured applications ready to start and use. With just a few simple commands you can startup any number of virtual machines/containers with networking, shared filesystems, authentication, and any post boot customizations you require.

It allows you to create complete development environments like Kubernetes clusters, Ceph clusters, or Docker containers withgout needing a cloud subscrtion or access to a lab.

I have examples from the simple to t

@kvietmeier
kvietmeier / ansibleadhoc.md
Last active June 24, 2024 15:23
Anisble AdHoc Commands

Ansible Ad Hoc Commands

Ansible can seem complex and difficult when youo first get started, especially if you are trying to decipher complex playbooks you find on on GitHub or in blogs. Fortunately, you can ease yourself into learning Ansible and add complexity as you go. On my own journey to learn Ansible I decided I had setup enough Linux servers by hand and was tired of cutting and pasting the same commands, repeatedly. Ansible seemed like the perfect solution but after wading through complex or broken examples on GitHub and trivial use cases in the docs; I stepped back and decided to start from the beginning with “Fundamental Principles” which in Ansible are the Ad Hoc commands.

I based this on a HowTo I created for setting up a basic Linux server by hand which walks through the steps you do for every server to make it useful:

  • Kill NetWorkManager if it is running
  • Register with Red Hat (if required) and subscribe to channels
  • Configure additional users and sudo access
  • Configure yum/apt repos
@kvietmeier
kvietmeier / TerraformDemo.md
Last active May 24, 2024 18:03
Terraform Demo - Create Multiple VMs for a Charging Database

Infrastructure as Code

Terraform Demo: Migrating a Charging Database from AWS to Azure


Use Case

A customer has an existing charging database running in AWS which was built with a combination of CloudFormation and old bash scripts. They want to port the database to Azure but to do that they will need to replicate the infrastructure and do testing to determine appropriate VM instance types and test existing OS tuning parameters on Azure.