Skip to content

Commit 00e01b9

Browse files
authored
Merge branch 'progmaticltd:main' into allow-apt-mirrors
2 parents feac03c + f63affe commit 00e01b9

File tree

96 files changed

+1591
-203
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+1591
-203
lines changed

config/defaults/common-security.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ security_default:
2323
active: true
2424
rate: 10/minute
2525
period: 2h
26+
trusted:
27+
period: 2h
2628

2729
# The size of the Diffie-Hellman parameters to use for DHE ciphers.
2830
# Predifined values from the RFC7919 will be used wherever possible.
@@ -101,7 +103,7 @@ passwords_default:
101103
#
102104
# Credentials store to use
103105
creds_default:
104-
store: password
106+
store: ansible.builtin.password
105107
prefix: '../backup/{{ network.domain }}/'
106108
opts:
107109
create: '' # no creation option for plain text passwords

config/defaults/version-large.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,17 @@ mail_default:
154154
sieve:
155155
debug: false
156156

157+
#############################################################################
158+
# Mail protection settings
159+
# - public: no protection, only use this if you know what you are doing.
160+
# - autoban: automatically ban offender IPs, ala fail2ban (default).
161+
# - private: authentication is only allowed from trusted networks.
162+
protection:
163+
type: autoban
164+
157165
#############################################################################
158166
# Autoban is a lighter alternative to fail2ban, using nftables
159167
autoban:
160-
active: true #
161168
rate: 10/minute # above this rate, connections are rejected
162169
period: 1d # period for banning IPs
163170

config/defaults/version-medium.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,17 @@ mail_default:
149149
sieve:
150150
debug: false
151151

152+
#############################################################################
153+
# Mail protection settings
154+
# - public: no protection, only use this if you know what you are doing.
155+
# - autoban: automatically ban offender IPs, ala fail2ban (default).
156+
# - private: authentication is only allowed from trusted networks.
157+
protection:
158+
type: autoban
159+
152160
#############################################################################
153161
# Autoban is a lighter alternative to fail2ban, using nftables
154162
autoban:
155-
active: true #
156163
rate: 10/minute # above this rate, connections are rejected
157164
period: 1d # period for banning IPs
158165

config/defaults/version-mini.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,17 @@ mail_default:
139139
sieve:
140140
debug: false
141141

142+
#############################################################################
143+
# Mail protection settings
144+
# - public: no protection, only use this if you know what you are doing.
145+
# - autoban: automatically ban offender IPs, ala fail2ban (default).
146+
# - private: authentication is only allowed from trusted networks.
147+
protection:
148+
type: autoban
149+
142150
#############################################################################
143151
# Autoban is a lighter alternative to fail2ban, using nftables
144152
autoban:
145-
active: true #
146153
rate: 10/minute # above this rate, connections are rejected
147154
period: 1d # period for banning IPs
148155

config/defaults/version-small.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,17 @@ mail_default:
148148
sieve:
149149
debug: false
150150

151+
#############################################################################
152+
# Mail protection settings
153+
# - public: no protection, only use this if you know what you are doing.
154+
# - autoban: automatically ban offender IPs, ala fail2ban (default).
155+
# - private: authentication is only allowed from trusted networks.
156+
protection:
157+
type: autoban
158+
151159
#############################################################################
152160
# Autoban is a lighter alternative to fail2ban, using nftables
153161
autoban:
154-
active: true #
155162
rate: 10/minute # above this rate, connections are rejected
156163
period: 1d # period for banning IPs
157164

config/samples/hosts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ all:
77
hosts:
88
homebox:
99
ansible_host: homebox.example.home
10-
ansible_user: root
10+
ansible_user: hbinstall
1111
ansible_port: 22
1212
ansible_become: true

config/samples/minimal.yml

Lines changed: 0 additions & 66 deletions
This file was deleted.

config/samples/system-minimal.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
###############################################################################
44
# Domain and hostname information
55
network:
6-
domain: # your domain name
7-
hostname: # your hostname
6+
domain: # your domain name, e.g. arda.world
7+
hostname: # your hostname, middle-earth
88
external_ip: # first external IP address, IPv4 or IPv6
99
backup_ip: # if you have one, second external IP address, IPv4 or IPv6, otherwise, use ~
1010
bind_ip: # If you are behind a NAT, the local IP address externally NAT'ed,

docs/10-prepare-your-target.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ cases:
1717
In our case, we'll create a temporary user, called for instance `hbinstall`, for HomeBox install, and give them a random
1818
password:
1919

20-
```txt
20+
```plain
2121
root@debian:~# adduser hbinstall
2222
Adding user `hbinstall' ...
2323
Adding new group `hbinstall' (1000) ...
@@ -41,7 +41,7 @@ Adding user `hbinstall' to group `users' ...
4141

4242
Now, let's install _sudo_,...
4343

44-
```txt
44+
```plain
4545
root@debian:~# apt install sudo
4646
Reading package lists... Done
4747
Building dependency tree... Done
@@ -64,7 +64,7 @@ Processing triggers for libc-bin (2.36-9+deb12u3) ...
6464

6565
..., and add the new user to the sudo and root groups:
6666

67-
```txt
67+
```plain
6868
root@debian:~# adduser hbinstall sudo
6969
Adding user `hbinstall' to group `sudo' ...
7070
Done.

docs/20-prepare-your-workstation.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ here the creation of your private key.
1010

1111
### Copy your public key
1212

13-
```txt
13+
```plain
1414
andre@hamilton> ssh-copy-id [email protected]
1515
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
1616
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
@@ -26,7 +26,7 @@ and check to make sure that only the key(s) you wanted were added.
2626

2727
Now, the connection should be automatic, i.e. without entering a password:
2828

29-
```txt
29+
```plain
3030
andre@hamilton> ssh [email protected]
3131
Linux debian 6.1.0-17-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.69-1 (2023-12-30) x86_64
3232
@@ -46,15 +46,15 @@ This is optional, but it will be more convenient to add ssh settings to connect
4646
name and an IP address. So, on the workstation, in your ssh configuration file `~/.ssh/config`, you can add the
4747
following block, for instance:
4848

49-
```txt
49+
```plain
5050
Host homebox
5151
User hbinstall
5252
HostName 192.168.33.95
5353
```
5454

5555
Yo can now establish the connection with _homebox_ more easily:
5656

57-
```txt
57+
```plain
5858
ssh homebox
5959
[…]
6060
Linux debian 6.1.0-17-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.69-1 (2023-12-30) x86_64
@@ -78,7 +78,7 @@ sudo apt install ansible
7878

7979
## Clone the repository
8080

81-
```txt
81+
```plain
8282
git clone [email protected]:progmaticltd/homebox.git
8383
Cloning into 'homebox'...
8484
remote: Enumerating objects: 26137, done.

0 commit comments

Comments
 (0)