If are like me, you have a lab at home. In my case, after checking different options, I decided to use Proxmox as my main hypervisor. It is open-source and Debian-based, with a simple web console. Also, there is a terraform provider for it, which we will be looking at today. Using Python, we will […]
Install Jenkins with Docker using an Ansible playbook
There are a few advantages of installing Jenkins using Docker. These advantages include faster delivery, more scalability, and easier management. Here we will create a bash script to install Jenkins with that approach. Then, we will transform that script into an Ansible playbook with the shell module. For this example, I will use CentOS 7. You can […]
Passing arguments to your Python script
Since I am so used to PowerShell, my first thought when I wanted to call a python script was to do something like “script -argument”. Of course, Python offers this functionality too. With the help of sys.argv you have a very simple way to enable parameters for your Python script. Using Sys.argv The argv attribute […]
Create a VM in AWS using Terraform
Today we will create a simple t2.micro instance in AWS using Terraform. Currently, t2.micro instances are available in the AWS Free Tier. Everything here will be performed from a Windows environment. However, with a few adjustments, you will be able to follow with a different OS. That said, you will need the following: Setting up […]
Remote Windows Management from Linux using Dockers
Since PowerShell Core 6, PowerShell became cross-platform, free and open source. There is, of course, some limitations when it comes to PowerShell for non-Windows platforms. Microsoft documentation explains that: “PowerShell on Linux and macOS uses .NET Core, which is a subset of the full .NET Framework on Microsoft Windows. As a result, scripts that run […]
Run a Powershell script in a Jenkins pipeline
With Jenkins, you can automate a lot of CI/CD stuff pretty easily. That means, as you probably expect, that you can automatically run Powershell scripts from it without too much hassle. To follow this guide, you will need to have: A working Jenkins controller in a Linux host that has Powershell installed. You can find […]
Automatically elevate a Powershell session
By default, recent versions of Windows ship with something called User Account Control (UAC). Because of this, “standard users and administrators access resources and run apps in the security context of standard users”. For this to work Windows creates two different types of tokens based on the user privileges: Standard user access token Administrator access […]