Today, we will explore two different approaches to parameterizing Jenkins jobs. Utilizing the Active Choices plugin, we aim to address two common challenges: Let’s set up a fresh Jenkins instance to demonstrate how we can accomplish these tasks. Installing Active Choices plugin Navigate to the Jenkins Dashboard, then go to ‘Manage Jenkins‘ > ‘Manage Plugins‘. […]
Implementation of the Luhn Algorithm in Ansible
The Luhn or mod 10 algorithm is a simple check digit formula used to validate a variety of identification numbers. It is widely used for the validation of debit and credit card numbers. Its implementation in Ansible is fairly simple using plugins, which is an Ansible feature meant to “augment Ansible’s core functionality”. Code Working […]
An Ansible role to install OpenSSH on Windows
When working with Ansible and Windows, many find WinRM’s limitations both frustrating and tricky to navigate. Managing Windows remotely from a Linux environment presents unique challenges due to these constraints. From my vantage point, OpenSSH emerges as a more stable and speedy alternative compared to WinRM. This might account for its widespread recommendation as a […]
Deploy a Visual Studio Instance Using Kubernetes on DigitalOcean
For some cases, a private and easily accessible Visual Studio instance may be a good idea. Almost all cloud providers offer a managed Kubernetes service. Today I am going to use DigitalOcean service, but the process should be very similar for other cloud providers. On this occasion, we are going to create a cluster with […]
Set up Grafana OSS with minikube
Grafana is a “is a multi-platform open source analytics and interactive visualization web application“. It can be used for data visualization and metrics monitoring, including infrastructure such as servers and containers. To deploy Grafana using Kubernetes, you will need a host with Kubernetes installed or a cloud service to do it such as EKS or […]
Updating the .war file of your containerized Jenkins instance
In some cases, after you log in to Jenkins and go to ‘Manage Jenkins’, it will show you a message saying “New version of Jenkins (x) is available for download (changelog)”. If you click ‘download’ it will start to download the latest .war Jenkins file. Here we are going to see the installation process of […]
Ansible Runner: Ansible from Python code
Ansible Runner is a Python module that allows you to run Ansible playbooks from Python code. It offers “directly importable and usable API for interfacing with Ansible“. In Python, one way of dealing with Ansible is to just call it using modules such as subprocess or os.system. Ansible Runner offers a more ‘Pythonic way‘ of […]