@@ -5,37 +5,37 @@ weight: 1
5
5
6
6
# How to deploy a collection
7
7
8
- This guide will help you deploy a new Open Terms Archive collection to a server. Follow these steps in order .
8
+ This guide will help you deploy an Open Terms Archive collection to a server.
9
9
10
10
## 1. Configure the server
11
11
12
- First, ensure your server meets all requirements :
12
+ First, ensure your server provides unsupervised access :
13
13
14
14
1 . Check the SSH host key:
15
15
``` shell
16
- ssh-keyscan -t ed25519 < server_address>
16
+ ssh-keyscan --type= ed25519 < server_address>
17
17
```
18
18
If no Ed25519 key appears, generate one on the server:
19
19
``` shell
20
- sudo ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key
20
+ sudo ssh-keygen --type= ed25519 --file= /etc/ssh/ssh_host_ed25519_key
21
21
sudo systemctl restart ssh
22
22
```
23
23
24
24
2 . Create a non-root user if needed:
25
25
``` shell
26
26
adduser < user>
27
- usermod -aG sudo < user>
27
+ usermod --append --groups= sudo < user>
28
28
```
29
29
30
30
3 . Grant passwordless sudo access:
31
31
``` shell
32
32
# Add to /etc/sudoers:
33
- < user> ALL=(ALL) NOPASSWD:ALL
33
+ < user> ALL=(ALL) NOPASSWD:ALL
34
34
```
35
35
36
36
## 2. Set up the deployment configuration
37
37
38
- 1 . Clone the collection repository:
38
+ 1 . Clone the collection declarations repository:
39
39
``` shell
40
40
git clone https://github.com/OpenTermsArchive/< collection_id> -declarations.git
41
41
```
@@ -55,7 +55,7 @@ First, ensure your server meets all requirements:
55
55
56
56
1. On the server, generate a deployment key :
57
57
` ` ` shell
58
- ssh-keygen -t ed25519 -q -N "" -f ~/.ssh/ota-deploy
58
+ ssh-keygen --type= ed25519 --quiet --passphrase= "" --file= ~/.ssh/ota-deploy
59
59
cat ~/.ssh/ota-deploy.pub >> ~/.ssh/authorized_keys
60
60
` ` `
61
61
@@ -104,7 +104,7 @@ First, ensure your server meets all requirements:
104
104
105
105
1. Generate a new key :
106
106
` ` ` shell
107
- ssh-keygen -t ed25519 -C [email protected] -P "" -f ./<collection_name>-key
107
+ ssh-keygen --type= ed25519 --comment= [email protected] --passphrase= "" --file= ./<collection_name>-key
108
108
` ` `
109
109
110
110
2. Encrypt and store the private key :
@@ -142,7 +142,7 @@ First, ensure your server meets all requirements:
142
142
2. Via local deployment :
143
143
` ` ` shell
144
144
cd <collection_id>-declarations/deployment
145
- ansible-galaxy collection install -r requirements.yml
145
+ ansible-galaxy collection install --requirements-file requirements.yml
146
146
ansible-playbook opentermsarchive.deployment.deploy
147
147
` ` `
148
148
0 commit comments