Best Practice for Mounting an LVM Logical Volume with /etc/fstab May 29, 2017 If you’ve been using Linux for a bit you will be familiar with the file systems table (fstab(5): /etc/fstab). You will also be fairly familiar with the contents of this file and it’s structure: <device> <mount-point> <filesystem-type> <options> <dump> <pass> So a typical entry may possibly look like the following: /dev/sda1 / ext4 defaults 0 0 This would mount /dev/sda1, the device file for the first partition on the first disk as the root (/) on your Linux system. ...
Azure, an AWS guy dipping his toes. May 22, 2017 I am not going to lie, I am a big fan of AWS. I have been using AWS on and off for nearly 2 years now. I’ve done the training for both the AWS Solutions Architect Associate and SysOps Associate (although not got a certification yet). Shout out to acloud.guru. Whilst there are no shortage of AWS jobs out there, depending on your industry it potentially pays to become cloud agnostic - having a finger in each of the cloud provider’s pies (AWS, Azure, DigitalOcean, Google Cloud). ...
SaltStack at Home, Initial Thoughs May 21, 2017 “Cloud servers are cattle, not pets!" So I have been working with configuration management for a while, recently I have been switching between Ansilble and Salt Stack. After creating a Salt Stack for a previous employer in AWS (see below diagram), I have fallen for this configuration management system. As you may have noted, I am using Python based, YAML configured systems because this is where I am comfortable. These systems are easily extendable, the configuration files are easy to read for anyone and they are both awesome. ...
Silence Apr 03, 2017 Back soon, just escaped a sticky situation…
Two node Redis cluster in Vagrant Feb 12, 2017 So, I am wanting to learn a bit more about Redis. To get me started, and to run Redis as close to how it would run in production, I have created a Vagrantfile for creating a Redis Cluster. I thought I’d share. Feel free to clone. It’s a fairly simple Vagrantfile that simply creates a Master-Slave replica for Redis. To get started: $ git clone https://github.com/xanmanning/vagrant-redis-cluster $ cd vagrant-redis-cluster $ vagrant up Master node: 10. ...
Throwback Thursday: Hacktrix* Jan 26, 2017 It’s Thursday again, and I’m looking back on another project from days gone by. Following on from a decision not to renew our QueueMetrics license to monitor our call volume over Asterisk, we were left in a bit of a pickle. Numerous calls were coming in but managers could not gauge the volume and in times of an outage this was a serious problem when it came to breaks and assigning overtime. ...
SaltStack Lab in Vagrant Jan 19, 2017 Today I have published a really simplistic SaltStack lab for Vagrant to GitHub: https://github.com/xanmanning/vagrant-salt-example Since being subjected to CFEngine (shudder), I have been very keen to try out other configuration management offerings. I had previously tried Ansible, that’s great and all, however there are advantages to agent based systems, particularly the scalability. Salt stands out for me, because like Ansible, configuration is done in YAML - this is fantastically easy to use! ...
Throwback Thursday: Thermostat Jan 12, 2017 I’ve decided to occasionally look back on some of the weird and wonderful projects I have had over the last couple of years to remind myself of the journey I have taken. Today I am writing about a project I created to fix a problem with a misbehaving version of our CRM software (to remain nameless). Backstory So this tale begins when I worked as first line technical support at an internet service provider (ISP). ...
Chmod 0777; when permissions go bad and using the Sticky bit! Jan 08, 2017 I recently got tested on an important piece of Linux file permissions trivia and must admit I fumbled the answer a bit. My main reasons for not instantly getting the question right probably stems from my own personal mantra, “DO NOT 0777 ALL THE THINGS!". I like to think that I put some thought into file and directory permissions rather than applying the same permissions to user, group and others. It is something that I have (on occasion) bullied a lot of developers about during my dictatorship employment as a (junior) Linux SysAdmin. ...
OpenBSD 6.0: Simple NAT with pf Dec 23, 2016 This post is more of a “note to self”, but this is a summary of a simple NAT setup between an “Internal” interface and an “External” interface on our OpenBSD server or router. Why would we do this? Well we might have an OpenBSD machine acting as a router and so 1 public IP address on our “External” interface which is to be shared between our devices on our “Internal” network. ...