Skip to content

Commit

Permalink
docs: update internal links in blog posts to relative paths for bette…
Browse files Browse the repository at this point in the history
…r portability and maintainability

docs: update internal links in multiple blog posts to use relative paths for better maintainability and portability

docs: update internal links in blog posts to use relative paths for better portability and maintainability

docs: update internal links in multiple markdown files to use relative paths for better portability and maintainability
  • Loading branch information
russmckendrick committed Apr 7, 2024
1 parent f190b46 commit c6c2f0d
Show file tree
Hide file tree
Showing 26 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion content/posts/2014-02-23_more-puppet/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ aliases:

---

I have been playing my [Digital Ocean](https://www.digitalocean.com/?refcode=52ec4dc3647e) server a lot recently. Breaking it, fixing it and then rebuilding it, while I had documented [my puppet installation](https://media-glass.es/2013/08/31/puppet-server-and-client-installation-centos-6.x/) it was getting to be a pain to copy and paste with each rebuild, so I pulled together a [few scripts](https://github.com/russmckendrick/puppet-install) from various sources to make the rebuilds a little less of a chore. To install fresh Puppet Master all I need to do now is run the following command;
I have been playing my [Digital Ocean](https://www.digitalocean.com/?refcode=52ec4dc3647e) server a lot recently. Breaking it, fixing it and then rebuilding it, while I had documented [my puppet installation](/2013/08/31/puppet-server-and-client-installation-centos-6.x/) it was getting to be a pain to copy and paste with each rebuild, so I pulled together a [few scripts](https://github.com/russmckendrick/puppet-install) from various sources to make the rebuilds a little less of a chore. To install fresh Puppet Master all I need to do now is run the following command;

```
curl -fsS https://raw2.github.com/russmckendrick/puppet-install/master/install | bash
Expand Down
2 changes: 1 addition & 1 deletion content/posts/2014-05-10_hackers/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ aliases:

---

Since I have been playing with [Docker](https://media-glass.es/2014/05/04/yet-more-docker/) for the past [few weeks](https://media-glass.es/2014/04/27/more-docker/) I have had more servers on-line. I don’t have a static IP address at home so while I have a jump host setup I found I was still being port scanned and brute forced.
Since I have been playing with [Docker](/2014/05/04/yet-more-docker/) for the past [few weeks](/2014/04/27/more-docker/) I have had more servers on-line. I don’t have a static IP address at home so while I have a jump host setup I found I was still being port scanned and brute forced.

I only caught a sniff of it in the logs while looking at another problem, even though password authentication is disabled and I only use keys I decided install [Fail2Ban](http://www.fail2ban.org/) to start blocking people, just in-case. As I use [Puppet](https://github.com/russmckendrick/puppet) I installed a module and enabled it. Since then I have been flooded with emails !!!

Expand Down
4 changes: 2 additions & 2 deletions content/posts/2014-07-12_first-play-with-centos-7.0/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ First thing I did was type in ifconfig and got …..
-bash: ifconfig: command not found
```

….. not a good start, have dabbled with a [Fedora](https://fedoraproject.org) when I [installed OpenShift](https://media-glass.es/2014/05/31/openshift-notes/) I remembered about the ip command …..
….. not a good start, have dabbled with a [Fedora](https://fedoraproject.org) when I [installed OpenShift](/2014/05/31/openshift-notes/) I remembered about the ip command …..

```
[root@server ~]# ip addr
Expand Down Expand Up @@ -142,7 +142,7 @@ XFS is now the default file system when you install, though [DigitalOcean](https

#### Linux Containers

Docker (which I have written about [here](https://media-glass.es/2014/02/15/docker/), [here](https://media-glass.es/2014/04/27/more-docker/) and [here](https://media-glass.es/2014/05/04/yet-more-docker/)) is now fully support out of the box with no need to install [EPEL](https://fedoraproject.org/wiki/EPEL), in fact, at the time of writing the CentOS repo was more up-to-date than EPEL.
Docker (which I have written about [here](/2014/02/15/docker/), [here](/2014/04/27/more-docker/) and [here](/2014/05/04/yet-more-docker/)) is now fully support out of the box with no need to install [EPEL](https://fedoraproject.org/wiki/EPEL), in fact, at the time of writing the CentOS repo was more up-to-date than EPEL.

```
[root@server ~]# yum list | grep docker
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ aliases:

---

As part of another work project I needed to install some central logging to run in AWS. Simple you may say, create an instance and use [Puppet](https://media-glass.es/tags/#puppet) to install [ELK server stack](http://www.elasticsearch.org/overview/elkdownloads/) on there, or go back to basics and create a [rsyslog](http://www.rsyslog.com/) server. Normally this would be well and good, however I needed to ensure that all parts solution were highly available and fully redundant, this meant that I would have engineer a lot of HA into my ELK or rsyslog servers.
As part of another work project I needed to install some central logging to run in AWS. Simple you may say, create an instance and use [Puppet](/tags/#puppet) to install [ELK server stack](http://www.elasticsearch.org/overview/elkdownloads/) on there, or go back to basics and create a [rsyslog](http://www.rsyslog.com/) server. Normally this would be well and good, however I needed to ensure that all parts solution were highly available and fully redundant, this meant that I would have engineer a lot of HA into my ELK or rsyslog servers.

This lead me to think I could configure rsyslog to ship its logs to a [RDS instancee](http://aws.amazon.com/rds/), however this could have a high cost associated with it. My next idea was to ship the logs to [S3](http://aws.amazon.com/s3/), this sounds simpler than it is so I quickly scrapped writing my own script and looked at [Fluentd](http://fluentd.org/), this acts as a director for logs and seemed to tick all the boxes, the only downside was that shipping the logs to S3 wasn’t done it real time, for most of the time this shouldn’t be a problem, however the solution could have load spikes and there are some quite aggressive auto-scaling rules in place meaning so it would be possible for instances to automatically spun up and then terminated before the logs had chance to be shipped to S3.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ aliases:

---

==**PLEASE NOTE:** THESE INSTRUCTIONS ARE NOW OUTDATED, SEE [THIS POST FOR AN UPDATE](https://media-glass.es/2015/07/12/update-to-puppet-install-script/)==
==**PLEASE NOTE:** THESE INSTRUCTIONS ARE NOW OUTDATED, SEE [THIS POST FOR AN UPDATE](/2015/07/12/update-to-puppet-install-script/)==

After I dabbled with [CentOS 7](https://media-glass.es/2014/07/13/centos-7/) a few weeks ago I decided to take the plunge and upgrade the few servers I run at [DigitalOcean](https://www.digitalocean.com/?refcode=52ec4dc3647e) to CentOS 7. I run two machines, one is a Puppet and Salt Master, the second runs Docker.
After I dabbled with [CentOS 7](/2014/07/13/centos-7/) a few weeks ago I decided to take the plunge and upgrade the few servers I run at [DigitalOcean](https://www.digitalocean.com/?refcode=52ec4dc3647e) to CentOS 7. I run two machines, one is a Puppet and Salt Master, the second runs Docker.

#### Puppet Master Server

Expand Down
4 changes: 2 additions & 2 deletions content/posts/2014-07-27_whats-in-the-toolbox/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ aliases:

---

It’s been a while since I listed [what I am using day-to-day](https://media-glass.es/2013/11/17/stuff-i-use/) so I thought I would do a quick update;
It’s been a while since I listed [what I am using day-to-day](/2013/11/17/stuff-i-use/) so I thought I would do a quick update;

![desktop_tiih3b](/img/2014-07-27_whats-in-the-toolbox_1.png)

Expand All @@ -44,7 +44,7 @@ It’s been a while since I listed [what I am using day-to-day](https://media-gl
- [known_hosts](https://github.com/markmcconachie/known_hosts) — A simple cli known hosts manager
- [Packer](http://www.packer.io) — Build machine images
- [Z](https://github.com/rupa/z) — Jump around the CLI
- [Jekyll](http://jekyllrb.com/) — What [this blog](https://media-glass.es/2014/01/11/another-new-blog/) is published with
- [Jekyll](http://jekyllrb.com/) — What [this blog](/2014/01/11/another-new-blog/) is published with

#### Server Stack

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ aliases:

---

Last week I posted about [upgrading my servers to CentOS 7](https://media-glass.es/2014/07/27/upgrade-to-centos7/), one of the main factors about upgrading to CentOS 7 was the jump in kernel version (from 2.6.x to 3.10.x).
Last week I posted about [upgrading my servers to CentOS 7](/2014/07/27/upgrade-to-centos7/), one of the main factors about upgrading to CentOS 7 was the jump in kernel version (from 2.6.x to 3.10.x).

Also, it was so that I could use more modern versions core of software without having to worry about installing numerous additional repos.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Google announced earlier this week that they are going to use [HTTPS as a rankin
>
>  For these reasons, over the past few months we’ve been running tests taking into account whether sites use secure, encrypted connections as a signal in our search ranking algorithms. We’ve seen positive results, so we’re starting to use HTTPS as a ranking signal. For now it’s only a very lightweight signal — affecting fewer than 1% of global queries, and carrying less weight than other signals such as high-quality content — while we give webmasters time to switch to HTTPS. But over time, we may decide to strengthen it, because we’d like to encourage all website owners to switch from HTTP to HTTPS to keep everyone safe on the web.
As you can see this blog is now using a SSL certificate. While I host [media-glass.es](https://media-glass.es/) on [GitHub Pages](https://pages.github.com/) I am also running [Cloudflare](https://www.cloudflare.com/), they provide a service called [Flexible SSL](https://support.cloudflare.com/hc/en-us/articles/200170516-How-do-I-add-SSL-to-my-site-) which is soon going to be [free to all users](http://blog.cloudflare.com/google-now-factoring-https-support-into-ranking-cloudflare-on-track-to-make-it-free-and-easy), as part of this announcement they say:
As you can see this blog is now using a SSL certificate. While I host [media-glass.es](/) on [GitHub Pages](https://pages.github.com/) I am also running [Cloudflare](https://www.cloudflare.com/), they provide a service called [Flexible SSL](https://support.cloudflare.com/hc/en-us/articles/200170516-How-do-I-add-SSL-to-my-site-) which is soon going to be [free to all users](http://blog.cloudflare.com/google-now-factoring-https-support-into-ranking-cloudflare-on-track-to-make-it-free-and-easy), as part of this announcement they say:

> We’re on track to roll out SSL for all CloudFlare customers by mid-October. When we do, the number of sites that support HTTPS on the Internet will more than double. That they’ll also rank a bit higher is pretty cool too.
Expand Down
2 changes: 1 addition & 1 deletion content/posts/2014-10-20_yosemite-installation/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ This could be the most straight forward MacOS update I have ever performed (I ha

This time all three machines (iMac, MBP and MBA) worked first time with no dramas. As always the first thing I did was a full TimeMachine back-up (I have been burnt before) and then downloaded a copy of the Yosemite install from the AppStore. Rather than do an in-place upgrade I always do a clean installation, for the last three releases I have used the excellent [DiskMaker X (or Lion Disk Maker as it used to be known)](http://liondiskmaker.com). Once I have a USB installer I rebooted into the USB disk and then erased my primary hard drive using the disk utility, which is always a fun moment.

Once the new system had installed and I have logged in the first thing I do is install the [Command Line Tools](http://adcdownload.apple.com/Developer_Tools/command_line_tools_os_x_10.10_for_xcode__xcode_6.1/command_line_tools_for_osx_10.10_for_xcode_6.1.dmg), once they are installed [Brew](http://brew.sh/) can be installed and then [Cask](https://media-glass.es/2014/05/26/cask/) …….
Once the new system had installed and I have logged in the first thing I do is install the [Command Line Tools](http://adcdownload.apple.com/Developer_Tools/command_line_tools_os_x_10.10_for_xcode__xcode_6.1/command_line_tools_for_osx_10.10_for_xcode_6.1.dmg), once they are installed [Brew](http://brew.sh/) can be installed and then [Cask](/2014/05/26/cask/) …….

```
ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Now the dev team at [work](https://reconnix.com) have moved over to using Docker

An internal system we use is based on [Drupal7](https://www.drupal.org/drupal-7.0), the development version of the site has a [NGINX / PHP 5.4 container](https://registry.hub.docker.com/u/russmckendrick/nginx-php/) running in front of it. We have been hearing alot about [HHVM](http://hhvm.com) so why not try building a container and seeing if it our codebase works?

First off, as I prefer to use [CentOS](https://media-glass.es/2014/08/03/operating-system-snob/), I needed to find a way of getting HHVM installed which wouldn’t take hours (a build from source can notoriously take hours) as I was on the clock. Luckily for me someone had [pushed a package](https://copr.fedoraproject.org/coprs/no1youknowz/hhvm-repo/) to [Copr](https://copr.fedoraproject.org/coprs/) meaning I could do a yum install and quickly adapt the [Dockerfile](http://docs.docker.com/reference/builder/) I already had in place for PHP 5.4 changing it from ….
First off, as I prefer to use [CentOS](/2014/08/03/operating-system-snob/), I needed to find a way of getting HHVM installed which wouldn’t take hours (a build from source can notoriously take hours) as I was on the clock. Luckily for me someone had [pushed a package](https://copr.fedoraproject.org/coprs/no1youknowz/hhvm-repo/) to [Copr](https://copr.fedoraproject.org/coprs/) meaning I could do a yum install and quickly adapt the [Dockerfile](http://docs.docker.com/reference/builder/) I already had in place for PHP 5.4 changing it from ….

```
### Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion content/posts/2014-12-02_puppetcamp-london-2014/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ https://www.slideshare.net/slideshow/embed_code/41653710"

So in all a great day, other than the early start …

It has also inspired me a enough to revisit a module I cobbled together earlier in the year which manages the installation of [Cloudwatch logs](https://media-glass.es/2014/07/22/ha-central-logging-in-aws/) and get it up to a decent standard so I can push it to the forge and be just like [Danny](https://forge.puppetlabs.com/kemra102).
It has also inspired me a enough to revisit a module I cobbled together earlier in the year which manages the installation of [Cloudwatch logs](/2014/07/22/ha-central-logging-in-aws/) and get it up to a decent standard so I can push it to the forge and be just like [Danny](https://forge.puppetlabs.com/kemra102).

2 changes: 1 addition & 1 deletion content/posts/2015-02-08_backups/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ As I have both an iMac & a MacBook I use a 2TB drive connected to an [AirPort Ex

#### Stuff

For command like configuration & settings like SSH keys etc I use a private GitHub repo, then there is various online services such as Google Drive and Dropbox for the remainder. Finally passwords are synced to my [Dashline](https://media-glass.es/2014/12/13/password-managers/) account.
For command like configuration & settings like SSH keys etc I use a private GitHub repo, then there is various online services such as Google Drive and Dropbox for the remainder. Finally passwords are synced to my [Dashline](/2014/12/13/password-managers/) account.

#### Security?

Expand Down
2 changes: 1 addition & 1 deletion content/posts/2015-03-09_day-to-day-tools/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ I am currently using most of these tools day to day …
- [Authy](https://www.authy.com/) — A nice Two Factor Authentication tool
- [Plex](http://plex.tv/) — An impressive cross device media centre

… so not much in the way of changes since I last [wrote](https://media-glass.es/2014/07/27/whats-toolbox/ "What’s in the toolbox?") about the tools I use.
… so not much in the way of changes since I last [wrote](/2014/07/27/whats-toolbox/ "What’s in the toolbox?") about the tools I use.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ aliases:

---

Since I last properly [wrote about Docker](https://media-glass.es/2014/08/31/docker-fig-reverse-proxy-centos7/ "Docker, Fig, NGINX Reverse Proxies and CentOS 7") a lot has changed. Docker have introduced some new command line tools which allow for easy orchestration of Docker instances, clusters and container management. These are;
Since I last properly [wrote about Docker](/2014/08/31/docker-fig-reverse-proxy-centos7/ "Docker, Fig, NGINX Reverse Proxies and CentOS 7") a lot has changed. Docker have introduced some new command line tools which allow for easy orchestration of Docker instances, clusters and container management. These are;

- [Docker Machine](https://docs.docker.com/machine/ "Docker Machine") — Allows you to easily deploy Docker instances to a lot of different platforms.
- [Docker Compose](https://docs.docker.com/compose/ "Docker Compose") — A replacement for [Fig](https://fig.sh "Fig").
Expand All @@ -30,7 +30,7 @@ Out of these three technologies, Swarm is not really suitable for production use

#### Docker Machine

Rather than downloading the pre-compiled binary I decided to use the [Homebrew](http://brew.sh "Brew") formula (this assumes you have [Cask installed](https://media-glass.es/2014/10/20/yosemite-installation/ "Cask"));
Rather than downloading the pre-compiled binary I decided to use the [Homebrew](http://brew.sh "Brew") formula (this assumes you have [Cask installed](/2014/10/20/yosemite-installation/ "Cask"));

```
# Make sure everything is up-to-date
Expand Down Expand Up @@ -237,7 +237,7 @@ So thats a quick overview of docker-machine. As you can see, it is a a really co

#### Docker Compose

Docker Compose started life as Fig which is something [I have written about before in a previous post](https://media-glass.es/2014/08/31/docker-fig-reverse-proxy-centos7/ "Docker, Fig, NGINX Reverse Proxies and CentOS 7"), the currently release doesn’t add too much in the way of new functionality, but it does start laying the foundations for working with docker-swam, [click here](https://github.com/docker/compose/releases/tag/1.1.0 "Docker Compose 1.1.0 release notes") for the full release notes.
Docker Compose started life as Fig which is something [I have written about before in a previous post](/2014/08/31/docker-fig-reverse-proxy-centos7/ "Docker, Fig, NGINX Reverse Proxies and CentOS 7"), the currently release doesn’t add too much in the way of new functionality, but it does start laying the foundations for working with docker-swam, [click here](https://github.com/docker/compose/releases/tag/1.1.0 "Docker Compose 1.1.0 release notes") for the full release notes.

Like docker-machine I installed it using a [Homebrew](http://brew.sh/ "Homebrew") formula;

Expand Down
2 changes: 1 addition & 1 deletion content/posts/2015-03-29_fail2ban-on-centos-7/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ aliases:

---

One of the first things I do on a new server is install [fail2ban](http://www.fail2ban.org/wiki/index.php/Main_Page "fail2ban"). I have written about it before, but that was [back when I was still using CentOS 6](https://media-glass.es/2014/05/10/hackers/ "Hackers"). Now I am using CentOS 7 the installation has a few more steps.
One of the first things I do on a new server is install [fail2ban](http://www.fail2ban.org/wiki/index.php/Main_Page "fail2ban"). I have written about it before, but that was [back when I was still using CentOS 6](/2014/05/10/hackers/ "Hackers"). Now I am using CentOS 7 the installation has a few more steps.

Firstly, as EPEL is not enabled by standard on most CentOS 7 installations enable the repo and then install fail2ban.

Expand Down
6 changes: 3 additions & 3 deletions content/posts/2015-06-28_digital-ocean-bootstrap/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ aliases:

---

As I have mentioned a few times on this blog I tend to use [DigtialOcean](https://www.digitalocean.com/?refcode=52ec4dc3647e) to spin up servers for testing and to host some of my projects. I also still [use CentOS 7](https://media-glass.es/2014/08/03/operating-system-snob/ "Am I an Operating System snob?") as my preferred OS.
As I have mentioned a few times on this blog I tend to use [DigtialOcean](https://www.digitalocean.com/?refcode=52ec4dc3647e) to spin up servers for testing and to host some of my projects. I also still [use CentOS 7](/2014/08/03/operating-system-snob/ "Am I an Operating System snob?") as my preferred OS.

Each time I boot a droplet I run few a couple of tasks to get the server how I prefer it.

- Run a yum update
- [Enable swap](https://media-glass.es/2015/03/08/migration-of-server-swap-space/ "Migration of Server & Swap Space")
- [Install & configure Fail2Ban](https://media-glass.es/2015/03/29/fail2ban-on-centos-7/ "Fail2Ban on CentOS 7")
- [Enable swap](/2015/03/08/migration-of-server-swap-space/ "Migration of Server & Swap Space")
- [Install & configure Fail2Ban](/2015/03/29/fail2ban-on-centos-7/ "Fail2Ban on CentOS 7")
- Enable firewalld
- Install vim-enhanced, deltarpm & enable [EPEL](https://fedoraproject.org/wiki/EPEL "EPEL")

Expand Down
Loading

0 comments on commit c6c2f0d

Please sign in to comment.