summaryrefslogtreecommitdiffstats
path: root/content/writeups/homelab.md
blob: 3f325a9e527e9083fef2ee276f175a0331d1078b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
+++
title = "Making an homelab"
date = 2020-07-20
+++

<section>

## Motivations

- Fun ! (We are hackers, aren't we ?)
- Private git hosting, syncthing, game servers and build servers ..
- Gaining more and more experiences
- Portfolio ;) ?
</section>

<section>

## Software
There are already plenty of ways already for managing servers and services, such as ansible, terraform, kubernetes + docker, ..
But why should I spend a LOT of time learning all these tools seperately (and together) ?
Right, they are used for professional needs.
But I got a keyboard.
Seriously.
Let's spend twice that time on making my own infrastructure scripts !

[Gitlab repository](https://gitlab.com/rgoncalves.se/infrastructure/)
</section>

<section>
	
## Enjoying a dell r710 rev II
	
### Using an internal SSD

As I decided to turn my r710 as a bare-metal server with OpenBSD, I had to do some hacks to get a working internal SSD.

- Yes, I could have used the internal USB 2.0 port with a USB drive, but we are talking about a bare-metal server, not EsXi loaded in ram.
- Yes, using the internal SATA ports (as SATA 2) will reduce the speed allowed by my SSD, but it's a spare one, and the main goal is to get an **internal 2'5 drive** or replace that term with whatever you want.

![](/images/r710_and_switch.jpg)
</section>

<section>

## Building a rack

(Never use pine wood.)

I finally ended up using pine wood (here planks).
The key is to build a shelf intended to support at least 100Kg.
So don't use beams or other shitty structure, 4 four plains planks are enough.

Below, before and after :

![](/images/homelab_old_01.jpg)
![](/images/homelab_wip_01.jpg)
![](/images/homelab_wip_02.jpg)
![](/images/homelab_front_01.jpg)
</section>
remember that computers suck.