Bash Utilities In Powershell

Replacing common bash utilities in PowerShell

Whats the first thing coming to mind when seeing a command line? For most people it is Linux, be it Ubuntu, Debian or RedHat. And it is completely understandable. A big part of our industry has a background in Linux and sees it as the superior system for quick scripts and the like. In this series I want to challenge this notion. PowerShell can compete with, an in some cases outperform, the quick scripts and common daily tasks done in Linux shells. [Read More]

Vmware Tools Copy Files

Docs

Copy To Guest

$vm = Get-VM -Name TEST
Get-Item "X:\yourfile.txt" | Copy-VMGuestFile -Destination "c:\temp" -VM $vm -LocalToGuest -GuestUser "Administrator" -GuestPassword "Pa$$w0rd"

Copy From Guest

$vm = Get-VM -Name TEST
Copy-VMGuestFile -Source c:\yourfile.txt -Destination c:\temp\ -VM $vm -GuestToLocal -GuestUser "Administrator" -GuestPassword "Pa$$w0rd"

Ansible VMware Connection Plugin & Become

When using VMware as the connection plugin to connect to remote hosts you commonly set two facts for username and password: ansible_vmware_tools_user: "mkamner" ansible_vmare_tools_password: "Super Secret PW" This will work just fine for windows and with many tasks on linux. However, if you want to use become: true on linux it will fail with the strangest error messages. For example: apt will fail, because it can’t acquire the lock file [Read More]

GitLab

My preferred git server and CI/CD system, either gitlab.com or self-hosted.

Helm

A good way to pull in external dependencies into Kubernetes For writing my own manifests I prefer to use Kustomize.

JQ

A incredibly powerful tool for manipulating the heaps of JSON files and responses I interact with daily.

A lot of times I also use ijq1 instead, which is a interactive version of jq.

Kubernetes

I have run and am still running loads of Kubernetes clusters, mostly on-premise.

Kustomize

My prefered tool for writing and provisioning home-built manifests to [[kubernetes]]

MacOS

My operating system of choice on the client, usually on a MacBook Pro.