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 […]
Create a virtual machine in Proxmox with Python and Terraform
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 […]