In this blog post I am going to introduce Terraform and install it. What's Terraform? Terraform is a tool to help build infrastructure from code, i.e. it takes a terraform file and then creates / destroys infrastructure as required. Terraform was created by Hashicorp, the same company behind Vagrant and Packer. Terraform is written in … Continue reading Terraform – Introduction: Installation
Category: Linux
AWS – Using Logstash to Ingest Logs From S3 Bucket Into Elastic
I have written a few blog posts about setting up an ELK (Elastic Logstash Kibana) stack but have not really touched on the power of Logstash. In this blog post I am hoping to resolve this by looking at using Logstash to get logs from an AWS S3 bucket and place them into Elastic. To … Continue reading AWS – Using Logstash to Ingest Logs From S3 Bucket Into Elastic
Changing Ansible Playbook Depending On Operating System (Ansible)
When running an Ansible playbook (or roles) it becomes a little bit irksome to have to create new playbooks just because a device may have a different operating system. Thankfully the awesome people behind Ansible have a solution for this. A Little Background... I have my inventory set in a file called "inventory" in the … Continue reading Changing Ansible Playbook Depending On Operating System (Ansible)
Using Ansible With AWS – Creating EC2 Instances (AWS / Ansible)
So far most of my Ansible blog posts have been deploying or configuring local devices (i.e. normally one of my Raspberry Pis), but the whole idea of Ansible is that it can build whole infrastructures as code (well, YAML files in my incase). The best place to see infrastructure as code is the cloud and … Continue reading Using Ansible With AWS – Creating EC2 Instances (AWS / Ansible)
Grafana, Prometheus and Node Exporter On Raspberry Pi via Ansible (Raspberry Pi and Linux)
If you want to see metrics in real time and look at web dashboards then Grafana and Prometheus may be the tools you are looking for, and if you are anything like me then you probably want to automate as much of the install as possible via Ansible. My Set Up For this blog post … Continue reading Grafana, Prometheus and Node Exporter On Raspberry Pi via Ansible (Raspberry Pi and Linux)
Linux Root Directory (Linux)
Have you ever run the ls command on the root of a Linux system and wonder what all the directories are and what they contain? The root directory layout of a Linux system can initially seem a little confusing, with directories like /usr being name user but not really being used as a location for … Continue reading Linux Root Directory (Linux)
Deleting Old Files With BASH / Removing Old Log Files with BASH (Linux)
Log files are a brilliant feature of any piece of software / operating system. However, over time they can take up space and become a pain to remove. In this blog post I am going to look at a quick bash script that can be used via cron to delete older log files. The Set … Continue reading Deleting Old Files With BASH / Removing Old Log Files with BASH (Linux)
Text Editing With Vim / Vi (Linux)
When it comes to text editors in Linux there are varying opinions on which to use, and just like the spaces vs tabs discussion this can lead to arguments. I started out and still use nano as my Linux text editor, however today I want to look at Vi. vi or vim? Vi was created … Continue reading Text Editing With Vim / Vi (Linux)
The Basics Of tmux – The Terminal Multiplexer (Linux)
If you have ever found yourself launching multiple terminal / command line windows and then losing the window you needed, or find that your remote session to your Linux device has lost connectivity which means an active process also ending then tmux may be of help to you. tmux is a terminal multiplexer that allows … Continue reading The Basics Of tmux – The Terminal Multiplexer (Linux)
Ansible’s Copy and Fetch Modules
If you are moving files between computers then you may be doing this by transferring the files to a physical medium (e.g. a USB pen drive), via email or via scp. However, there are other options including Ansible which has two modules to help, Copy and Fetch. Copy The Copy module can be used to … Continue reading Ansible’s Copy and Fetch Modules
You must be logged in to post a comment.